Skip to content

Python: Update pymongo requirement from <4.12,>=4.8.0 to >=4.8.0,<4.13 in /python #11553

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 14, 2025

Updates the requirements on pymongo to permit the latest version.

Release notes

Sourced from pymongo's releases.

PyMongo 4.12.0

Community notes: https://www.mongodb.com/community/forums/t/pymongo-4-12-released/318187

Changelog

Sourced from pymongo's changelog.

Changes in Version 4.12.0 (2025/04/08)

.. warning:: Driver support for MongoDB 4.0 reached end of life in April 2025. PyMongo 4.12 will be the last release to support MongoDB 4.0.

PyMongo 4.12 brings a number of changes including:

  • Support for configuring DEK cache lifetime via the key_expiration_ms argument to :class:~pymongo.encryption_options.AutoEncryptionOpts.
  • Support for $lookup in CSFLE and QE supported on MongoDB 8.1+.
  • pymongocrypt>=1.13 is now required for :ref:In-Use Encryption support.
  • Added :meth:gridfs.asynchronous.grid_file.AsyncGridFSBucket.rename_by_name and :meth:gridfs.grid_file.GridFSBucket.rename_by_name for more performant renaming of a file with multiple revisions.
  • Added :meth:gridfs.asynchronous.grid_file.AsyncGridFSBucket.delete_by_name and :meth:gridfs.grid_file.GridFSBucket.delete_by_name for more performant deletion of a file with multiple revisions.
  • AsyncMongoClient no longer performs DNS resolution for "mongodb+srv://" connection strings on creation. To avoid blocking the asyncio loop, the resolution is now deferred until the client is first connected.
  • Added index hinting support to the :meth:~pymongo.asynchronous.collection.AsyncCollection.distinct and :meth:~pymongo.collection.Collection.distinct commands.
  • Deprecated the hedge parameter for :class:~pymongo.read_preferences.PrimaryPreferred, :class:~pymongo.read_preferences.Secondary, :class:~pymongo.read_preferences.SecondaryPreferred, :class:~pymongo.read_preferences.Nearest. Support for hedge will be removed in PyMongo 5.0.
  • Removed PyOpenSSL support from the asynchronous API due to limitations of the CPython asyncio.Protocol SSL implementation.
  • Allow valid SRV hostnames with less than 3 parts.

Issues Resolved ...............

See the PyMongo 4.12 release notes in JIRA_ for the list of resolved issues in this release.

.. _PyMongo 4.12 release notes in JIRA: https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=10004&version=41916

Changes in Version 4.11.2 (2025/03/05)

Version 4.11.2 is a bug fix release.

  • Fixed a bug where :meth:~pymongo.database.Database.command would fail when attempting to run the bulkWrite command.

Issues Resolved ...............

See the PyMongo 4.11.2 release notes in JIRA_ for the list of resolved issues in this release.

.. _PyMongo 4.11.2 release notes in JIRA: https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=10004&version=42506

... (truncated)

Commits
  • 98b656f BUMP 4.12.0
  • 92970d3 PYTHON-5248 Update changelog for 4.12 release (#2265)
  • 4d4a26c PYTHON-5270 Server selection should log remainingTimeMS as milliseconds (#2263)
  • 7a4218f PYTHON-5263 Convert s3-related functions to generated config (#2259)
  • 79e5d60 PYTHON-5268 Fix handling of PYTHON_BINARY (#2264)
  • bf0aa56 PYTHON-5252 Add dependency on pymongocrypt 1.13 (#2258)
  • 708ce16 PYTHON-4724 - Prohibit AsyncMongoClient from being used across multiple event...
  • 1c813dc PYTHON-4575 Allow valid SRV hostnames with less than 3 parts (#2234)
  • e7c0814 PYTHON-4557 - Fix write log messages for retried commands (#2260)
  • b402239 PYTHON-5219 - Avoid awaiting coroutines when holding locks (#2250)
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [pymongo](https://github.com/mongodb/mongo-python-driver) to permit the latest version.
- [Release notes](https://github.com/mongodb/mongo-python-driver/releases)
- [Changelog](https://github.com/mongodb/mongo-python-driver/blob/master/doc/changelog.rst)
- [Commits](mongodb/mongo-python-driver@4.8.0...4.12.0)

---
updated-dependencies:
- dependency-name: pymongo
  dependency-version: 4.12.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file. Used by Dependabot. python Pull requests for the Python Semantic Kernel labels Apr 14, 2025
@dependabot dependabot bot requested a review from a team as a code owner April 14, 2025 22:28
@github-actions github-actions bot changed the title Update pymongo requirement from <4.12,>=4.8.0 to >=4.8.0,<4.13 in /python Python: Update pymongo requirement from <4.12,>=4.8.0 to >=4.8.0,<4.13 in /python Apr 14, 2025
@TaoChenOSU TaoChenOSU added this pull request to the merge queue Apr 17, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 17, 2025
@eavanvalkenburg eavanvalkenburg added this pull request to the merge queue Apr 22, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 22, 2025
@eavanvalkenburg eavanvalkenburg added this pull request to the merge queue Apr 22, 2025
Merged via the queue into main with commit b8b016b Apr 22, 2025
31 checks passed
@eavanvalkenburg eavanvalkenburg deleted the dependabot/pip/python/pymongo-gte-4.8.0-and-lt-4.13 branch April 22, 2025 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file. Used by Dependabot. python Pull requests for the Python Semantic Kernel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants