Skip to content

Commit

Permalink
Merge pull request #222 from neutrinoceros/drop_cp38
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros authored Sep 18, 2023
2 parents 498534a + 041807e commit 5a77faf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 24 deletions.
20 changes: 8 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,25 +278,21 @@ workflows:

normal-tests:
jobs:
- run-tests:
name: "Python 3.8 tests"
tag: "3.8.16"

- run-tests:
name: "Python 3.9 tests"
tag: "3.9.16"
tag: "3.9"

- run-tests-pytest:
name: "Python 3.10 tests"
tag: "3.10.9"
tag: "3.10"

- run-tests-pytest:
name: "Python 3.11 tests"
tag: "3.11.1"
tag: "3.11"

- docs-test:
name: "Test docs build"
tag: "3.9.16"
tag: "3.9"

weekly:
triggers:
Expand All @@ -308,13 +304,13 @@ workflows:
- main
jobs:
- run-tests:
name: "Python 3.8 tests"
tag: "3.8.16"
name: "Python 3.9 tests"
tag: "3.9"

- run-tests-pytest:
name: "Python 3.11 tests"
tag: "3.11.1"
tag: "3.11"

- docs-test:
name: "Test docs build"
tag: "3.9.16"
tag: "3.9"
10 changes: 3 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
requires = [
"setuptools>=61.2",
"Cython>=3.0",
"oldest-supported-numpy ; python_version < '3.9'",
"numpy>=1.25,<2.0 ; python_version >= '3.9' and python_version < '3.12.0rc1'",
"numpy>=1.26.0b1,<2.0 ; python_version >= '3.12.0rc1'",
"numpy>=1.25, <2.0",
]

[project]
Expand All @@ -26,7 +24,6 @@ classifiers = [
"Programming Language :: C",
"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 All @@ -37,13 +34,12 @@ classifiers = [
keywords = [
"astronomy astrophysics visualization amr adaptivemeshrefinement",
]
requires-python = ">=3.8"
requires-python = ">=3.9"
dependencies = [
"h5py>=3.1.0",
"yt>=4.0.1",
# when Python 3.8 is dropped, keep minimal requirement in sync with NPY_TARGET_VERSION
# upper cap should be lifted when build-time requirement is bumped to >=2.0, see
"numpy>=1.17.5,<2.0",
"numpy>=1.19.3, <2.0",
"packaging>=20.9",
]

Expand Down
7 changes: 2 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,9 @@ def get_version(filename):

define_macros = [
("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION"),
]
if sys.version_info >= (3, 9):
# keep in sync with runtime requirements (pyproject.toml)
define_macros.append(("NPY_TARGET_VERSION", "NPY_1_18_API_VERSION"))
else:
pass
("NPY_TARGET_VERSION", "NPY_1_19_API_VERSION"),
]

cython_extensions = [
Extension(
Expand Down

0 comments on commit 5a77faf

Please sign in to comment.