Skip to content

Commit 21e34fb

Browse files
committed
Update pymongo and mongoengine to display deprecation warnings.
1 parent afedd35 commit 21e34fb

File tree

7 files changed

+15
-11
lines changed

7 files changed

+15
-11
lines changed

CHANGELOG.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Changed
1414
~~~~~~~
1515
* Bumped `jsonschema` 2.6.0 -> 3.2.0 now that python3.6 is not supported. #6118
1616

17+
* Upgrade `pymongo` and `mongoengine` for MongoDB v5/6/7 support. #6157
18+
1719
Added
1820
~~~~~
1921
* Continue introducing `pants <https://www.pantsbuild.org/docs>`_ to improve DX (Developer Experience)

fixed-requirements.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ lockfile==0.12.2
2727
# Fix MarkupSafe to < 2.1.0 as 2.1.0 removes soft_unicode
2828
# >=0.23 was from jinja2
2929
MarkupSafe<2.1.0,>=0.23
30-
mongoengine==0.23.0
30+
# mongoengine 0.24.0 has breaking changes to support pymongo 4.0
31+
mongoengine>=0.21.0,<0.24.0
3132
# required by orquesta (networkx<2.6 for py3.6, networkx<3 for py3.8)
3233
networkx<3
3334
# networkx requires decorator>=4.3,<5 which should resolve to version 4.4.2
@@ -43,7 +44,8 @@ paramiko==2.11.0
4344
passlib==1.7.4
4445
prompt-toolkit==1.0.15
4546
pyinotify==0.9.6 ; platform_system=="Linux"
46-
pymongo==3.11.3
47+
# pymongo 3.13 has backports of APIs from pymongo 4 to help w/ migration
48+
pymongo>=3.11.0,<3.13.0
4749
pyparsing<3
4850
zstandard==0.15.2
4951
# pyOpenSSL 23.1.0 supports cryptography up to 40.0.x

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ kombu==5.0.2
3131
lockfile==0.12.2
3232
logshipper@ git+https://github.com/StackStorm/logshipper.git@stackstorm_patched ; platform_system=="Linux"
3333
mock==4.0.3
34-
mongoengine==0.23.0
34+
mongoengine>=0.21.0,<0.24.0
3535
networkx<3
3636
nose
3737
nose-parallel==0.4.0
@@ -47,7 +47,7 @@ prompt-toolkit==1.0.15
4747
psutil==5.8.0
4848
pyOpenSSL==23.1.0
4949
pyinotify==0.9.6 ; platform_system=="Linux"
50-
pymongo==3.11.3
50+
pymongo>=3.11.0,<3.13.0
5151
pyparsing<3
5252
pyrabbit
5353
pysocks

st2api/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ eventlet==0.33.3
99
gunicorn==21.2.0
1010
jsonschema==3.2.0
1111
kombu==5.0.2
12-
mongoengine==0.23.0
12+
mongoengine>=0.21.0,<0.24.0
1313
oslo.config>=1.12.1,<1.13
1414
oslo.utils<5.0,>=4.0.0
15-
pymongo==3.11.3
15+
pymongo>=3.11.0,<3.13.0
1616
pyparsing<3
1717
simplejson
1818
six==1.13.0

st2auth/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ eventlet==0.33.3
1010
gunicorn==21.2.0
1111
oslo.config>=1.12.1,<1.13
1212
passlib==1.7.4
13-
pymongo==3.11.3
13+
pymongo>=3.11.0,<3.13.0
1414
six==1.13.0
1515
st2-auth-backend-flat-file@ git+https://github.com/StackStorm/st2-auth-backend-flat-file.git@master
1616
st2-auth-ldap@ git+https://github.com/StackStorm/st2-auth-ldap.git@master

st2common/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ jsonpath-rw==1.4.0
2424
jsonschema==3.2.0
2525
kombu==5.0.2
2626
lockfile==0.12.2
27-
mongoengine==0.23.0
27+
mongoengine>=0.21.0,<0.24.0
2828
networkx<3
2929
orjson==3.5.2
3030
orquesta@ git+https://github.com/StackStorm/[email protected]
3131
oslo.config>=1.12.1,<1.13
3232
paramiko==2.11.0
3333
pyOpenSSL==23.1.0
34-
pymongo==3.11.3
34+
pymongo>=3.11.0,<3.13.0
3535
python-dateutil==2.8.1
3636
python-statsd==2.1.0
3737
pyyaml==5.4.1

st2stream/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ eventlet==0.33.3
99
gunicorn==21.2.0
1010
jsonschema==3.2.0
1111
kombu==5.0.2
12-
mongoengine==0.23.0
12+
mongoengine>=0.21.0,<0.24.0
1313
oslo.config>=1.12.1,<1.13
1414
oslo.utils<5.0,>=4.0.0
15-
pymongo==3.11.3
15+
pymongo>=3.11.0,<3.13.0
1616
pyparsing<3
1717
six==1.13.0

0 commit comments

Comments
 (0)