Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Bump minimum required Python to 3.9 #87

Merged
merged 1 commit into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion fast_histogram/_histogram_core.c
Original file line number Diff line number Diff line change
@@ -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 <Python.h>
#include <numpy/arrayobject.h>
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ zip_safe = False
packages = find:
install_requires =
numpy
python_requires = >=3.8
python_requires = >=3.9

[options.extras_require]
test =
pytest
hypothesis[numpy]

[bdist_wheel]
py_limited_api = cp38
py_limited_api = cp39
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -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
Expand Down