3 Commits

Author SHA256 Message Date
0b732ccdca Accepting request 1294457 from devel:languages:python
- update to 4.11.1:
  * Fixed support for prebuilt ppc64le and s390x wheels.
  * Dropped support for Python 3.8 and PyPy 3.9.
  * Dropped support for MongoDB 3.6.
  * Dropped support for the MONGODB-CR authenticate mechanism,
    which is no longer supported by MongoDB 4.0+.
  * pymongocrypt>=1.12 is now required for :ref:`In-Use
    Encryption` support.
  * Added support for free-threaded Python with the GIL disabled.
    For more information see: Free-threaded CPython. We do not
    yet support free-threaded Python on Windows (PYTHON-5027) or
    with In-Use Encryption (PYTHON-5024).
  * :attr:`~pymongo.asynchronous.mongo_client.AsyncMongoClient.ad
    dress` and :attr:`~pymongo.mongo_client.MongoClient.address`
    now correctly block when called on unconnected clients until
    either connection succeeds or a server selection timeout
    error is raised.
  * Added :func:`repr` support to
    :class:`pymongo.operations.IndexModel`.
  * Added :func:`repr` support to
    :class:`pymongo.operations.SearchIndexModel`.
  * Added sort parameter to
    :meth:`~pymongo.collection.Collection.update_one`,
    :meth:`~pymongo.collection.Collection.replace_one`,
    :class:`~pymongo.operations.UpdateOne`, and
    :class:`~pymongo.operations.UpdateMany`,
  * :meth:`~pymongo.mongo_client.MongoClient.bulk_write` and :met
    h:`~pymongo.asynchronous.mongo_client.AsyncMongoClient.bulk_w
    rite` now throw an error when ordered=True or
    verboseResults=True are used with unacknowledged writes.

OBS-URL: https://build.opensuse.org/request/show/1294457
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pymongo?expand=0&rev=46
2025-07-21 17:59:33 +00:00
f3265f70d6 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymongo?expand=0&rev=98 2025-07-18 21:21:44 +00:00
0937ac1832 - update to 4.11.1:
* Fixed support for prebuilt ppc64le and s390x wheels.
  * Dropped support for Python 3.8 and PyPy 3.9.
  * Dropped support for MongoDB 3.6.
  * Dropped support for the MONGODB-CR authenticate mechanism,
    which is no longer supported by MongoDB 4.0+.
  * pymongocrypt>=1.12 is now required for :ref:`In-Use
    Encryption` support.
  * Added support for free-threaded Python with the GIL disabled.
    For more information see: Free-threaded CPython. We do not
    yet support free-threaded Python on Windows (PYTHON-5027) or
    with In-Use Encryption (PYTHON-5024).
  * :attr:`~pymongo.asynchronous.mongo_client.AsyncMongoClient.ad
    dress` and :attr:`~pymongo.mongo_client.MongoClient.address`
    now correctly block when called on unconnected clients until
    either connection succeeds or a server selection timeout
    error is raised.
  * Added :func:`repr` support to
    :class:`pymongo.operations.IndexModel`.
  * Added :func:`repr` support to
    :class:`pymongo.operations.SearchIndexModel`.
  * Added sort parameter to
    :meth:`~pymongo.collection.Collection.update_one`,
    :meth:`~pymongo.collection.Collection.replace_one`,
    :class:`~pymongo.operations.UpdateOne`, and
    :class:`~pymongo.operations.UpdateMany`,
  * :meth:`~pymongo.mongo_client.MongoClient.bulk_write` and :met
    h:`~pymongo.asynchronous.mongo_client.AsyncMongoClient.bulk_w
    rite` now throw an error when ordered=True or
    verboseResults=True are used with unacknowledged writes.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymongo?expand=0&rev=97
2025-07-18 21:04:28 +00:00
4 changed files with 8 additions and 51 deletions

3
pymongo-4.11.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3757ce9257c3486eead45680a8895a0ed9ba27efaf1791fc0cf854367c21c638
size 2054021

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3a8d6bf2610abe0c97c567cf98bf5bba3e90ccc93cc03c9dde75fa11e4267b42
size 2471889

View File

@@ -1,46 +1,3 @@
-------------------------------------------------------------------
Sun Dec 28 21:13:50 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 4.15.5:
* Fixed a bug that could cause AutoReconnect("connection pool
paused") errors when cursors fetched more documents from the
database after SDAM heartbeat failures.
* Relaxed the callback type of :meth:`~pymongo.asynchronous.cli
ent_session.AsyncClientSession.with_transaction` to allow the
broader Awaitable type rather than only Coroutine objects.
* Added the missing Python 3.14 trove classifier to the package
metadata.
-------------------------------------------------------------------
Fri Nov 7 01:33:18 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 4.15.3:
* Queryable Encryption text queries beta
* Decimal128 encoding/decoding
* Preliminary support for Python 3.14, including free-threading
* New method: append_metadata
* Server selection performance improved when selecting a server
* Fixed a bug where AsyncMongoClient would block the event loop while
creating new connections, potentially significantly increasing latency
for ongoing operations.
* Fixed a bug that resulted in confusing error messages after hostname
verification errors when using PyOpenSSL.
* Fixed a bug that could raise ServerSelectionTimeoutError when using
timeouts with AsyncMongoClient.
* SRV hostname validation fails when resolver and resolved hostnames are
identical with three domain levels
* AsyncMongoClient connection error causes UnboundLocalError
* Update lockfile for compat with older versions of uv
* Support for configuring DEK cache lifetime.
* pymongocrypt>=1.13 is now required for In-Use Encryption support.
* AsyncMongoClient no longer performs DNS resolution for “mongodb+srv://”
connection strings on creation.
* 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.
* WaitQueueTimeoutError should not clear the pool
* Allow Database.command to run bulkWrite commands
-------------------------------------------------------------------
Fri Jul 18 21:03:59 UTC 2025 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pymongo
#
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,27 +18,28 @@
%{?sle15_python_module_pythons}
Name: python-pymongo
Version: 4.15.5
Version: 4.11.1
Release: 0
Summary: Python driver for MongoDB
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/mongodb/mongo-python-driver
Source: https://files.pythonhosted.org/packages/source/p/pymongo/pymongo-%{version}.tar.gz
# PATCH-FIX-SUSE: upstream does not care about 32bit
Patch0: mongodb-skip-test.patch
BuildRequires: %{python_module devel >= 3.10}
BuildRequires: %{python_module dnspython >= 2.6.1}
BuildRequires: %{python_module dnspython}
BuildRequires: %{python_module hatch-requirements-txt}
BuildRequires: %{python_module hatch_vcs}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest-asyncio >= 0.24.0}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if 0%{?suse_version} || 0%{?fedora_version} >= 24
Suggests: mongodb
%endif
Requires: python-dnspython >= 2.6.1
# Same namespace, different implementation (https://github.com/py-bson/bson)
Conflicts: python-bson
%python_subpackages
@@ -66,7 +67,6 @@ export CFLAGS="%{optflags}"
%check
# tests rely on working DNS which is not available during build
rm -v test/asynchronous/test_client.py
rm -v test/asynchronous/test_srv_polling.py
rm -v test/test_srv_polling.py
rm -v test/test_uri_spec.py
%pytest_arch -k 'not (test_connection_timeout_ms_propagates_to_DNS_resolver or test_detected_environment_logging or test_detected_environment_warning)'