Skip to content

Commit f2ce5fc

Browse files
authored
[4.4] Add Python 3.11 support (#862)
Fix mock re-emitting ImportWarning from boltkit: python/cpython#99716 Cherry pick of #861
1 parent 15a31db commit f2ce5fc

File tree

8 files changed

+15
-2
lines changed

8 files changed

+15
-2
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Neo4j Driver Change Log
22

3+
## Version 4.4.10
4+
5+
- Python 3.11 support added
6+
7+
38
## Version 4.4.9
49

510
- Python 3.10 support added

docs/source/index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Neo4j versions supported:
1212

1313
Python versions supported:
1414

15+
* Python 3.11 (added in driver version 4.4.10)
1516
* Python 3.10 (added in driver version 4.4.9)
1617
* Python 3.9
1718
* Python 3.8

pytest.ini

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[pytest]
2+
mock_use_standalone_module = true

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"Programming Language :: Python :: 3.8",
3939
"Programming Language :: Python :: 3.9",
4040
"Programming Language :: Python :: 3.10",
41+
"Programming Language :: Python :: 3.11",
4142
]
4243
entry_points = {
4344
"console_scripts": [

testkit/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ ENV PYENV_ROOT /.pyenv
4040
ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
4141

4242
# Setup python version
43-
ENV PYTHON_VERSIONS 3.6 3.7 3.8 3.9 3.10
43+
ENV PYTHON_VERSIONS 3.6 3.7 3.8 3.9 3.10 3.11
4444

4545
RUN for version in $PYTHON_VERSIONS; do \
4646
pyenv install $version:latest; \
@@ -50,6 +50,7 @@ RUN pyenv global $(pyenv versions --bare --skip-aliases)
5050

5151
# Install Latest pip and setuptools for each environment
5252
# + tox and tools for starting the tests
53+
# https://pip.pypa.io/en/stable/news/
5354
RUN for version in $PYTHON_VERSIONS; do \
5455
python$version -m pip install -U pip && \
5556
python$version -m pip install -U setuptools && \

tests/requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ coverage
33
pytest
44
pytest-benchmark
55
pytest-cov
6-
pytest-mock~=3.6.1
6+
pytest-mock~=3.6
7+
mock~=4.0
78
teamcity-messages
89
pandas>=1.0.0

tox-unit.ini

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ envlist =
55
py38
66
py39
77
py310
8+
py311
89

910
[testenv]
1011
deps =

tox.ini

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ envlist =
55
py38
66
py39
77
py310
8+
py311
89

910
[testenv]
1011
passenv =

0 commit comments

Comments
 (0)