Skip to content

Commit 4766876

Browse files
authored
PYTHON-4321 Add support for Python 3.13 and update changelog for 1.11.0 release (#885)
1 parent 2f83de9 commit 4766876

File tree

5 files changed

+20
-16
lines changed

5 files changed

+20
-16
lines changed

.evergreen/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ functions:
162162
- command: subprocess.exec
163163
params:
164164
binary: bash
165+
working_dir: "${DRIVERS_TOOLS}"
165166
env:
166167
TOPOLOGY: replica_set
167168
MONGODB_VERSION: "8.0"

bindings/python/.evergreen/integ-test.sh

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,37 +10,31 @@ BASE_PYTHON=$(find_python3)
1010

1111
# MONGOCRYPT_DIR is set by libmongocrypt/.evergreen/config.yml
1212
MONGOCRYPT_DIR="$MONGOCRYPT_DIR"
13+
CRYPT_SHARED_DIR="$DRIVERS_TOOLS"
1314

1415
MACHINE=$(uname -m)
1516
if [ $MACHINE == "aarch64" ]; then
1617
PYTHON="/opt/mongodbtoolchain/v4/bin/python3"
17-
TARGET=rhel82
1818
else
19-
TARGET=rhel80
20-
PYTHON="/opt/python/3.8/bin/python3"
19+
PYTHON="/opt/python/3.13/bin/python3"
2120
fi
2221

23-
CRYPT_SHARED_DIR="$(pwd)/crypt_shared"
24-
/opt/mongodbtoolchain/v3/bin/python3 $DRIVERS_TOOLS/.evergreen/mongodl.py --component \
25-
crypt_shared --version latest --out $CRYPT_SHARED_DIR --target $TARGET
26-
27-
if [ -e "${MONGOCRYPT_DIR}/lib64/" ]; then
28-
export PYMONGOCRYPT_LIB=${MONGOCRYPT_DIR}/nocrypto/lib64/libmongocrypt.so
29-
PYMONGOCRYPT_LIB_CRYPTO=${MONGOCRYPT_DIR}/lib64/libmongocrypt.so
22+
if [ -d "${MONGOCRYPT_DIR}/nocrypto/lib64" ]; then
23+
PYMONGOCRYPT_LIB="${MONGOCRYPT_DIR}/nocrypto/lib64/libmongocrypt.so"
3024
else
31-
export PYMONGOCRYPT_LIB=${MONGOCRYPT_DIR}/nocrypto/lib/libmongocrypt.so
32-
PYMONGOCRYPT_LIB_CRYPTO=${MONGOCRYPT_DIR}/lib/libmongocrypt.so
25+
PYMONGOCRYPT_LIB="${MONGOCRYPT_DIR}/nocrypto/lib/libmongocrypt.so"
3326
fi
27+
export PYMONGOCRYPT_LIB
3428

3529
createvirtualenv $PYTHON .venv
3630
pip install -e .
3731
pushd $PYMONGO_DIR
3832
pip install -e ".[test,encryption]"
3933
source ${DRIVERS_TOOLS}/.evergreen/csfle/secrets-export.sh
4034
set -x
41-
TEST_CRYPT_SHARED=1 DYLD_FALLBACK_LIBRARY_PATH=$CRYPT_SHARED_DIR/lib/:${DYLD_FALLBACK_LIBRARY_PATH:-} \
42-
LD_LIBRARY_PATH=$CRYPT_SHARED_DIR/lib:${LD_LIBRARY_PATH-} \
43-
PATH=$CRYPT_SHARED_DIR/bin:$PATH \
35+
TEST_CRYPT_SHARED=1 DYLD_FALLBACK_LIBRARY_PATH=$CRYPT_SHARED_DIR:${DYLD_FALLBACK_LIBRARY_PATH:-} \
36+
LD_LIBRARY_PATH=$CRYPT_SHARED_DIR:${LD_LIBRARY_PATH-} \
37+
PATH=$CRYPT_SHARED_DIR:$PATH \
4438
AUTH=auth SSL=ssl \
4539
.evergreen/run-tests.sh -m encryption
4640

bindings/python/.evergreen/test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ else
6262
"/opt/python/3.10/bin/python3"
6363
"/opt/python/3.11/bin/python3"
6464
"/opt/python/3.12/bin/python3"
65+
"/opt/python/3.13/bin/python3"
6566
)
6667
fi
6768
/opt/mongodbtoolchain/v3/bin/python3 drivers-evergreen-tools/.evergreen/mongodl.py --component \

bindings/python/CHANGELOG.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
Changelog
22
=========
33

4+
Changes in Version 1.11.0
5+
-------------------------
6+
7+
- Bundle libmongocrypt 1.11.0 in release wheels.
8+
- Add support for Python 3.13.
9+
- Fix bug in Python async support for ``AsyncMongoCryptCallback.fetch_keys``.
10+
411
Changes in Version 1.10.1
5-
------------------------
12+
-------------------------
613

714
- Bundle libmongocrypt 1.10.1 in release wheels.
815

bindings/python/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ classifiers = [
3636
"Programming Language :: Python :: 3.10",
3737
"Programming Language :: Python :: 3.11",
3838
"Programming Language :: Python :: 3.12",
39+
"Programming Language :: Python :: 3.13",
3940
"Topic :: Database",
4041
]
4142

0 commit comments

Comments
 (0)