Skip to content

Commit

Permalink
re-enable py38; np2 to build extensions for py>=3.9; check np2 in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellerSeb committed Apr 6, 2024
1 parent bcf22c0 commit f354999
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,30 +80,37 @@ jobs:
path: ./dist/*.whl

build_sdist:
name: sdist on ${{ matrix.os }} with py ${{ matrix.python-version }}
name: sdist on ${{ matrix.os }} with py ${{ matrix.ver.py }} and numpy ${{ matrix.ver.np }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.9', '3.10', '3.11', '3.12']

ver: [{py: '3.8', np: '1' }, {py: '3.9', np: '1'}, {py: '3.10', np: '1'}, {py: '3.11', np: '1'}, {py: '3.12', np: '1'}, {py: '3.12', np: '2'}]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'

- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.ver.py }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
python-version: ${{ matrix.ver.py }}

- name: Install dependencies
env:
GSTOOLS_BUILD_PARALLEL: 1
run: |
python -m pip install --upgrade pip
pip install build coveralls>=3.0.0
- name: bleeding edge
if: matrix.ver.np == '2'
run: |
python -m pip install "numpy>=2.0.0rc1" git+https://github.com/dfm/emcee.git
- name: Install GSTools
env:
GSTOOLS_BUILD_PARALLEL: 1
run: |
pip install -v --editable .[test]
- name: Run tests
Expand All @@ -119,7 +126,7 @@ jobs:
python -m build --sdist --outdir dist .
- uses: actions/upload-artifact@v2
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9'
if: matrix.os == 'ubuntu-latest' && matrix.ver.py == '3.9'
with:
path: dist/*.tar.gz

Expand Down
13 changes: 6 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
requires = [
"setuptools>=64",
"setuptools_scm>=7",
"numpy>=2.0.0rc1",
"numpy>=2.0.0rc1; python_version >= '3.9'",
"numpy==1.19.3; python_version < '3.9'",
"Cython>=3.0",
"extension-helpers>=1",
]
build-backend = "setuptools.build_meta"

[project]
requires-python = ">=3.9"
requires-python = ">=3.8"
name = "gstools"
description = "GSTools: A geostatistical toolbox."
authors = [
Expand Down Expand Up @@ -45,10 +46,10 @@ classifiers = [
"Topic :: Utilities",
]
dependencies = [
"emcee @ git+https://github.com/MuellerSeb/emcee.git@patch-np2",
"emcee>=3.0.0",
"hankel>=1.0.0",
"meshio>=5.1.0",
"numpy>=2.0.0rc1",
"numpy>=1.19.3",
"pyevtk>=1.1.1",
"scipy>=1.1.0",
]
Expand Down Expand Up @@ -160,11 +161,9 @@ target-version = [
# Switch to using build
build-frontend = "build"
# Disable building PyPy wheels on all platforms, 32bit for py3.10/11/12, musllinux builds, py3.6/7
skip = ["cp36-*", "cp37-*", "cp38-*", "pp*", "*-win32", "*-manylinux_i686", "*-musllinux_*"]
skip = ["cp36-*", "cp37-*", "pp*", "*-win32", "*-manylinux_i686", "*-musllinux_*"]
# Run the package tests using `pytest`
test-extras = "test"
test-command = "pytest -v {package}/tests"
# Skip trying to test arm64 builds on Intel Macs
test-skip = "*-macosx_arm64 *-macosx_universal2:arm64"
# no wheels for linux-32bit anymore for numpy>=1.22
environment = "PIP_PREFER_BINARY=1"

0 comments on commit f354999

Please sign in to comment.