Skip to content

Commit

Permalink
Configure cibuildwheel via pyproject.toml and remove explicit 32-bit …
Browse files Browse the repository at this point in the history
…testing, relying instead on wheel building
  • Loading branch information
astrofrog committed Mar 29, 2022
1 parent 1f4702b commit 65c5094
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 29 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/ci_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,40 +17,13 @@ jobs:
- linux: py37-test-oldestdeps-cov
- linux: py38-test-cov
- linux: py39-test-cov
# - linux32: py37-test-oldestdeps-cov
# - linux32: py38-test-cov
- windows: py37-test-oldestdeps-cov
- windows: py38-test-cov
- windows: py39-test-cov
coverage: 'codecov'
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

linux32:
runs-on: ubuntu-latest
container:
image: quay.io/pypa/manylinux_2_24_i686
steps:
# TODO: Use newer checkout actions when https://github.com/actions/checkout/issues/334 fixed
- name: Checkout code
uses: actions/checkout@v1
with:
fetch-depth: 0
- name: Install dependencies for Python 3.7
run: |
apt-get update
apt-get -y install libgeos-dev libfreetype6-dev libpng-dev
/opt/python/cp37-cp37m/bin/pip install tox
- name: Run tests for Python 3.7
run: /opt/python/cp37-cp37m/bin/python -m tox -e py37-test-oldestdeps-cov
- name: Install dependencies for Python 3.8
run: |
apt-get update
apt-get -y install libgeos-dev libfreetype6-dev libpng-dev
/opt/python/cp38-cp38/bin/pip install tox
- name: Run tests for Python 3.8
run: /opt/python/cp38-cp38/bin/python -m tox -e py38-test-numpy121-cov

publish:
needs: [tests, linux32]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml@v1
Expand All @@ -59,5 +32,3 @@ jobs:
test_command: pytest -p no:warnings --pyargs reproject
secrets:
pypi_token: ${{ secrets.pypi_token }}
env:
CIBW_BEFORE_BUILD_LINUX: yum install -y geos-devel freetype-devel libpng-devel
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@ requires = ["setuptools",
"oldest-supported-numpy",
"cython==0.29.21"]
build-backend = 'setuptools.build_meta'

[tool.cibuildwheel]
skip = "cp36-*"

[tool.cibuildwheel.linux]
before-build = "yum install -y geos-devel freetype-devel libpng-devel"

0 comments on commit 65c5094

Please sign in to comment.