Skip to content
7 changes: 2 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ jobs:
strategy:
fail-fast: false
matrix:
# macos-13 is an intel runner, macos-14 is apple silicon
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
# macos-13 is an intel runner, macos-latest is apple silicon
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-13, macos-latest]

steps:
- uses: actions/checkout@v4
Expand All @@ -85,16 +85,13 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
# https://github.com/scipy/oldest-supported-numpy/blob/main/setup.cfg
ver:
- { py: "3.8", np: "==1.20.0" }
- { py: "3.9", np: "==1.20.0" }
- { py: "3.10", np: "==1.21.6" }
- { py: "3.11", np: "==1.23.2" }
- { py: "3.12", np: "==1.26.2" }
- { py: "3.13", np: "==2.1.0" }
- { py: "3.13", np: ">=2.1.0" }
exclude:
- os: macos-14
ver: { py: "3.8", np: "==1.20.0" }
- os: macos-14
ver: { py: "3.9", np: "==1.20.0" }
- os: macos-14
Expand Down
15 changes: 8 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[build-system]
requires = [
"setuptools>=64",
"setuptools<72.2; implementation_name == 'pypy'", # https://github.com/pypa/distutils/issues/283
"setuptools_scm>=7",
"numpy>=2.0.0rc1; python_version >= '3.9'",
"oldest-supported-numpy; python_version < '3.9'",
"numpy>=2.0.0rc1",
"Cython>=3.0.10,<3.1.0",
"extension-helpers>=1",
]
build-backend = "setuptools.build_meta"

[project]
requires-python = ">=3.8"
requires-python = ">=3.9"
name = "gstools_cython"
description = "Cython backend for GSTools."
authors = [
Expand All @@ -33,7 +33,6 @@ classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand Down Expand Up @@ -91,11 +90,11 @@ multi_line_output = 3

[tool.black]
target-version = [
"py38",
"py39",
"py310",
"py311",
"py312",
"py313",
]

[tool.coverage]
Expand Down Expand Up @@ -144,8 +143,10 @@ target-version = [
[tool.cibuildwheel]
# 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-*", "pp*", "*-win32", "*-manylinux_i686", "*-musllinux_*"]
# explicitly enable pypy
enable = ["pypy"]
# Disable building py3.6/7/8, pp3.8, 32bit linux
skip = ["cp36-*", "cp37-*", "cp38-*", "pp38-*", "*_i686"]
# Run the package tests using `pytest`
test-extras = "test"
test-command = "pytest -v {package}/tests"