Skip to content

Commit 359e924

Browse files
authored
PYTHON-3896 Drop support for pypy3.7 (#1343)
1 parent 94fd83e commit 359e924

File tree

5 files changed

+16
-15
lines changed

5 files changed

+16
-15
lines changed

.evergreen/config.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -563,8 +563,6 @@ functions:
563563
564564
set -o errexit
565565
set -o xtrace
566-
# This is required for pypy3.7 UTF encoding
567-
export LC_ALL=en_US.UTF-8
568566
${PYTHON_BINARY} -m tox -m test-atlas
569567
570568
"add aws auth variables to file":
@@ -2533,14 +2531,14 @@ axes:
25332531
display_name: "Python 3.12"
25342532
variables:
25352533
PYTHON_BINARY: "/opt/python/3.12/bin/python3"
2536-
- id: "pypy3.7"
2537-
display_name: "PyPy 3.7"
2538-
variables:
2539-
PYTHON_BINARY: "/opt/python/pypy3.7/bin/pypy3"
25402534
- id: "pypy3.8"
25412535
display_name: "PyPy 3.8"
25422536
variables:
25432537
PYTHON_BINARY: "/opt/python/pypy3.8/bin/pypy3"
2538+
- id: "pypy3.10"
2539+
display_name: "PyPy 3.10"
2540+
variables:
2541+
PYTHON_BINARY: "/opt/python/pypy3.10/bin/pypy3"
25442542

25452543
- id: python-version-mac
25462544
display_name: "Python"
@@ -2881,7 +2879,7 @@ buildvariants:
28812879
# Only test "noauth" with Python 3.7.
28822880
exclude_spec:
28832881
platform: rhel8
2884-
python-version: ["3.8", "3.9", "3.10", "pypy3.7", "pypy3.8"]
2882+
python-version: ["3.8", "3.9", "3.10", "pypy3.8", "pypy3.10"]
28852883
auth: "noauth"
28862884
ssl: "ssl"
28872885
pyopenssl: "*"
@@ -2942,7 +2940,7 @@ buildvariants:
29422940
exclude_spec:
29432941
# These interpreters are always tested without extensions.
29442942
- platform: rhel8
2945-
python-version: ["pypy3.7", "pypy3.8"]
2943+
python-version: ["pypy3.8", "pypy3.10"]
29462944
c-extensions: "*"
29472945
auth-ssl: "*"
29482946
coverage: "*"
@@ -2958,7 +2956,7 @@ buildvariants:
29582956
exclude_spec:
29592957
# These interpreters are always tested without extensions.
29602958
- platform: rhel8
2961-
python-version: ["pypy3.7", "pypy3.8"]
2959+
python-version: ["pypy3.8", "pypy3.10"]
29622960
c-extensions: "with-c-extensions"
29632961
compression: "*"
29642962
display_name: "${compression} ${c-extensions} ${python-version} ${platform}"
@@ -2987,7 +2985,7 @@ buildvariants:
29872985
exclude_spec:
29882986
# Don't test green frameworks on these Python versions.
29892987
- platform: rhel8
2990-
python-version: ["pypy3.7", "pypy3.8"]
2988+
python-version: ["pypy3.8", "pypy3.10"]
29912989
green-framework: "*"
29922990
auth-ssl: "*"
29932991
display_name: "${green-framework} ${python-version} ${platform} ${auth-ssl}"
@@ -3013,7 +3011,7 @@ buildvariants:
30133011
matrix_spec:
30143012
platform: rhel7
30153013
# Python 3.10+ requires OpenSSL 1.1.1+
3016-
python-version: ["3.7", "3.8", "3.9", "pypy3.7", "pypy3.8"]
3014+
python-version: ["3.7", "3.8", "3.9", "pypy3.8", "pypy3.10"]
30173015
auth-ssl: "*"
30183016
display_name: "OpenSSL 1.0.2 ${python-version} ${platform} ${auth-ssl}"
30193017
tasks:
@@ -3193,7 +3191,7 @@ buildvariants:
31933191
- matrix_name: "ocsp-test"
31943192
matrix_spec:
31953193
platform: rhel8
3196-
python-version: ["3.7", "3.10", "pypy3.7", "pypy3.8"]
3194+
python-version: ["3.7", "3.10", "pypy3.8", "pypy3.10"]
31973195
mongodb-version: ["4.4", "5.0", "6.0", "7.0", "latest"]
31983196
auth: "noauth"
31993197
ssl: "ssl"

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ that might not be of interest or that has already been addressed.
1919
Supported Interpreters
2020
----------------------
2121

22-
PyMongo supports CPython 3.7+ and PyPy3.7+. Language
22+
PyMongo supports CPython 3.7+ and PyPy3.8+. Language
2323
features not supported by all interpreters can not be used.
2424

2525
Style Guide

doc/changelog.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ PyMongo 4.5 brings a number of improvements including:
1818
- cryptography 2.5 or later is now required for :ref:`OCSP` support.
1919
- Improved bson encoding and decoding performance by up to 134%(`PYTHON-3729`_, `PYTHON-3797`_, `PYTHON-3816`_, `PYTHON-3817`_, `PYTHON-3820`_, `PYTHON-3824`_, and `PYTHON-3846`_).
2020

21+
.. warning:: PyMongo no longer supports PyPy3 versions older than 3.8. Users
22+
must upgrade to PyPy3.8+.
23+
2124
Issues Resolved
2225
...............
2326

doc/faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ they are returned to the pool.
166166
Does PyMongo support Python 3?
167167
------------------------------
168168

169-
PyMongo supports CPython 3.7+ and PyPy3.7+. See the :doc:`python3` for details.
169+
PyMongo supports CPython 3.7+ and PyPy3.8+. See the :doc:`python3` for details.
170170

171171
Does PyMongo support asynchronous frameworks like Gevent, asyncio, Tornado, or Twisted?
172172
---------------------------------------------------------------------------------------

doc/python3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Python 3 FAQ
44
What Python 3 versions are supported?
55
-------------------------------------
66

7-
PyMongo supports CPython 3.7+ and PyPy3.7+.
7+
PyMongo supports CPython 3.7+ and PyPy3.8+.
88

99
Are there any PyMongo behavior changes with Python 3?
1010
-----------------------------------------------------

0 commit comments

Comments
 (0)