Skip to content

Commit 42f2d31

Browse files
authored
PYTHON-4750 Add support for Python 3.13 (mongodb#1849)
1 parent 0119062 commit 42f2d31

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

.evergreen/config.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2253,6 +2253,10 @@ axes:
22532253
display_name: "Python 3.12"
22542254
variables:
22552255
PYTHON_BINARY: "/opt/python/3.12/bin/python3"
2256+
- id: "3.13"
2257+
display_name: "Python 3.13"
2258+
variables:
2259+
PYTHON_BINARY: "/opt/python/3.13/bin/python3"
22562260
- id: "pypy3.9"
22572261
display_name: "PyPy 3.9"
22582262
variables:
@@ -2285,6 +2289,10 @@ axes:
22852289
display_name: "Python 3.12"
22862290
variables:
22872291
PYTHON_BINARY: "C:/python/Python312/python.exe"
2292+
- id: "3.13"
2293+
display_name: "Python 3.13"
2294+
variables:
2295+
PYTHON_BINARY: "C:/python/Python313/python.exe"
22882296

22892297
- id: python-version-windows-32
22902298
display_name: "Python"
@@ -2309,6 +2317,10 @@ axes:
23092317
display_name: "32-bit Python 3.12"
23102318
variables:
23112319
PYTHON_BINARY: "C:/python/32/Python312/python.exe"
2320+
- id: "3.13"
2321+
display_name: "32-bit Python 3.13"
2322+
variables:
2323+
PYTHON_BINARY: "C:/python/32/Python313/python.exe"
23122324

23132325
# Choice of mod_wsgi version
23142326
- id: mod-wsgi-version
@@ -2572,7 +2584,7 @@ buildvariants:
25722584
# Only test "noauth" with Python 3.8.
25732585
exclude_spec:
25742586
platform: rhel8
2575-
python-version: ["3.9", "3.10", "pypy3.9", "pypy3.10"]
2587+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.9", "pypy3.10"]
25762588
auth: "noauth"
25772589
ssl: "ssl"
25782590
pyopenssl: "*"
@@ -2678,7 +2690,7 @@ buildvariants:
26782690
exclude_spec:
26792691
# Don't test green frameworks on these Python versions.
26802692
- platform: rhel8
2681-
python-version: ["pypy3.9", "pypy3.10"]
2693+
python-version: ["pypy3.9", "pypy3.10", "3.13"]
26822694
green-framework: "*"
26832695
auth-ssl: "*"
26842696
display_name: "${green-framework} ${python-version} ${platform} ${auth-ssl}"
@@ -2801,7 +2813,7 @@ buildvariants:
28012813
- matrix_name: "tests-mod-wsgi"
28022814
matrix_spec:
28032815
platform: ubuntu-22.04
2804-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
2816+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
28052817
mod-wsgi-version: "*"
28062818
display_name: "${mod-wsgi-version} ${python-version} ${platform}"
28072819
tasks:

doc/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Changes in Version 4.9.0
1010
PyMongo 4.9 brings a number of improvements including:
1111

1212
- Added support for MongoDB 8.0.
13+
- Added support for Python 3.13.
1314
- A new asynchronous API with full asyncio support.
1415
- Added support for In-Use Encryption range queries with MongoDB 8.0.
1516
Added :attr:`~pymongo.encryption.Algorithm.RANGE`.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ classifiers = [
3535
"Programming Language :: Python :: 3.10",
3636
"Programming Language :: Python :: 3.11",
3737
"Programming Language :: Python :: 3.12",
38+
"Programming Language :: Python :: 3.13",
3839
"Topic :: Database",
3940
"Typing :: Typed",
4041
]

0 commit comments

Comments
 (0)