diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 72dd1f9..0bc414c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,7 +16,6 @@ jobs: runs-on: | linux: ubuntu-22.04 envs: | - - linux: py38-test-numpy118 - linux: py39-test-numpy119 - linux: py39-test-numpy120 - linux: py39-test-numpy121 @@ -28,7 +27,6 @@ jobs: - linux: py311-test-numpy20 - linux: py312-test-numpydev - - macos: py38-test-numpy118 - macos: py39-test-numpy119 - macos: py39-test-numpy120 - macos: py39-test-numpy121 @@ -39,7 +37,6 @@ jobs: - macos: py311-test-numpy126 - macos: py311-test-numpy20 - - windows: py38-test-numpy118 - windows: py39-test-numpy119 - windows: py39-test-numpy120 - windows: py39-test-numpy121 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c2d2a7f..666ff5c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: rev: v3.15.2 hooks: - id: pyupgrade - args: ["--py38-plus"] + args: ["--py39-plus"] - repo: https://github.com/psf/black rev: 24.4.0 diff --git a/fast_histogram/_histogram_core.c b/fast_histogram/_histogram_core.c index 928ea0f..3551549 100644 --- a/fast_histogram/_histogram_core.c +++ b/fast_histogram/_histogram_core.c @@ -1,5 +1,5 @@ #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION -#define Py_LIMITED_API 0x030800f0 +#define Py_LIMITED_API 0x030900f0 #include #include diff --git a/pyproject.toml b/pyproject.toml index e9e235e..707caf4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,7 @@ [build-system] requires = ["setuptools", "setuptools_scm", - "oldest-supported-numpy;python_version<'3.9'", - "numpy>=2.0.0rc1;python_version>='3.9'"] + "numpy>=2.0.0rc1"] build-backend = 'setuptools.build_meta' [tool.cibuildwheel.linux] diff --git a/setup.cfg b/setup.cfg index bd42465..b57b67c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -12,7 +12,7 @@ zip_safe = False packages = find: install_requires = numpy -python_requires = >=3.8 +python_requires = >=3.9 [options.extras_require] test = @@ -20,4 +20,4 @@ test = hypothesis[numpy] [bdist_wheel] -py_limited_api = cp38 +py_limited_api = cp39 diff --git a/tox.ini b/tox.ini index 522304c..8e2c00d 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - py{38,39,310,311,312}-test{-numpy118,-numpy119,-numpy120,-numpy121,-numpy122,-numpy123,-numpy124,-numpy125,-numpy126,-numpy20,-numpydev} + py{39,310,311,312}-test{-numpy118,-numpy119,-numpy120,-numpy121,-numpy122,-numpy123,-numpy124,-numpy125,-numpy126,-numpy20,-numpydev} requires = setuptools >= 30.3.0 pip >= 19.3.1