Skip to content

Commit

Permalink
Bugfix/prevent pymongo 4.11 (apache#46216)
Browse files Browse the repository at this point in the history
* Prevent usage of pymongo 4.11 until provider not compatible

* Prevent usage of pymongo 4.11 until provider not compatible
  • Loading branch information
jscheffl authored and got686-yandex committed Jan 30, 2025
1 parent 92f3a7f commit 077c33e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion providers/mongo/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ requires-python = "~=3.9"
dependencies = [
"apache-airflow>=2.9.0",
"dnspython>=1.13.0",
"pymongo>=4.0.0",
# pymongo 4.11 had incompatible change leading to
# TypeError: BulkOperationBuilder.add_replace() got an unexpected keyword argument 'sort'
# See https://github.com/apache/airflow/issues/46215
"pymongo>=4.0.0,!=4.11",
]

# The dependency groups should be modified in place in the generated file
Expand Down

0 comments on commit 077c33e

Please sign in to comment.