Skip to content

Commit

Permalink
Merge branch 'master' into ci-py-3.10-mac
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver authored Nov 12, 2021
2 parents e3b11f4 + 078f416 commit 699cfb0
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 12 deletions.
37 changes: 31 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
language: python

dist: xenial

notifications:
Expand Down Expand Up @@ -32,17 +31,43 @@ matrix:
- HDF5_DIR=$HDF5_CACHE_DIR/$HDF5_VERSION
- H5PY_ENFORCE_COVERAGE=yes
os: linux-ppc64le
- os: linux
services: docker
python: 3.7
virt: vm
group: edge
arch: arm64
env:
- TOXENV=py37-test-deps
- HDF5_VERSION=1.10.5
- HDF5_DIR=$HDF5_CACHE_DIR/$HDF5_VERSION
- H5PY_ENFORCE_COVERAGE=yes
- CIBW_BUILD: cp3[789]-*
- CIBW_MANYLINUX_AARCH64_IMAGE: ghcr.io/h5py/manylinux2014_aarch64-hdf5
- CIBW_ARCHS: aarch64

before_install:
# - export PATH=/usr/lib/ccache:$PATH
- ccache -s

install:
- pip install -U tox codecov virtualenv
- ci/get_hdf5_if_needed.sh
- ls -lRa $HDF5_CACHE_DIR
- pip install -U tox codecov virtualenv
- ci/get_hdf5_if_needed.sh
- ls -lRa $HDF5_CACHE_DIR
- if [[ $CIBW_ARCHS == aarch64 ]]; then python -m pip install cibuildwheel==1.9.0; fi

script:
- tox
- if [[ $CIBW_ARCHS == aarch64 ]]; then python3 -m cibuildwheel --output-dir wheelhouse; fi
- tox

after_success:
- python ci/upload_coverage.py
- python ci/upload_coverage.py

# trigger an upload to the shared ecosystem
# infrastructure at: https://anaconda.org/scipy-wheels-nightly
# for cron jobs only (restricted to master branch once
# per week)
# ANACONDA_ORG_UPLOAD_TOKEN is a secret token
# used in Travis CI config, originally
# generated at anaconda.org for scipy-wheels-nightly (cron jobs).
- if [[ $CIBW_ARCHS == aarch64 && "$TRAVIS_EVENT_TYPE" == "cron" ]]; then bash ci/upload_wheels.sh; fi
17 changes: 17 additions & 0 deletions ci/upload_wheels.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ANACONDA_ORG="scipy-wheels-nightly";
pip install git+https://github.com/Anaconda-Server/anaconda-client;

# rename wheels
# appending timestamp to wheels package name
# e.g. h5py-3.3.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl to h5py-3.3.0-20211004151033-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
for whl in ${TRAVIS_BUILD_DIR}/wheelhouse/h5py-*.whl; do
newname=$(echo "$whl" | sed "s/\(h5py-[0-9][0-9]*[.[0-9]*]*-\)\(cp*\)/\1$(date '+%Y%m%d%H%M%S')-\2/")
if [ "$newname" != "$whl" ]; then
mv $whl $newname
fi
done

# upload wheels
if [[ -n "${ANACONDA_ORG_UPLOAD_TOKEN}" ]] ; then
anaconda -t ${ANACONDA_ORG_UPLOAD_TOKEN} upload --force -u ${ANACONDA_ORG} ${TRAVIS_BUILD_DIR}/wheelhouse/h5py-*.whl;
fi;
6 changes: 0 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ deps =
py39-deps: numpy>=1.19.3
py310-deps: numpy>=1.21.3

py37-mindeps: cython==0.29
py38-mindeps: cython==0.29.14
py39-mindeps: cython==0.29.15
# TODO: update once Cython has a wheel for Python 3.10
py310-mindeps: cython==0.29.24

mindeps: oldest-supported-numpy

mpi4py: mpi4py>=3.0.2
Expand Down

0 comments on commit 699cfb0

Please sign in to comment.