Skip to content

Commit

Permalink
Improve wheels workflow configuration
Browse files Browse the repository at this point in the history
* Include python folder in sdist

* build: Update cibuildwheel version

* Improve wheels workflow configuration

As per https://github.com/pypa/cibuildwheel/blob/main/examples/github-deploy.yml
  • Loading branch information
santhoshtr authored Jul 18, 2021
1 parent fceb14a commit d912af6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:

jobs:
build_sdist:
name: Build SDist
name: Build source distribution
runs-on: ubuntu-latest

steps:
Expand All @@ -25,16 +25,13 @@ jobs:
submodules: true

- uses: actions/setup-python@v2
name: Install Python
with:
python-version: '3.8'

- name: Install deps
run: python -m pip install twine build

- name: Build SDist
- name: Build sdist
run: python setup.py sdist

- name: Check metadata
run: twine check dist/*

- uses: actions/upload-artifact@v2
with:
path: dist/*.tar.gz
Expand All @@ -54,12 +51,12 @@ jobs:
submodules: true

- uses: actions/setup-python@v2
name: Install Python
with:
python-version: '3.8'

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==1.6.3

- name: Build wheel
run: python -m cibuildwheel --output-dir wheelhouse
- name: Build wheels
uses: pypa/cibuildwheel@v2.0.0

- name: Show files
run: ls -lh wheelhouse
Expand Down Expand Up @@ -89,7 +86,7 @@ jobs:
name: artifact
path: dist

- uses: pypa/gh-action-pypi-publish@v1.4.1
- uses: pypa/gh-action-pypi-publish@v1.4.2
with:
user: __token__
password: ${{ secrets.pypi_password }}
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ include VERSION COPYING CMakeLists.txt
graft data
graft doc
graft src
graft python

0 comments on commit d912af6

Please sign in to comment.