From 9bd74f166d8a5d5ac9b4c520d7aa67d37d36aa48661bf31fdd011a4e5377de31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 23 Feb 2018 09:04:44 +0000 Subject: [PATCH] Accepting request 579242 from home:winski:mongodb Update to version 3.6.0, required by newer versions of MongoDB (previous pymongo version that's currently in repo is not compatible with newer MongoDB releases) OBS-URL: https://build.opensuse.org/request/show/579242 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymongo?expand=0&rev=51 --- pymongo-3.5.1.tar.gz | 3 --- pymongo-3.6.0.tar.gz | 3 +++ python-pymongo.changes | 56 ++++++++++++++++++++++++++++++++++++++++++ python-pymongo.spec | 4 +-- 4 files changed, 61 insertions(+), 5 deletions(-) delete mode 100644 pymongo-3.5.1.tar.gz create mode 100644 pymongo-3.6.0.tar.gz diff --git a/pymongo-3.5.1.tar.gz b/pymongo-3.5.1.tar.gz deleted file mode 100644 index d9014b5..0000000 --- a/pymongo-3.5.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e820d93414f3bec1fa456c84afbd4af1b43ff41366321619db74e6bc065d6924 -size 1332463 diff --git a/pymongo-3.6.0.tar.gz b/pymongo-3.6.0.tar.gz new file mode 100644 index 0000000..ae76468 --- /dev/null +++ b/pymongo-3.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c6de26d1e171cdc449745b82f1addbc873d105b8e7335097da991c0fc664a4a8 +size 581292 diff --git a/python-pymongo.changes b/python-pymongo.changes index 729be10..3bf5e8e 100644 --- a/python-pymongo.changes +++ b/python-pymongo.changes @@ -1,3 +1,59 @@ +------------------------------------------------------------------- +Fri Feb 23 04:43:48 UTC 2018 - jacobwinski@gmail.com + +- Update to version 3.6.0: + + Adds support for MongoDB 3.6, drops support for CPython 3.3. + + Drops support for MongoDB versions older than 2.6. + + Updates: + * Support for change streams. See the + :meth:`~pymongo.collection.Collection.watch` method for details. + * Support for array_filters in + :meth:`~pymongo.collection.Collection.update_one`, + :meth:`~pymongo.collection.Collection.update_many`, + :meth:`~pymongo.collection.Collection.find_one_and_update`, + :meth:`~pymongo.operations.UpdateOne`, and + :meth:`~pymongo.operations.UpdateMany`. + * New Session API, see :meth:`~pymongo.mongo_client.MongoClient.start_session`. + * New methods :meth:`~pymongo.collection.Collection.find_raw_batches` and + :meth:`~pymongo.collection.Collection.aggregate_raw_batches` for use with + external libraries that can parse raw batches of BSON data. + * New methods :meth:`~pymongo.mongo_client.MongoClient.list_databases` and + :meth:`~pymongo.mongo_client.MongoClient.list_database_names`. + * New methods :meth:`~pymongo.database.Database.list_collections` and + :meth:`~pymongo.database.Database.list_collection_names`. + * Support for mongodb+srv:// URIs. See + :class:`~pymongo.mongo_client.MongoClient` for details. + * Index management helpers + (:meth:`~pymongo.collection.Collection.create_index`, + :meth:`~pymongo.collection.Collection.create_indexes`, + :meth:`~pymongo.collection.Collection.drop_index`, + :meth:`~pymongo.collection.Collection.drop_indexes`, + :meth:`~pymongo.collection.Collection.reindex`) now support maxTimeMS. + * Support for retryable writes and the ``retryWrites`` URI option. See + :class:`~pymongo.mongo_client.MongoClient` for details. + + Deprecations: + * The `useCursor` option for :meth:`~pymongo.collection.Collection.aggregate` + is deprecated. The option was only necessary when upgrading from MongoDB + 2.4 to MongoDB 2.6. MongoDB 2.4 is no longer supported. + * The :meth:`~pymongo.database.Database.add_user` and + :meth:`~pymongo.database.Database.remove_user` methods are deprecated. See + the method docstrings for alternatives. + + Breaking changes: + * Starting in MongoDB 3.6, the deprecated methods + :meth:`~pymongo.database.Database.authenticate` and + :meth:`~pymongo.database.Database.logout` now invalidate all cursors created + prior. Instead of using these methods to change credentials, pass credentials + for one user to the :class:`~pymongo.mongo_client.MongoClient` at construction + time, and either grant access to several databases to one user account, or use + a distinct client object for each user. + * BSON binary subtype 4 is decoded using RFC-4122 byte order regardless + of the UUID representation. This is a change in behavior for applications + that use UUID representation :data:`bson.binary.JAVA_LEGACY` or + :data:`bson.binary.CSHARP_LEGACY` to decode BSON binary subtype 4. Other + UUID representations, :data:`bson.binary.PYTHON_LEGACY` (the default) and + :data:`bson.binary.STANDARD`, and the decoding of BSON binary subtype 3 + are unchanged. + ------------------------------------------------------------------- Sat Nov 25 17:07:57 UTC 2017 - axel.braun@gmx.de diff --git a/python-pymongo.spec b/python-pymongo.spec index 8d7d431..4933b17 100644 --- a/python-pymongo.spec +++ b/python-pymongo.spec @@ -1,7 +1,7 @@ # # spec file for package python-pymongo # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -21,7 +21,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pymongo -Version: 3.5.1 +Version: 3.6.0 Release: 0 Url: http://github.com/mongodb/mongo-python-driver Summary: Python driver for MongoDB