diff --git a/.github/workflows/actions/entrypoint.sh b/.github/workflows/actions/entrypoint.sh index 531a180..c89edc5 100755 --- a/.github/workflows/actions/entrypoint.sh +++ b/.github/workflows/actions/entrypoint.sh @@ -1,11 +1,14 @@ #!/bin/sh -PYTHONS=("cp37-cp37m" "cp38-cp38" "cp39-cp39") +# if testing locally try the docker image interactively +# docker run --net=host -it --rm -v $(pwd):/home/ quay.io/pypa/manylinux2010_x86_64 + +PYTHONS=("cp38-cp38" "cp39-cp39" "cp310-cp310") for PYTHON in ${PYTHONS[@]}; do /opt/python/${PYTHON}/bin/pip install --upgrade pip wheel setuptools setuptools_scm pep517 twine auditwheel - /opt/python/${PYTHON}/bin/pip install numpy==1.18 - /opt/python/${PYTHON}/bin/python -m pep517.build --source --binary . --out-dir /github/workspace/wheelhouse/ + /opt/python/${PYTHON}/bin/pip install oldest-supported-numpy + /opt/python/${PYTHON}/bin/python -m build --sdist --wheel . --outdir /github/workspace/wheelhouse/ done for whl in /github/workspace/wheelhouse/gsw*.whl; do diff --git a/.github/workflows/build_linux.yml b/.github/workflows/build_linux.yml index f803b1f..7671ca0 100644 --- a/.github/workflows/build_linux.yml +++ b/.github/workflows/build_linux.yml @@ -19,7 +19,7 @@ jobs: - name: copy manylinux wheels run: | mkdir dist - cp wheelhouse/gsw*.whl dist/ + cp wheelhouse/gsw*manylinux2010_x86_64.whl dist/ - name: CheckFiles run: | diff --git a/.github/workflows/build_mac.yml b/.github/workflows/build_mac.yml index 6e98ef2..c25f09e 100644 --- a/.github/workflows/build_mac.yml +++ b/.github/workflows/build_mac.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: os: [macos-latest] - python-version: [3.7, 3.8, 3.9] + python-version: ["3.8", "3.9", "3.10"] steps: - uses: actions/checkout@v2 @@ -29,7 +29,7 @@ jobs: - name: Install build tools run: | python -m pip install --upgrade pip wheel setuptools setuptools_scm pep517 twine - python -m pip install numpy==1.18 + python -m pip install oldest-supported-numpy shell: bash - name: Build binary wheel diff --git a/.github/workflows/build_win.yml b/.github/workflows/build_win.yml index 6dab831..73c5f30 100644 --- a/.github/workflows/build_win.yml +++ b/.github/workflows/build_win.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: os: [windows-latest] - python-version: [3.7, 3.8, 3.9] + python-version: ["3.8", "3.9", "3.10"] steps: - uses: actions/checkout@v2 @@ -29,7 +29,7 @@ jobs: - name: Install build tools run: | python -m pip install --upgrade pip wheel setuptools setuptools_scm pep517 twine - python -m pip install numpy==1.18 + python -m pip install oldest-supported-numpy shell: bash - name: Build binary wheel