Skip to content

Commit

Permalink
Merge pull request #341 from SCM-NV/wheel
Browse files Browse the repository at this point in the history
REL: Only distribute source files to pypi
  • Loading branch information
BvB93 authored Nov 17, 2021
2 parents 8c2236d + eb521f7 commit d34e479
Showing 1 changed file with 4 additions and 35 deletions.
39 changes: 4 additions & 35 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,8 @@ on:

jobs:
build:
name: Build wheels (${{ matrix.os }}; py ${{ matrix.version }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
version: ["3.8", "3.9", "3.10"]

name: Build wheels
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

Expand All @@ -22,10 +17,7 @@ jobs:
update-conda: false

- name: Install dependencies
run: |
conda create -n test -c conda-forge python=${{ matrix.version }} boost eigen libint==2.6.0 highfive
source $CONDA/bin/activate test
pip install Cython setuptools wheel pybind11>=2.2.4
run: conda create -n test -c conda-forge boost eigen libint==2.6.0 highfive Cython setuptools wheel "pybind11>=2.2.4"

- name: Conda info
run: |
Expand All @@ -38,33 +30,10 @@ jobs:
- name: Build wheels
run: |
source $CONDA/bin/activate test
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]] && [[ "${{ matrix.version }}" == "3.10" ]]; then
python setup.py sdist bdist_wheel
else
python setup.py bdist_wheel
fi
- name: Upload wheels
uses: actions/upload-artifact@v2
with:
path: dist

publish:
name: Publish wheels
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v2

- name: Download wheels
uses: actions/download-artifact@v2

- name: Show wheels
run: ls -l artifact/
python setup.py sdist
- name: Publish wheels
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
packages_dir: artifact/

0 comments on commit d34e479

Please sign in to comment.