14
0

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
This commit is contained in:
Tomáš Chvátal
2018-02-23 09:04:44 +00:00
committed by Git OBS Bridge
parent df5c713588
commit 9bd74f166d
4 changed files with 61 additions and 5 deletions

View File

@@ -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