Skip to content

Commit 62ffa2c

Browse files
committed
Merge branch 'master' of github.com:mongodb/mongo-python-driver
2 parents 3d11495 + fd5a105 commit 62ffa2c

File tree

6 files changed

+15
-7
lines changed

6 files changed

+15
-7
lines changed

.evergreen/setup-spawn-host.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ if [ -z "$1" ]
88
fi
99

1010
target=$1
11-
remote_dir=/home/ec2-user/mongo-python-driver
11+
user=${target%@*}
12+
remote_dir=/home/$user/mongo-python-driver
1213

1314
echo "Copying files to $target..."
1415
rsync -az -e ssh --exclude '.git' --filter=':- .gitignore' -r . $target:$remote_dir

.evergreen/sync-spawn-host.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ if [ -z "$1" ]
66
fi
77

88
target=$1
9+
user=${target%@*}
910

1011
echo "Syncing files to $target..."
11-
rsync -haz -e ssh --exclude '.git' --filter=':- .gitignore' -r . $target:/home/ec2-user/mongo-python-driver
12+
rsync -haz -e ssh --exclude '.git' --filter=':- .gitignore' -r . $target:/home/$user/mongo-python-driver
1213
# shellcheck disable=SC2034
13-
fswatch -o . | while read f; do rsync -hazv -e ssh --exclude '.git' --filter=':- .gitignore' -r . $target:/home/ec2-user/mongo-python-driver; done
14+
fswatch -o . | while read f; do rsync -hazv -e ssh --exclude '.git' --filter=':- .gitignore' -r . $target:/home/$user/mongo-python-driver; done
1415
echo "Syncing files to $target... done."

.github/workflows/test-python.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
pip install hatch
8888
fi
8989
- name: Start MongoDB
90-
uses: supercharge/mongodb-github-action@1.11.0
90+
uses: supercharge/mongodb-github-action@1.12.0
9191
with:
9292
mongodb-version: 6.0
9393
- name: Run tests
@@ -115,7 +115,7 @@ jobs:
115115
run: |
116116
pip install -U hatch pip
117117
- name: Start MongoDB
118-
uses: supercharge/mongodb-github-action@1.11.0
118+
uses: supercharge/mongodb-github-action@1.12.0
119119
with:
120120
mongodb-version: '8.0.0-rc4'
121121
- name: Run tests
@@ -230,7 +230,7 @@ jobs:
230230
# Test sdist on lowest supported Python
231231
python-version: '3.9'
232232
- name: Start MongoDB
233-
uses: supercharge/mongodb-github-action@1.11.0
233+
uses: supercharge/mongodb-github-action@1.12.0
234234
- name: Run connect test from sdist
235235
shell: bash
236236
run: |

_setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ def run(self):
8282
)
8383

8484
def build_extension(self, ext):
85+
# "ProgramFiles(x86)" is not a valid environment variable in Cygwin but is needed for
86+
# the MSVCCompiler in distutils.
87+
if os.name == "nt":
88+
if "ProgramFiles" in os.environ and "ProgramFiles(x86)" not in os.environ:
89+
os.environ["ProgramFiles(x86)"] = os.environ["ProgramFiles"] + " (x86)"
8590
name = ext.name
8691
try:
8792
build_ext.build_extension(self, ext)

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?)|dummy.*)$"
212212
"tools/*.py" = ["T201"]
213213
"green_framework_test.py" = ["T201"]
214214
"hatch_build.py" = ["S"]
215+
"_setup.py" = ["SIM112"]
215216

216217
[tool.coverage.run]
217218
branch = true

requirements/typing.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
mypy==1.13.0
1+
mypy==1.14.1
22
pyright==1.1.391
33
typing_extensions
44
-r ./encryption.txt

0 commit comments

Comments
 (0)