Merge branch 'master' of github.com:mongodb/mongo-python-driver
This commit is contained in:
commit
62ffa2c1e9
@ -8,7 +8,8 @@ if [ -z "$1" ]
|
||||
fi
|
||||
|
||||
target=$1
|
||||
remote_dir=/home/ec2-user/mongo-python-driver
|
||||
user=${target%@*}
|
||||
remote_dir=/home/$user/mongo-python-driver
|
||||
|
||||
echo "Copying files to $target..."
|
||||
rsync -az -e ssh --exclude '.git' --filter=':- .gitignore' -r . $target:$remote_dir
|
||||
|
||||
@ -6,9 +6,10 @@ if [ -z "$1" ]
|
||||
fi
|
||||
|
||||
target=$1
|
||||
user=${target%@*}
|
||||
|
||||
echo "Syncing files to $target..."
|
||||
rsync -haz -e ssh --exclude '.git' --filter=':- .gitignore' -r . $target:/home/ec2-user/mongo-python-driver
|
||||
rsync -haz -e ssh --exclude '.git' --filter=':- .gitignore' -r . $target:/home/$user/mongo-python-driver
|
||||
# shellcheck disable=SC2034
|
||||
fswatch -o . | while read f; do rsync -hazv -e ssh --exclude '.git' --filter=':- .gitignore' -r . $target:/home/ec2-user/mongo-python-driver; done
|
||||
fswatch -o . | while read f; do rsync -hazv -e ssh --exclude '.git' --filter=':- .gitignore' -r . $target:/home/$user/mongo-python-driver; done
|
||||
echo "Syncing files to $target... done."
|
||||
|
||||
6
.github/workflows/test-python.yml
vendored
6
.github/workflows/test-python.yml
vendored
@ -87,7 +87,7 @@ jobs:
|
||||
pip install hatch
|
||||
fi
|
||||
- name: Start MongoDB
|
||||
uses: supercharge/mongodb-github-action@1.11.0
|
||||
uses: supercharge/mongodb-github-action@1.12.0
|
||||
with:
|
||||
mongodb-version: 6.0
|
||||
- name: Run tests
|
||||
@ -115,7 +115,7 @@ jobs:
|
||||
run: |
|
||||
pip install -U hatch pip
|
||||
- name: Start MongoDB
|
||||
uses: supercharge/mongodb-github-action@1.11.0
|
||||
uses: supercharge/mongodb-github-action@1.12.0
|
||||
with:
|
||||
mongodb-version: '8.0.0-rc4'
|
||||
- name: Run tests
|
||||
@ -230,7 +230,7 @@ jobs:
|
||||
# Test sdist on lowest supported Python
|
||||
python-version: '3.9'
|
||||
- name: Start MongoDB
|
||||
uses: supercharge/mongodb-github-action@1.11.0
|
||||
uses: supercharge/mongodb-github-action@1.12.0
|
||||
- name: Run connect test from sdist
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
@ -82,6 +82,11 @@ https://pymongo.readthedocs.io/en/stable/installation.html#osx
|
||||
)
|
||||
|
||||
def build_extension(self, ext):
|
||||
# "ProgramFiles(x86)" is not a valid environment variable in Cygwin but is needed for
|
||||
# the MSVCCompiler in distutils.
|
||||
if os.name == "nt":
|
||||
if "ProgramFiles" in os.environ and "ProgramFiles(x86)" not in os.environ:
|
||||
os.environ["ProgramFiles(x86)"] = os.environ["ProgramFiles"] + " (x86)"
|
||||
name = ext.name
|
||||
try:
|
||||
build_ext.build_extension(self, ext)
|
||||
|
||||
@ -212,6 +212,7 @@ dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?)|dummy.*)$"
|
||||
"tools/*.py" = ["T201"]
|
||||
"green_framework_test.py" = ["T201"]
|
||||
"hatch_build.py" = ["S"]
|
||||
"_setup.py" = ["SIM112"]
|
||||
|
||||
[tool.coverage.run]
|
||||
branch = true
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
mypy==1.13.0
|
||||
mypy==1.14.1
|
||||
pyright==1.1.391
|
||||
typing_extensions
|
||||
-r ./encryption.txt
|
||||
|
||||
Loading…
Reference in New Issue
Block a user