From 384cb5fc1c0187288c2c7c4df23bd6aad6bbd9e83b376f37efc15cc2c52cfe6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 18 Jul 2022 11:39:16 +0000 Subject: [PATCH 1/2] Accepting request 989816 from home:mcalabkova:branches:devel:languages:python MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update to 4.1.1 * PyMongo 4.0 drops support for Python 2.7, 3.4, and 3.5. * PyMongo 4.1 drops support for Python 3.6.0 and 3.6.1, Python 3.6.2+ is now required. * PyMongo 4.0 drops support for MongoDB 2.6, 3.0, 3.2, and 3.4. * The default uuid_representation for CodecOptions, JSONOptions, and MongoClient has been changed from bson.binary.UuidRepresentation.PYTHON_LEGACY to bson.binary.UuidRepresentation.UNSPECIFIED. Attempting to encode a uuid.UUID instance to BSON or JSON now produces an error by default. See Handling UUID Data for details. * Removed some arguments and functions mostly from: * pymongo.mongo_client.MongoClient * pymongo.database.Database * pymongo.collection.Collection * pymongo.mongo_client.MongoClient * pymongo.son_manipulator * directConnection URI option and keyword argument to MongoClient defaults to False instead of None * tz_aware, an argument for JSONOptions, now defaults to False instead of True. * items() now returns a dict_items object rather than a list. * The hint option is now required when using min or max queries with find(). * MongoClient` now raises an InvalidURI exception when it encounters unescaped percent signs in username and password when parsing MongoDB URIs. * Enhanced connection pooling to create connections more efficiently and avoid connection storms. * MongoClient now accepts a URI and keyword argument srvMaxHosts that limits the number of mongos-like hosts a client will connect to. * Support for the “kmip” KMS provider for client side field level encryption. * Many more changes, seet the upstream changelog for details OBS-URL: https://build.opensuse.org/request/show/989816 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymongo?expand=0&rev=82 --- pymongo-3.11.4.tar.gz | 3 --- pymongo-4.1.1.tar.gz | 3 +++ python-pymongo.changes | 32 ++++++++++++++++++++++++++++++++ python-pymongo.spec | 7 ++++--- 4 files changed, 39 insertions(+), 6 deletions(-) delete mode 100644 pymongo-3.11.4.tar.gz create mode 100644 pymongo-4.1.1.tar.gz diff --git a/pymongo-3.11.4.tar.gz b/pymongo-3.11.4.tar.gz deleted file mode 100644 index 3b964ff..0000000 --- a/pymongo-3.11.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:539d4cb1b16b57026999c53e5aab857fe706e70ae5310cc8c232479923f932e6 -size 783122 diff --git a/pymongo-4.1.1.tar.gz b/pymongo-4.1.1.tar.gz new file mode 100644 index 0000000..68765d7 --- /dev/null +++ b/pymongo-4.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d7b8f25c9b0043cbaf77b8b895814e33e7a3c807a097377c07e1bd49946030d5 +size 776341 diff --git a/python-pymongo.changes b/python-pymongo.changes index 04c584a..7ae4ddc 100644 --- a/python-pymongo.changes +++ b/python-pymongo.changes @@ -1,3 +1,35 @@ +------------------------------------------------------------------- +Sat Jul 16 18:05:53 UTC 2022 - Markéta Machová + +- Update to 4.1.1 + * PyMongo 4.0 drops support for Python 2.7, 3.4, and 3.5. + * PyMongo 4.1 drops support for Python 3.6.0 and 3.6.1, Python 3.6.2+ is now required. + * PyMongo 4.0 drops support for MongoDB 2.6, 3.0, 3.2, and 3.4. + * The default uuid_representation for CodecOptions, JSONOptions, + and MongoClient has been changed from bson.binary.UuidRepresentation.PYTHON_LEGACY + to bson.binary.UuidRepresentation.UNSPECIFIED. Attempting to + encode a uuid.UUID instance to BSON or JSON now produces an + error by default. See Handling UUID Data for details. + * Removed some arguments and functions mostly from: + * pymongo.mongo_client.MongoClient + * pymongo.database.Database + * pymongo.collection.Collection + * pymongo.mongo_client.MongoClient + * pymongo.son_manipulator + * directConnection URI option and keyword argument to MongoClient + defaults to False instead of None + * tz_aware, an argument for JSONOptions, now defaults to False instead of True. + * items() now returns a dict_items object rather than a list. + * The hint option is now required when using min or max queries with find(). + * MongoClient` now raises an InvalidURI exception when it encounters + unescaped percent signs in username and password when parsing MongoDB URIs. + * Enhanced connection pooling to create connections more efficiently + and avoid connection storms. + * MongoClient now accepts a URI and keyword argument srvMaxHosts + that limits the number of mongos-like hosts a client will connect to. + * Support for the “kmip” KMS provider for client side field level encryption. + * Many more changes, seet the upstream changelog for details + ------------------------------------------------------------------- Fri May 28 07:38:51 UTC 2021 - pgajdos@suse.com diff --git a/python-pymongo.spec b/python-pymongo.spec index 363cdfa..6fc4a67 100644 --- a/python-pymongo.spec +++ b/python-pymongo.spec @@ -1,7 +1,7 @@ # # spec file for package python-pymongo # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,9 +16,10 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?!python_module:%define python_module() python3-%{**}} +%define skip_python2 1 Name: python-pymongo -Version: 3.11.4 +Version: 4.1.1 Release: 0 Summary: Python driver for MongoDB License: Apache-2.0 From 98a69815272a3896997010ce8e7205804cba62cc05dcdfad6fbb2025398a4599 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 20 Jul 2022 16:56:09 +0000 Subject: [PATCH 2/2] Accepting request 990390 from home:bnavigator:branches:devel:languages:python - Conflict on python-bson * Same namespace * Different implementation (https://github.com/py-bson/bson) - Do not wildcard collect files OBS-URL: https://build.opensuse.org/request/show/990390 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymongo?expand=0&rev=83 --- python-pymongo.changes | 8 ++++++++ python-pymongo.spec | 7 ++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/python-pymongo.changes b/python-pymongo.changes index 7ae4ddc..d0c84de 100644 --- a/python-pymongo.changes +++ b/python-pymongo.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Jul 20 10:58:54 UTC 2022 - Ben Greiner + +- Conflict on python-bson + * Same namespace + * Different implementation (https://github.com/py-bson/bson) +- Do not wildcard collect files + ------------------------------------------------------------------- Sat Jul 16 18:05:53 UTC 2022 - Markéta Machová diff --git a/python-pymongo.spec b/python-pymongo.spec index 6fc4a67..9ec874f 100644 --- a/python-pymongo.spec +++ b/python-pymongo.spec @@ -35,6 +35,8 @@ BuildRequires: python-rpm-macros %if 0%{?suse_version} || 0%{?fedora_version} >= 24 Suggests: mongodb %endif +# Same namespace, different implementation (https://github.com/py-bson/bson) +Conflicts: python-bson %python_subpackages %description @@ -62,6 +64,9 @@ export CFLAGS="%{optflags}" %files %{python_files} %license LICENSE %doc README.rst -%{python_sitearch}/* +%{python_sitearch}/pymongo +%{python_sitearch}/pymongo-%{version}*-info +%{python_sitearch}/bson +%{python_sitearch}/gridfs %changelog