Skip to content

Commit

Permalink
update build to create wheels for cp310
Browse files Browse the repository at this point in the history
  • Loading branch information
Huy-Ngo committed May 7, 2022
1 parent fee2bee commit 4afa1fb
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 208 deletions.
43 changes: 0 additions & 43 deletions .github/workflows/ci-linux.yaml

This file was deleted.

49 changes: 0 additions & 49 deletions .github/workflows/ci-osx.yaml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/ci-windows.yaml

This file was deleted.

80 changes: 12 additions & 68 deletions .github/workflows/wheel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
env:
CIBW_TEST_COMMAND: pytest --pyargs numcodecs
CIBW_TEST_REQUIRES: pytest
CIBW_SKIP: "*27* pp* *35*"
CIBW_BUILD: "cp310-*"
CIBW_ENVIRONMENT: "DISABLE_NUMCODECS_AVX2=1"
CIBW_ENVIRONMENT_MACOS: 'MACOSX_DEPLOYMENT_TARGET=10.9 DISABLE_NUMCODECS_AVX2=1 CFLAGS="$CFLAGS -Wno-implicit-function-declaration"'

Expand All @@ -25,77 +24,22 @@ jobs:
- uses: actions/setup-python@v1
name: Install Python
with:
python-version: '3.9'
python-version: "3.10"

- name: Install cibuildwheel
run: |
python -m pip install cibuildwheel==1.8.0 wheel
- uses: pypa/[email protected]

- name: Build wheel
run: |
python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v1
- name: Checksum
uses: Huy-Ngo/[email protected]
with:
name: wheels
path: ./wheelhouse

build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
submodules: true

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

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

- name: test install
run: pip install dist/numcodecs*.tar.gz
glob: 'wheelhouse/*.whl'

- uses: actions/upload-artifact@v2
with:
path: dist/*.tar.gz

test_dist_pypi:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v1
with:
name: artifact
path: dist
- uses: actions/download-artifact@v1
with:
name: wheels
path: dist

- name: test
run: |
ls
ls dist
upload_pypi:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v1
with:
name: artifact
path: dist
- uses: actions/download-artifact@v1
with:
name: wheels
path: dist

- uses: pypa/gh-action-pypi-publish@master
path: ./wheelhouse
- name: Release
uses: softprops/action-gh-release@v1
with:
user: __token__
password: ${{ secrets.pypi_password }}
# To test: repository_url: https://test.pypi.org/legacy/
name: 'Release numcodecs 0.9.1 for cp310'
files: wheelhouse/*.whl
tag_name: v0.9.1
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ def run_setup(with_extensions):
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
author='Alistair Miles',
author_email='[email protected]',
Expand Down

0 comments on commit 4afa1fb

Please sign in to comment.