Skip to content

Commit 9fd42c2

Browse files
authored
Merge pull request #4835 from StackStorm/update_pymongo
Update pymongo to the latest version
2 parents dd6a2e9 + 30f5c3d commit 9fd42c2

File tree

8 files changed

+10
-6
lines changed

8 files changed

+10
-6
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Changed
5151
set to 3 seconds. Previously a default value of 30 seconds was used which means that for many
5252
connection related errors, our code would first wait for this timeout to be reached (30 seconds)
5353
before returning error to the end user. #4834
54+
* Upgrade ``pymongo`` to the latest stable version (``3.10.0.``). #4835 (improvement)
5455

5556
Fixed
5657
~~~~~

fixed-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ requests[security]==2.22.0
1818
apscheduler==3.6.3
1919
gitpython==2.1.11
2020
jsonschema==2.6.0
21-
pymongo==3.7.2
21+
pymongo==3.10.0
2222
mongoengine==0.18.2
2323
passlib==1.7.1
2424
lockfile==0.12.2

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ prettytable
4040
prompt-toolkit==1.0.15
4141
psutil==5.6.3
4242
pyinotify==0.9.6
43-
pymongo==3.7.2
43+
pymongo==3.10.0
4444
pyrabbit
4545
python-dateutil==2.8.0
4646
python-editor==1.0.4

st2api/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ kombu==4.6.6
1313
mongoengine==0.18.2
1414
oslo.config<1.13,>=1.12.1
1515
oslo.utils<=3.37.0,>=3.36.2
16-
pymongo==3.7.2
16+
pymongo==3.10.0
1717
six==1.13.0

st2auth/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ git+https://github.com/StackStorm/st2-auth-backend-flat-file.git@master#egg=st2-
1111
gunicorn==19.9.0
1212
oslo.config<1.13,>=1.12.1
1313
passlib==1.7.1
14-
pymongo==3.7.2
14+
pymongo==3.10.0
1515
six==1.13.0
1616
stevedore==1.30.1

st2common/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ mongoengine==0.18.2
2323
networkx==1.11
2424
oslo.config<1.13,>=1.12.1
2525
paramiko==2.6.0
26-
pymongo==3.7.2
26+
pymongo==3.10.0
2727
python-dateutil==2.8.0
2828
python-statsd==2.1.0
2929
pyyaml==5.1.2

st2common/st2common/models/db/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,9 @@ def db_cleanup(db_name, db_host, db_port, username=None, password=None,
306306

307307
def _get_ssl_kwargs(ssl=False, ssl_keyfile=None, ssl_certfile=None, ssl_cert_reqs=None,
308308
ssl_ca_certs=None, authentication_mechanism=None, ssl_match_hostname=True):
309+
# NOTE: In pymongo 3.9.0 some of the ssl related arguments have been renamed -
310+
# https://api.mongodb.com/python/current/changelog.html#changes-in-version-3-9-0
311+
# Old names still work, but we should eventually update to new argument names.
309312
ssl_kwargs = {
310313
'ssl': ssl,
311314
}

st2stream/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ kombu==4.6.6
1212
mongoengine==0.18.2
1313
oslo.config<1.13,>=1.12.1
1414
oslo.utils<=3.37.0,>=3.36.2
15-
pymongo==3.7.2
15+
pymongo==3.10.0
1616
six==1.13.0

0 commit comments

Comments
 (0)