Skip to content

Commit c539915

Browse files
committed
Bump minimum Python version to 3.10
1 parent 9d1efce commit c539915

File tree

7 files changed

+12
-25
lines changed

7 files changed

+12
-25
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
See also https://github.com/neo4j/neo4j-python-driver/wiki for a full changelog.
44

55
## NEXT RELEASE
6-
- No breaking or major changes.
6+
- Python 3.7, 3.8, and 3.9 support has been dropped.
77

88

99
## Version 5.28

README.rst

+3-6
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,10 @@ breaking API changes.
1616

1717
See also: https://neo4j.com/developer/kb/neo4j-supported-versions/
1818

19-
+ Python 3.13 supported (since driver version 5.26.0).
20-
+ Python 3.12 supported (since driver version 5.14.0).
21-
+ Python 3.11 supported (since driver version 5.3.0).
19+
+ Python 3.13 supported.
20+
+ Python 3.12 supported.
21+
+ Python 3.11 supported.
2222
+ Python 3.10 supported.
23-
+ Python 3.9 supported.
24-
+ Python 3.8 supported.
25-
+ Python 3.7 supported.
2623

2724

2825
Installation

TESTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Neo4j Driver Testing
22
To run driver tests, [Tox](https://tox.readthedocs.io) is required as well as at least one version of Python.
3-
The versions of Python supported by this driver are CPython 3.7 - 3.12
3+
The versions of Python supported by this driver are CPython 3.10 - 3.13
44

55
## Testing with TestKit
66
TestKit is the shared test suite used by all official (and some community contributed) Neo4j drivers to ensure consistent and correct behavior across all drivers.

docs/source/index.rst

+3-6
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,10 @@ See https://neo4j.com/developer/kb/neo4j-supported-versions/ for a driver-server
1818

1919
Python versions supported:
2020

21-
* Python 3.13 (added in driver version 5.26.0)
22-
* Python 3.12 (added in driver version 5.14.0)
23-
* Python 3.11 (added in driver version 5.3.0)
21+
* Python 3.13
22+
* Python 3.12
23+
* Python 3.11
2424
* Python 3.10
25-
* Python 3.9
26-
* Python 3.8
27-
* Python 3.7
2825

2926

3027
******

pyproject.toml

+2-7
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,14 @@ authors = [
2323
{name = "Neo4j, Inc.", email = "drivers@neo4j.com"},
2424
]
2525
dependencies = ["pytz"]
26-
requires-python = ">=3.7"
26+
requires-python = ">=3.10"
2727
keywords = ["neo4j", "graph", "database"]
2828
classifiers = [
2929
"Development Status :: 5 - Production/Stable",
3030
"Framework :: AsyncIO",
3131
"Intended Audience :: Developers",
3232
"License :: OSI Approved :: Apache Software License",
3333
"Operating System :: OS Independent",
34-
"Programming Language :: Python :: 3.7",
35-
"Programming Language :: Python :: 3.8",
36-
"Programming Language :: Python :: 3.9",
3734
"Programming Language :: Python :: 3.10",
3835
"Programming Language :: Python :: 3.11",
3936
"Programming Language :: Python :: 3.12",
@@ -65,9 +62,7 @@ pyarrow = ["pyarrow >= 1.0.0"]
6562

6663
[build-system]
6764
requires = [
68-
"setuptools == 68.0.0; python_version <= '3.7'", # dropped support for Python 3.7 in 68.1.0
69-
"setuptools == 75.3.0; python_version == '3.8'", # dropped support for Python 3.8 in 75.4.0
70-
"setuptools == 75.6.0; python_version >= '3.9'",
65+
"setuptools == 75.6.0",
7166
# TODO: 6.0 - can be removed once `setup.py` is simplified
7267
"tomlkit == 0.12.5", # dropped support (at least CI testing) for Python 3.7 in 0.13.0
7368
]

testkit/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ ENV PYENV_ROOT=/.pyenv
4242
ENV PATH="$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH"
4343

4444
# Setup python version
45-
ENV PYTHON_VERSIONS="3.13 3.12 3.11 3.10 3.9 3.8 3.7"
45+
ENV PYTHON_VERSIONS="3.13 3.12 3.11 3.10"
4646

4747
RUN for version in $PYTHON_VERSIONS; do \
4848
pyenv install $version; \

tox.ini

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
[tox]
2-
envlist = py{37,38,39,310,311,312,313}-{unit,integration,performance}
3-
# for Python 3.7 support (https://github.com/tox-dev/tox/issues/3416#issuecomment-2426989929)
4-
requires = virtualenv<20.22.0
2+
envlist = py{310,311,312,313}-{unit,integration,performance}
53

64
[testenv]
75
passenv = TEST_*

0 commit comments

Comments
 (0)