From 3d7f57555849eab5e0d7ed924ae5298d8a4b7c63 Mon Sep 17 00:00:00 2001 From: mhostetter Date: Wed, 31 Jan 2024 18:44:32 -0500 Subject: [PATCH 1/3] Add support for Numba v0.59 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ff9c6206c..b48d69ed4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,7 +50,7 @@ classifiers = [ requires-python = ">=3.7" dependencies = [ "numpy >= 1.21.0, < 1.26", # v1.21.0 is needed for dtype support of ufuncs, see https://numpy.org/devdocs/release/1.21.0-notes.html#ufunc-signature-and-dtype-generalization-and-casting - "numba >= 0.55, < 0.59", # v0.55 is needed for support of NumPy 1.21 + "numba >= 0.55, < 0.60", # v0.55 is needed for support of NumPy 1.21 "typing_extensions >= 4.0.0", # v4.0.0 is needed for use of Self (Python 3.11+) and Literal (Python 3.8+) ] dynamic = ["version"] From a8a9805f96e841f2e99a966d93a486a4625cb114 Mon Sep 17 00:00:00 2001 From: mhostetter Date: Wed, 31 Jan 2024 18:46:05 -0500 Subject: [PATCH 2/3] Add support for NumPy v1.26 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b48d69ed4..0276cf361 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,7 +49,7 @@ classifiers = [ ] requires-python = ">=3.7" dependencies = [ - "numpy >= 1.21.0, < 1.26", # v1.21.0 is needed for dtype support of ufuncs, see https://numpy.org/devdocs/release/1.21.0-notes.html#ufunc-signature-and-dtype-generalization-and-casting + "numpy >= 1.21.0, < 1.27", # v1.21.0 is needed for dtype support of ufuncs, see https://numpy.org/devdocs/release/1.21.0-notes.html#ufunc-signature-and-dtype-generalization-and-casting "numba >= 0.55, < 0.60", # v0.55 is needed for support of NumPy 1.21 "typing_extensions >= 4.0.0", # v4.0.0 is needed for use of Self (Python 3.11+) and Literal (Python 3.8+) ] From b7fb49040be5f0e1915bc0c36c307f039c367b2a Mon Sep 17 00:00:00 2001 From: mhostetter Date: Wed, 31 Jan 2024 18:50:07 -0500 Subject: [PATCH 3/3] Add support for Python 3.12 Fixes #525 --- .github/workflows/lint.yaml | 2 +- .github/workflows/test.yaml | 4 ++-- pyproject.toml | 1 + requirements-min.txt | 2 ++ 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 9fc88f375..16e929e20 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9, '3.10', 3.11] + python-version: [3.7, 3.8, 3.9, '3.10', 3.11, 3.12] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 2a8f6e8a1..192ecf310 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -81,7 +81,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: [3.7, 3.8, 3.9, '3.10', 3.11] + python-version: [3.7, 3.8, 3.9, '3.10', 3.11, 3.12] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 @@ -134,7 +134,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: [3.7, 3.8, 3.9, '3.10', 3.11] + python-version: [3.7, 3.8, 3.9, '3.10', 3.11, 3.12] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 diff --git a/pyproject.toml b/pyproject.toml index 0276cf361..b621d7bdd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,6 +42,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: Scientific/Engineering :: Mathematics", "Topic :: Security :: Cryptography", "Topic :: Software Development :: Libraries :: Python Modules", diff --git a/requirements-min.txt b/requirements-min.txt index 4d8523cd0..92cff6149 100644 --- a/requirements-min.txt +++ b/requirements-min.txt @@ -1,8 +1,10 @@ +numpy==1.26.0; python_version=="3.12" numpy==1.23.2; python_version=="3.11" numpy==1.21.3; python_version=="3.10" numpy==1.21.0; python_version=="3.9" numpy==1.21.0; python_version=="3.8" numpy==1.21.0; python_version=="3.7" +numba==0.59.0; python_version=="3.12" numba==0.57.0; python_version=="3.11" numba==0.55.0; python_version=="3.10" numba==0.55.0; python_version=="3.9"