pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/databases/py-mongo py-mongo: updated to 3.7.1
details: https://anonhg.NetBSD.org/pkgsrc/rev/206067b061f6
branches: trunk
changeset: 313679:206067b061f6
user: adam <adam%pkgsrc.org@localhost>
date: Sun Oct 07 07:33:42 2018 +0000
description:
py-mongo: updated to 3.7.1
Changes in Version 3.7.1
Version 3.7.1 fixes a few issues discovered since the release of 3.7.0.
Calling :meth:~pymongo.database.Database.authenticate more than once with the same credentials results in OperationFailure.
Authentication fails when SCRAM-SHA-1 is used to authenticate users with only MONGODB-CR credentials.
A millisecond rounding problem when decoding datetimes in the pure Python BSON decoder on 32 bit systems and AWS lambda.
Issues Resolved
Changes in Version 3.7.0
Version 3.7 adds support for MongoDB 4.0. Highlights include:
Support for single replica set multi-document ACID transactions. See :ref:transactions-ref.
Support for wire protocol compression. See the :meth:~pymongo.mongo_client.MongoClient documentation for details.
Support for Python 3.7.
New count methods, :meth:~pymongo.collection.Collection.count_documents and :meth:~pymongo.collection.Collection.estimated_document_count. :meth:~pymongo.collection.Collection.count_documents is
always accurate when used with MongoDB 3.6+, or when used with older standalone or replica set deployments. With older sharded clusters is it always accurate when used with Primary read preference.
It can also be used in a transaction, unlike the now deprecated :meth:pymongo.collection.Collection.count and :meth:pymongo.cursor.Cursor.count methods.
Support for watching changes on all collections in a database using the new :meth:pymongo.database.Database.watch method.
Support for watching changes on all collections in all databases using the new :meth:pymongo.mongo_client.MongoClient.watch method.
Support for watching changes starting at a user provided timestamp using the new start_at_operation_time parameter for the watch() helpers.
Better support for using PyMongo in a FIPS 140-2 environment. Specifically, the following features and changes allow PyMongo to function when MD5 support is disabled in OpenSSL by the FIPS Object
Module:
Support for the :ref:SCRAM-SHA-256 <scram_sha_256> authentication mechanism. The :ref:GSSAPI <gssapi>, :ref:PLAIN <sasl_plain>, and :ref:MONGODB-X509 <mongodb_x509> mechanisms can also be used to
avoid issues with OpenSSL in FIPS environments.
MD5 checksums are now optional in GridFS. See the disable_md5 option of :class:~gridfs.GridFS and :class:~gridfs.GridFSBucket.
:class:~bson.objectid.ObjectId machine bytes are now hashed using FNV-1a instead of MD5.
The :meth:~pymongo.database.Database.list_collection_names and :meth:~pymongo.database.Database.collection_names methods use the nameOnly option when supported by MongoDB.
The :meth:pymongo.collection.Collection.watch method now returns an instance of the :class:~pymongo.change_stream.CollectionChangeStream class which is a subclass of
:class:~pymongo.change_stream.ChangeStream.
SCRAM client and server keys are cached for improved performance, following RFC 5802.
If not specified, the authSource for the :ref:PLAIN <sasl_plain> authentication mechanism defaults to $external.
wtimeoutMS is once again supported as a URI option.
When using unacknowledged write concern and connected to MongoDB server version 3.6 or greater, the bypass_document_validation option is now supported in the following write helpers:
:meth:~pymongo.collection.Collection.insert_one, :meth:~pymongo.collection.Collection.replace_one, :meth:~pymongo.collection.Collection.update_one, :meth:~pymongo.collection.Collection.update_many.
Deprecations:
Deprecated :meth:pymongo.collection.Collection.count and :meth:pymongo.cursor.Cursor.count. These two methods use the count command and may or may not be accurate, depending on the options used and
connected MongoDB topology. Use :meth:~pymongo.collection.Collection.count_documents instead.
Deprecated the snapshot option of :meth:~pymongo.collection.Collection.find and :meth:~pymongo.collection.Collection.find_one. The option was deprecated in MongoDB 3.6 and removed in MongoDB 4.0.
Deprecated the max_scan option of :meth:~pymongo.collection.Collection.find and :meth:~pymongo.collection.Collection.find_one. The option was deprecated in MongoDB 4.0. Use maxTimeMS instead.
Deprecated :meth:~pymongo.mongo_client.MongoClient.close_cursor. Use :meth:~pymongo.cursor.Cursor.close instead.
Deprecated :meth:~pymongo.mongo_client.MongoClient.database_names. Use :meth:~pymongo.mongo_client.MongoClient.list_database_names instead.
Deprecated :meth:~pymongo.database.Database.collection_names. Use :meth:~pymongo.database.Database.list_collection_names instead.
Deprecated :meth:~pymongo.collection.Collection.parallel_scan. MongoDB 4.2 will remove the parallelCollectionScan command.
Unavoidable breaking changes:
Commands that fail with server error codes 10107, 13435, 13436, 11600, 11602, 189, 91 (NotMaster, NotMasterNoSlaveOk, NotMasterOrSecondary, InterruptedAtShutdown, InterruptedDueToReplStateChange,
PrimarySteppedDown, ShutdownInProgress respectively) now always raise :class:~pymongo.errors.NotMasterError instead of :class:~pymongo.errors.OperationFailure.
:meth:~pymongo.collection.Collection.parallel_scan no longer uses an implicit session. Explicit sessions are still supported.
Unacknowledged writes (w=0) with an explicit session parameter now raise a client side error. Since PyMongo does not wait for a response for an unacknowledged write, two unacknowledged writes run
serially by the client may be executed simultaneously on the server. However, the server requires a single session must not be used simultaneously by more than one operation. Therefore explicit
sessions cannot support unacknowledged writes. Unacknowledged writes without a session parameter are still supported.
diffstat:
databases/py-mongo/Makefile | 4 ++--
databases/py-mongo/PLIST | 17 ++++++++++++++++-
databases/py-mongo/distinfo | 10 +++++-----
3 files changed, 23 insertions(+), 8 deletions(-)
diffs (82 lines):
diff -r 74c3bf992cb4 -r 206067b061f6 databases/py-mongo/Makefile
--- a/databases/py-mongo/Makefile Sun Oct 07 07:28:01 2018 +0000
+++ b/databases/py-mongo/Makefile Sun Oct 07 07:33:42 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.4 2017/09/12 16:32:22 adam Exp $
+# $NetBSD: Makefile,v 1.5 2018/10/07 07:33:42 adam Exp $
-DISTNAME= pymongo-3.5.1
+DISTNAME= pymongo-3.7.1
PKGNAME= ${DISTNAME:S/py/${PYPKGPREFIX}-/1}
CATEGORIES= databases python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pymongo/}
diff -r 74c3bf992cb4 -r 206067b061f6 databases/py-mongo/PLIST
--- a/databases/py-mongo/PLIST Sun Oct 07 07:28:01 2018 +0000
+++ b/databases/py-mongo/PLIST Sun Oct 07 07:33:42 2018 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2017/09/12 16:32:22 adam Exp $
+@comment $NetBSD: PLIST,v 1.3 2018/10/07 07:33:42 adam Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -78,9 +78,15 @@
${PYSITELIB}/pymongo/bulk.py
${PYSITELIB}/pymongo/bulk.pyc
${PYSITELIB}/pymongo/bulk.pyo
+${PYSITELIB}/pymongo/change_stream.py
+${PYSITELIB}/pymongo/change_stream.pyc
+${PYSITELIB}/pymongo/change_stream.pyo
${PYSITELIB}/pymongo/client_options.py
${PYSITELIB}/pymongo/client_options.pyc
${PYSITELIB}/pymongo/client_options.pyo
+${PYSITELIB}/pymongo/client_session.py
+${PYSITELIB}/pymongo/client_session.pyc
+${PYSITELIB}/pymongo/client_session.pyo
${PYSITELIB}/pymongo/collation.py
${PYSITELIB}/pymongo/collation.pyc
${PYSITELIB}/pymongo/collation.pyo
@@ -93,6 +99,9 @@
${PYSITELIB}/pymongo/common.py
${PYSITELIB}/pymongo/common.pyc
${PYSITELIB}/pymongo/common.pyo
+${PYSITELIB}/pymongo/compression_support.py
+${PYSITELIB}/pymongo/compression_support.pyc
+${PYSITELIB}/pymongo/compression_support.pyo
${PYSITELIB}/pymongo/cursor.py
${PYSITELIB}/pymongo/cursor.pyc
${PYSITELIB}/pymongo/cursor.pyo
@@ -102,6 +111,9 @@
${PYSITELIB}/pymongo/database.py
${PYSITELIB}/pymongo/database.pyc
${PYSITELIB}/pymongo/database.pyo
+${PYSITELIB}/pymongo/driver_info.py
+${PYSITELIB}/pymongo/driver_info.pyc
+${PYSITELIB}/pymongo/driver_info.pyo
${PYSITELIB}/pymongo/errors.py
${PYSITELIB}/pymongo/errors.pyc
${PYSITELIB}/pymongo/errors.pyo
@@ -156,6 +168,9 @@
${PYSITELIB}/pymongo/results.py
${PYSITELIB}/pymongo/results.pyc
${PYSITELIB}/pymongo/results.pyo
+${PYSITELIB}/pymongo/saslprep.py
+${PYSITELIB}/pymongo/saslprep.pyc
+${PYSITELIB}/pymongo/saslprep.pyo
${PYSITELIB}/pymongo/server.py
${PYSITELIB}/pymongo/server.pyc
${PYSITELIB}/pymongo/server.pyo
diff -r 74c3bf992cb4 -r 206067b061f6 databases/py-mongo/distinfo
--- a/databases/py-mongo/distinfo Sun Oct 07 07:28:01 2018 +0000
+++ b/databases/py-mongo/distinfo Sun Oct 07 07:33:42 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.3 2017/09/12 16:32:22 adam Exp $
+$NetBSD: distinfo,v 1.4 2018/10/07 07:33:42 adam Exp $
-SHA1 (pymongo-3.5.1.tar.gz) = b3c72f65d8acb9799cba4b5f1a2492b1b4d98553
-RMD160 (pymongo-3.5.1.tar.gz) = 98918531be0e3944685cb4e3eae27ccaf1e07876
-SHA512 (pymongo-3.5.1.tar.gz) = 67526bcc27233b85226d7ef6aacce6dfb848efc88730fb8207c3b610f3943ac813f6c2842b7e514d733a65a2b7ea4f255574732e42372551b1b333e3437fd82f
-Size (pymongo-3.5.1.tar.gz) = 1332463 bytes
+SHA1 (pymongo-3.7.1.tar.gz) = 43a318a9d79e0bcafb2ab08853f789435d05d37c
+RMD160 (pymongo-3.7.1.tar.gz) = 889344b510fbce2092b0860433cb7fd2ab924d02
+SHA512 (pymongo-3.7.1.tar.gz) = 34f7448c90a0741d1c80e5924d53e70d5c4bf74d140ea50cef1a519e11b7429dc8551ddb868ec4c02351da6619924ae0d4f7bfc12ef4fa9635c81e2f69aea30f
+Size (pymongo-3.7.1.tar.gz) = 723014 bytes
Home |
Main Index |
Thread Index |
Old Index