Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

drop support for PyPy 3.7 and 3.8 #470

Merged
merged 1 commit into from
Nov 20, 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
48 changes: 29 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,18 @@ jobs:
strategy:
fail-fast: ${{ !contains(github.event.pull_request.labels.*.name, 'CI-no-fail-fast') }}
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
python-version:
[
"3.7",
"3.8",
"3.9",
"3.10",
"3.11",
"3.12",
"3.13",
"pypy-3.9",
"pypy-3.10",
]
platform:
[
{
Expand Down Expand Up @@ -71,29 +82,28 @@ jobs:
python-architecture: "arm64",
rust-target: "aarch64-apple-darwin",
}
# NumPy does not provide pre-built wheels for PyPy on macOS and Windows
- python-version: pypy-3.7
exclude:
# ubuntu-24.04 does not support 3.7
- python-version: 3.7
platform:
{
os: "ubuntu-latest",
python-architecture: "x64",
rust-target: "x86_64-unknown-linux-gnu",
}
- python-version: pypy-3.8
- python-version: pypy-3.9
platform:
{
os: "ubuntu-latest",
python-architecture: "x64",
rust-target: "x86_64-unknown-linux-gnu",
os: "windows-latest",
python-architecture: "x86",
rust-target: "i686-pc-windows-msvc",
}
exclude:
# ubuntu-24.04 does not support 3.7
- python-version: 3.7
- python-version: pypy-3.10
platform:
{
os: "ubuntu-latest",
python-architecture: "x64",
rust-target: "x86_64-unknown-linux-gnu",
os: "windows-latest",
python-architecture: "x86",
rust-target: "i686-pc-windows-msvc",
}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -201,7 +211,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: "3.12"
- uses: messense/maturin-action@v1
with:
target: aarch64
Expand All @@ -215,7 +225,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: "3.12"
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
continue-on-error: true
Expand All @@ -233,7 +243,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: "3.12"
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
continue-on-error: true
Expand All @@ -249,7 +259,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: "3.12"
- name: Install Rust
uses: dtolnay/[email protected]
- uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -292,7 +302,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: "3.12"
- name: Install OpenBLAS
run: sudo apt install --yes libopenblas-dev
- name: Install Rust
Expand All @@ -312,7 +322,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: "3.12"
- name: Install numpy
run: pip install "numpy" ml_dtypes
- uses: Swatinem/rust-cache@v2
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Changelog

- v0.23.0
- Drop support for PyPy 3.7 and 3.8. ([#470](https://github.com/PyO3/rust-numpy/pull/470))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably should have added an entry for Element: Sync, maybe just fixup here (or as a follow-up)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed 👍, will include it in #457, haven't written the entry for that one yet.

- v0.22.1
- Fix building on 32-bit Windows. ([#463](https://github.com/PyO3/rust-numpy/pull/463))
- Add `PyReadwriteArray::make_nonwriteable`. ([#462](https://github.com/PyO3/rust-numpy/pull/462))
Expand Down