Skip to content

Commit 4d845ea

Browse files
committed
Merge branch 'master' of github.com:mongodb/mongo-python-driver
2 parents 891856a + cd9de28 commit 4d845ea

File tree

12 files changed

+23
-341
lines changed

12 files changed

+23
-341
lines changed

.evergreen/build-mac.sh

Lines changed: 0 additions & 30 deletions
This file was deleted.

.evergreen/build-manylinux-internal.sh

Lines changed: 0 additions & 42 deletions
This file was deleted.

.evergreen/build-manylinux.sh

Lines changed: 0 additions & 50 deletions
This file was deleted.

.evergreen/build-windows.sh

Lines changed: 0 additions & 29 deletions
This file was deleted.

.evergreen/config.yml

Lines changed: 0 additions & 159 deletions
Original file line numberDiff line numberDiff line change
@@ -786,92 +786,6 @@ functions:
786786
args:
787787
- ${DRIVERS_TOOLS}/.evergreen/atlas/teardown-atlas-cluster.sh
788788

789-
"build release":
790-
- command: shell.exec
791-
type: test
792-
params:
793-
working_dir: "src"
794-
script: |
795-
${PREPARE_SHELL}
796-
set -o xtrace
797-
VERSION=${VERSION} ENSURE_UNIVERSAL2=${ENSURE_UNIVERSAL2} .evergreen/release.sh
798-
799-
"upload release":
800-
- command: ec2.assume_role
801-
params:
802-
role_arn: ${assume_role_arn}
803-
- command: archive.targz_pack
804-
params:
805-
target: "release-files.tgz"
806-
source_dir: "src/dist"
807-
include:
808-
- "*"
809-
- command: s3.put
810-
params:
811-
aws_key: ${AWS_ACCESS_KEY_ID}
812-
aws_secret: ${AWS_SECRET_ACCESS_KEY}
813-
aws_session_token: ${AWS_SESSION_TOKEN}
814-
local_file: release-files.tgz
815-
remote_file: release/${revision}/${task_id}-${execution}-release-files.tar.gz
816-
bucket: ${bucket_name}
817-
permissions: public-read
818-
content_type: ${content_type|application/gzip}
819-
display_name: Release files
820-
821-
"download and merge releases":
822-
- command: ec2.assume_role
823-
params:
824-
role_arn: ${assume_role_arn}
825-
- command: shell.exec
826-
params:
827-
silent: true
828-
include_expansions_in_env: ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN"]
829-
script: |
830-
# Download all the task coverage files.
831-
aws s3 cp --recursive s3://${bucket_name}/release/${revision}/ release/
832-
- command: shell.exec
833-
params:
834-
shell: "bash"
835-
script: |
836-
${PREPARE_SHELL}
837-
set -o xtrace
838-
# Combine releases into one directory.
839-
ls -la release/
840-
mkdir releases
841-
# Copy old manylinux release first since we want the newer manylinux
842-
# wheels to override them.
843-
mkdir old_manylinux
844-
if mv release/*old_manylinux* old_manylinux; then
845-
for REL in old_manylinux/*; do
846-
tar zxvf $REL -C releases/
847-
done
848-
fi
849-
for REL in release/*; do
850-
tar zxvf $REL -C releases/
851-
done
852-
# Build source distribution.
853-
cd src/
854-
/opt/python/3.8/bin/python3 -m pip install build
855-
/opt/python/3.8/bin/python3 -m build --sdist .
856-
cp dist/* ../releases
857-
- command: archive.targz_pack
858-
params:
859-
target: "release-files-all.tgz"
860-
source_dir: "releases/"
861-
include:
862-
- "*"
863-
- command: s3.put
864-
params:
865-
aws_key: ${AWS_ACCESS_KEY_ID}
866-
aws_secret: ${AWS_SECRET_ACCESS_KEY}
867-
aws_session_token: ${AWS_SESSION_TOKEN}
868-
local_file: release-files-all.tgz
869-
remote_file: release-all/${revision}/${task_id}-${execution}-release-files-all.tar.gz
870-
bucket: ${bucket_name}
871-
permissions: public-read
872-
content_type: ${content_type|application/gzip}
873-
display_name: Release files all
874-
875789
"run perf tests":
876790
- command: shell.exec
877791
type: test
@@ -1116,72 +1030,6 @@ tasks:
11161030
genhtml --version || true
11171031
valgrind --version || true
11181032
1119-
- name: "release-mac"
1120-
tags: ["release_tag"]
1121-
run_on: macos-11
1122-
commands:
1123-
- func: "build release"
1124-
vars:
1125-
VERSION: "3.12"
1126-
ENSURE_UNIVERSAL2: "1"
1127-
- func: "build release"
1128-
vars:
1129-
VERSION: "3.11"
1130-
ENSURE_UNIVERSAL2: "1"
1131-
- func: "build release"
1132-
vars:
1133-
VERSION: "3.10"
1134-
ENSURE_UNIVERSAL2: "1"
1135-
- func: "build release"
1136-
vars:
1137-
VERSION: "3.9"
1138-
ENSURE_UNIVERSAL2: "1"
1139-
- func: "upload release"
1140-
- func: "build release"
1141-
vars:
1142-
VERSION: "3.8"
1143-
- func: "upload release"
1144-
1145-
- name: "release-windows"
1146-
tags: ["release_tag"]
1147-
run_on: windows-64-vsMulti-small
1148-
commands:
1149-
- func: "build release"
1150-
- func: "upload release"
1151-
1152-
- name: "release-manylinux"
1153-
tags: ["release_tag"]
1154-
run_on: ubuntu2204-large
1155-
exec_timeout_secs: 216000 # 60 minutes (manylinux task is slow).
1156-
commands:
1157-
- func: "build release"
1158-
- func: "upload release"
1159-
1160-
- name: "release-old-manylinux"
1161-
tags: ["release_tag"]
1162-
run_on: ubuntu2204-large
1163-
exec_timeout_secs: 216000 # 60 minutes (manylinux task is slow).
1164-
commands:
1165-
- command: shell.exec
1166-
type: test
1167-
params:
1168-
working_dir: "src"
1169-
script: |
1170-
${PREPARE_SHELL}
1171-
set -o xtrace
1172-
.evergreen/build-manylinux.sh BUILD_WITH_TAG
1173-
- func: "upload release"
1174-
1175-
- name: "release-combine"
1176-
tags: ["release_tag"]
1177-
run_on: rhel84-small
1178-
depends_on:
1179-
- name: "*"
1180-
variant: ".release_tag"
1181-
patch_optional: true
1182-
commands:
1183-
- func: "download and merge releases"
1184-
11851033
# Standard test tasks {{{
11861034

11871035
- name: "mockupdb"
@@ -3177,13 +3025,6 @@ buildvariants:
31773025
tasks:
31783026
- name: "check-import-time"
31793027

3180-
- name: Release
3181-
display_name: Release
3182-
batchtime: 20160 # 14 days
3183-
tags: ["release_tag"]
3184-
tasks:
3185-
- ".release_tag"
3186-
31873028
- name: "perf-tests"
31883029
display_name: "Performance Benchmark Tests"
31893030
batchtime: 10080 # 7 days

.evergreen/hatch.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ if $PYTHON_BINARY -m hatch --version; then
1313
$PYTHON_BINARY -m hatch run "$@"
1414
}
1515
else # No toolchain hatch present, set up virtualenv before installing hatch
16-
createvirtualenv "$PYTHON_BINARY" hatchenv
17-
trap "deactivate; rm -rf hatchenv" EXIT HUP
16+
# Use a random venv name because the encryption tasks run this script multiple times in the same run.
17+
ENV_NAME=hatchenv-$RANDOM
18+
createvirtualenv "$PYTHON_BINARY" $ENV_NAME
19+
# shellcheck disable=SC2064
20+
trap "deactivate; rm -rf $ENV_NAME" EXIT HUP
1821
python -m pip install -q hatch
1922
run_hatch() {
2023
python -m hatch run "$@"

.evergreen/release.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

.evergreen/utils.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ find_python3() {
4343
createvirtualenv () {
4444
PYTHON=$1
4545
VENVPATH=$2
46-
rm -rf $VENVPATH
46+
4747
# Prefer venv
4848
VENV="$PYTHON -m venv"
4949
if [ "$(uname -s)" = "Darwin" ]; then

.github/workflows/test-python.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,6 @@ jobs:
7878
- name: Run tests
7979
run: |
8080
hatch run test:test
81-
- name: Run async tests
82-
run: |
83-
hatch run test:test-async
8481
8582
doctest:
8683
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)