Skip to content

Commit 687ffc2

Browse files
authored
DOC: add instructions to deprecation notice (#86)
1 parent 23ece5a commit 687ffc2

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

.github/workflows/main.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,14 @@ jobs:
1616
test_install:
1717
runs-on: ${{ matrix.os }}
1818
strategy:
19-
max-parallel: 4
2019
matrix:
21-
os: [ 'windows-latest', 'macos-latest', 'ubuntu-latest' ]
20+
os: [ 'windows-2022', 'macos-13', 'ubuntu-22.04' ]
2221
python: [ '3.7', '3.8', '3.9', '3.10', '3.11' ]
2322
arch: [ 'x64', 'x86' ]
2423
exclude:
25-
- os: macos-latest
24+
- os: macos-13
2625
arch: x86
27-
- os: ubuntu-latest
26+
- os: ubuntu-22.04
2827
arch: x86
2928

3029
steps:

README.rst

+16-1
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,23 @@ NumPy 1.xx and 2.0.
1717

1818
All users should migrate to expressing a build dependency on ``numpy``
1919
directly, according to the guidance given in
20-
`Adding a dependency on NumPy <https://numpy.org/devdocs/dev/depending_on_numpy.html#adding-a-dependency-on-numpy>`__.
20+
`Adding a dependency on NumPy <https://numpy.org/doc/2.1/dev/depending_on_numpy.html#build-time-dependency>`__.
2121

22+
.. code:: toml
23+
24+
[build-system]
25+
requires = ["numpy>=2.0,<3"]
26+
27+
Python 3.13 is supported as of NumPy 2.1. For older Python versions
28+
this package can still be used to compile against NumPy 1.xx.
29+
30+
.. code:: toml
31+
32+
[build-system]
33+
requires = [
34+
"oldest-supported-numpy; python_version<='3.8'",
35+
"numpy>=1.25,<2; python_version>'3.8'",
36+
]
2237
2338
About
2439
-----

0 commit comments

Comments
 (0)