File tree Expand file tree Collapse file tree 9 files changed +35
-9
lines changed Expand file tree Collapse file tree 9 files changed +35
-9
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ if [ -z "$1" ]
8
8
fi
9
9
10
10
target=$1
11
- remote_dir=/home/ec2-user/mongo-python-driver
11
+ user=${target%@* }
12
+ remote_dir=/home/$user /mongo-python-driver
12
13
13
14
echo " Copying files to $target ..."
14
15
rsync -az -e ssh --exclude ' .git' --filter=' :- .gitignore' -r . $target :$remote_dir
Original file line number Diff line number Diff line change @@ -6,9 +6,10 @@ if [ -z "$1" ]
6
6
fi
7
7
8
8
target=$1
9
+ user=${target%@* }
9
10
10
11
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
12
13
# 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
14
15
echo " Syncing files to $target ... done."
Original file line number Diff line number Diff line change 67
67
68
68
publish :
69
69
needs : [build-dist, static-scan]
70
+ name : Upload release to PyPI
71
+ runs-on : ubuntu-latest
72
+ environment : release
73
+ permissions :
74
+ id-token : write
75
+ steps :
76
+ - name : Download all the dists
77
+ uses : actions/download-artifact@v4
78
+ with :
79
+ name : all-dist-${{ github.run_id }}
80
+ path : dist/
81
+ - name : Publish package distributions to PyPI
82
+ if : startsWith(inputs.dry_run, 'false')
83
+ uses : pypa/gh-action-pypi-publish@release/v1
84
+
85
+ post-publish :
86
+ needs : [publish]
70
87
runs-on : ubuntu-latest
71
88
environment : release
72
89
permissions :
Original file line number Diff line number Diff line change 87
87
pip install hatch
88
88
fi
89
89
- name : Start MongoDB
90
- uses : supercharge/mongodb-github-action@1.11 .0
90
+ uses : supercharge/mongodb-github-action@1.12 .0
91
91
with :
92
92
mongodb-version : 6.0
93
93
- name : Run tests
@@ -115,7 +115,7 @@ jobs:
115
115
run : |
116
116
pip install -U hatch pip
117
117
- name : Start MongoDB
118
- uses : supercharge/mongodb-github-action@1.11 .0
118
+ uses : supercharge/mongodb-github-action@1.12 .0
119
119
with :
120
120
mongodb-version : ' 8.0.0-rc4'
121
121
- name : Run tests
@@ -230,7 +230,7 @@ jobs:
230
230
# Test sdist on lowest supported Python
231
231
python-version : ' 3.9'
232
232
- name : Start MongoDB
233
- uses : supercharge/mongodb-github-action@1.11 .0
233
+ uses : supercharge/mongodb-github-action@1.12 .0
234
234
- name : Run connect test from sdist
235
235
shell : bash
236
236
run : |
Original file line number Diff line number Diff line change @@ -82,6 +82,11 @@ def run(self):
82
82
)
83
83
84
84
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)"
85
90
name = ext .name
86
91
try :
87
92
build_ext .build_extension (self , ext )
Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ PyMongo 4.11 brings a number of changes including:
13
13
- Dropped support for Python 3.8.
14
14
- Dropped support for MongoDB 3.6.
15
15
- Dropped support for the MONGODB-CR authenticate mechanism, which is no longer supported by MongoDB 4.0+.
16
- - Added limited support for free-threaded Python with the GIL disabled. For more information see:
16
+ - pymongocrypt>=1.12 is now required for :ref: `In-Use Encryption ` support.
17
+ - Added support for free-threaded Python with the GIL disabled. For more information see:
17
18
`Free-threaded CPython <https://docs.python.org/3.13/whatsnew/3.13.html#whatsnew313-free-threaded-cpython >`_.
18
19
We do not yet support free-threaded Python on Windows (`PYTHON-5027 `_) or with In-Use Encryption (`PYTHON-5024 `_).
19
20
- :attr: `~pymongo.asynchronous.mongo_client.AsyncMongoClient.address ` and
Original file line number Diff line number Diff line change @@ -212,6 +212,7 @@ dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?)|dummy.*)$"
212
212
"tools/*.py" = [" T201" ]
213
213
"green_framework_test.py" = [" T201" ]
214
214
"hatch_build.py" = [" S" ]
215
+ "_setup.py" = [" SIM112" ]
215
216
216
217
[tool .coverage .run ]
217
218
branch = true
Original file line number Diff line number Diff line change 1
1
pymongo-auth-aws>=1.1.0,<2.0.0
2
- pymongocrypt>=1.10 .0,<2.0.0
2
+ pymongocrypt>=1.12 .0,<2.0.0
3
3
certifi;os.name=='nt' or sys_platform=='darwin'
Original file line number Diff line number Diff line change 1
- mypy==1.13.0
1
+ mypy==1.14.1
2
2
pyright==1.1.391
3
3
typing_extensions
4
4
-r ./encryption.txt
You can’t perform that action at this time.
0 commit comments