Skip to content

Commit

Permalink
Merge pull request #87 from astrofrog/bump-minimum-python-39
Browse files Browse the repository at this point in the history
Bump minimum required Python to 3.9
  • Loading branch information
astrofrog authored Apr 16, 2024
2 parents 1cb7287 + 2a9220e commit 87cd129
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 10 deletions.
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

0 comments on commit 87cd129

Please sign in to comment.