Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/cibuildwheel@v2.5.0

- name: Build wheel
run: |
python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v1
- name: Checksum
uses: Huy-Ngo/gha-sha@v1.1.0
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='alimanfoo@googlemail.com',
Expand Down