Skip to content

Commit 2e23767

Browse files
committed
fix up 3.14 support
1 parent d335cf6 commit 2e23767

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/test-python.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
fail-fast: false
4444
matrix:
4545
os: [ubuntu-latest, windows-latest, macos-latest]
46-
python-version: ["3.9", "3.13", "3.14"]
46+
python-version: ["3.9", "3.13", "3.14t"]
4747

4848
steps:
4949
- uses: actions/checkout@v4
@@ -57,6 +57,9 @@ jobs:
5757
python-version: ${{ matrix.python-version }}
5858
- name: Build and test dist files
5959
run: |
60+
if [ "${{ matrix.python-version }}" == "3.14" ]; then
61+
export PIP_PRE=1
62+
fi
6063
export LIBMONGOCRYPT_VERSION=$(cat ./scripts/libmongocrypt-version.txt)
6164
git fetch origin $LIBMONGOCRYPT_VERSION
6265
bash ./scripts/release.sh

bindings/python/.evergreen/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ for PYTHON_BINARY in "${PYTHONS[@]}"; do
7676
$PYTHON_BINARY -c 'import sys; print(sys.version)'
7777
git clean -dffx
7878
createvirtualenv $PYTHON_BINARY .venv
79-
python -m pip install --prefer-binary -v -e ".[test]"
79+
python -m pip install --prefer-binary -v -e ".[test]" || python -m pip install --pre --prefer-binary -v -e ".[test]"
8080
echo "Running tests with crypto enabled libmongocrypt..."
8181
PYMONGOCRYPT_LIB=$PYMONGOCRYPT_LIB_CRYPTO python -c 'from pymongocrypt.binding import lib;assert lib.mongocrypt_is_crypto_available(), "mongocrypt_is_crypto_available() returned False"'
8282
PYMONGOCRYPT_LIB=$PYMONGOCRYPT_LIB_CRYPTO python -m pytest -v --ignore=test/performance .

bindings/python/requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
cffi>=1.12.0,<3;python_version<"3.14"
2-
cffi>=2.0.0b1,<3;python_version=="3.14"
1+
cffi>=1.12.0,<3
32
cryptography>=40
43
packaging>=21.0
54
httpx>=0.25.0

0 commit comments

Comments
 (0)