Skip to content

Commit 4759c8c

Browse files
committed
Bump minimum Python version to 3.8
1 parent e1f028f commit 4759c8c

File tree

10 files changed

+11
-13
lines changed

10 files changed

+11
-13
lines changed

.github/workflows/ci.yml

-2
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,10 @@ jobs:
191191
extra-features: ["multiple-pymethods"] # Because MSRV doesn't support this
192192
rust: [stable]
193193
python-version: [
194-
"3.7",
195194
"3.8",
196195
"3.9",
197196
"3.10",
198197
"3.11",
199-
"pypy-3.7",
200198
"pypy-3.8",
201199
"pypy-3.9"
202200
]

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
## Usage
1818

1919
PyO3 supports the following software versions:
20-
- Python 3.7 and up (CPython and PyPy)
20+
- Python 3.8 and up (CPython and PyPy)
2121
- Rust 1.56 and up
2222

2323
You can use PyO3 to write a native Python module in Rust, or to embed Python in a Rust binary. The following sections explain each of these in turn.

examples/plugin/plugin_api/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "maturin"
44

55
[project]
66
name = "plugin_api"
7-
requires-python = ">=3.7"
7+
requires-python = ">=3.8"
88
classifiers = [
99
"Programming Language :: Rust",
1010
"Programming Language :: Python :: Implementation :: CPython",

guide/src/getting_started.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ If you can run `rustc --version` and the version is new enough you're good to go
1010

1111
## Python
1212

13-
To use PyO3, you need at least Python 3.7. While you can simply use the default Python interpreter on your system, it is recommended to use a virtual environment.
13+
To use PyO3, you need at least Python 3.8. While you can simply use the default Python interpreter on your system, it is recommended to use a virtual environment.
1414

1515
## Virtualenvs
1616

@@ -128,7 +128,7 @@ build-backend = "maturin"
128128

129129
[project]
130130
name = "pyo3_example"
131-
requires-python = ">=3.7"
131+
requires-python = ">=3.8"
132132
classifiers = [
133133
"Programming Language :: Rust",
134134
"Programming Language :: Python :: Implementation :: CPython",

guide/src/migration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ For a detailed list of all changes, see the [CHANGELOG](changelog.md).
77

88
### Drop support for older technologies
99

10-
PyO3 0.20 has increased minimum Rust version to 1.56. This enables use of newer language features and simplifies maintenance of the project.
10+
PyO3 0.20 has increased minimum Rust version to 1.56 and minimum Python version to 3.8. This enables use of newer language features and simplifies maintenance of the project.
1111

1212
## from 0.18.* to 0.19
1313

newsfragments/3204.changed.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update the minimum Python version to 3.8.

noxfile.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717

1818
PYO3_DIR = Path(__file__).parent
19-
PY_VERSIONS = ("3.7", "3.8", "3.9", "3.10", "3.11")
20-
PYPY_VERSIONS = ("3.7", "3.8", "3.9")
19+
PY_VERSIONS = ("3.8", "3.9", "3.10", "3.11")
20+
PYPY_VERSIONS = ("3.8", "3.9")
2121

2222

2323
@nox.session(venv_backend="none")

pyo3-ffi/README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
This crate provides [Rust](https://www.rust-lang.org/) FFI declarations for Python 3.
44
It supports both the stable and the unstable component of the ABI through the use of cfg flags.
5-
Python Versions 3.7+ are supported.
65
It is meant for advanced users only - regular PyO3 users shouldn't
76
need to interact with this crate at all.
87

@@ -13,7 +12,7 @@ Manual][capi] for up-to-date documentation.
1312
# Minimum supported Rust and Python versions
1413

1514
PyO3 supports the following software versions:
16-
- Python 3.7 and up (CPython and PyPy)
15+
- Python 3.8 and up (CPython and PyPy)
1716
- Rust 1.56 and up
1817

1918
# Example: Building Python Native modules

pyo3-ffi/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
//! # Minimum supported Rust and Python versions
5151
//!
5252
//! PyO3 supports the following software versions:
53-
//! - Python 3.7 and up (CPython and PyPy)
53+
//! - Python 3.8 and up (CPython and PyPy)
5454
//! - Rust 1.56 and up
5555
//!
5656
//! # Example: Building Python Native modules

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
//! # Minimum supported Rust and Python versions
122122
//!
123123
//! PyO3 supports the following software versions:
124-
//! - Python 3.7 and up (CPython and PyPy)
124+
//! - Python 3.8 and up (CPython and PyPy)
125125
//! - Rust 1.56 and up
126126
//!
127127
//! # Example: Building a native Python module

0 commit comments

Comments
 (0)