pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/databases/py-mongo



Module Name:    pkgsrc
Committed By:   adam
Date:           Wed Nov 22 13:04:32 UTC 2023

Modified Files:
        pkgsrc/databases/py-mongo: Makefile PLIST distinfo

Log Message:
py-mongo: updated to 4.6.0

Changes in Version 4.6
----------------------

PyMongo 4.6 brings a number of improvements including:

- Added the ``serverMonitoringMode`` URI and keyword argument to :class:`~pymongo.mongo_client.MongoClient`.
- Improved client performance and reduced connection requirements in Function-as-a-service (FaaS)
  environments like AWS Lambda, Google Cloud Functions, and Microsoft Azure Functions.
- Added the :attr:`pymongo.monitoring.CommandSucceededEvent.database_name` property.
- Added the :attr:`pymongo.monitoring.CommandFailedEvent.database_name` property.
- Allow passing a ``dict`` to sort/create_index/hint.
- Added :func:`repr` support to the write result classes:
  :class:`~pymongo.results.BulkWriteResult`,
  :class:`~pymongo.results.DeleteResult`,
  :class:`~pymongo.results.InsertManyResult`,
  :class:`~pymongo.results.InsertOneResult`,
  :class:`~pymongo.results.UpdateResult`, and
  :class:`~pymongo.encryption.RewrapManyDataKeyResult`. For example:

    >>> client.t.t.insert_one({})
    InsertOneResult(ObjectId('65319acdd55bb3a27ab5502b'), acknowledged=True)
    >>> client.t.t.insert_many([{} for _ in range(3)])
    InsertManyResult([ObjectId('6532f85e826f2b6125d6ce39'), ObjectId('6532f85e826f2b6125d6ce3a'), ObjectId('6532f85e826f2b6125d6ce3b')], acknowledged=True)

- :meth:`~pymongo.uri_parser.parse_uri` now considers the delimiting slash (``/``)
  between hosts and connection options optional. For example,
  "mongodb://example.com?tls=true" is now a valid URI.
- Fixed a bug where PyMongo would incorrectly promote all cursors to exhaust cursors
  when connected to load balanced MongoDB clusters or Serverless clusters.
- Added the :ref:`network-compression-example` documentation page.
- Added more timeout information to network errors.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 pkgsrc/databases/py-mongo/Makefile \
    pkgsrc/databases/py-mongo/distinfo
cvs rdiff -u -r1.8 -r1.9 pkgsrc/databases/py-mongo/PLIST

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/databases/py-mongo/Makefile
diff -u pkgsrc/databases/py-mongo/Makefile:1.15 pkgsrc/databases/py-mongo/Makefile:1.16
--- pkgsrc/databases/py-mongo/Makefile:1.15     Sun Aug 27 03:42:27 2023
+++ pkgsrc/databases/py-mongo/Makefile  Wed Nov 22 13:04:32 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.15 2023/08/27 03:42:27 adam Exp $
+# $NetBSD: Makefile,v 1.16 2023/11/22 13:04:32 adam Exp $
 
-DISTNAME=      pymongo-4.5.0
+DISTNAME=      pymongo-4.6.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/^py//}
 CATEGORIES=    databases python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pymongo/}
@@ -10,9 +10,11 @@ HOMEPAGE=    https://github.com/mongodb/mon
 COMMENT=       Python driver for MongoDB
 LICENSE=       apache-2.0
 
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=63.0:../../devel/py-setuptools
+TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
 DEPENDS+=      ${PYPKGPREFIX}-dns>=1.16.0:../../net/py-dns
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"
Index: pkgsrc/databases/py-mongo/distinfo
diff -u pkgsrc/databases/py-mongo/distinfo:1.15 pkgsrc/databases/py-mongo/distinfo:1.16
--- pkgsrc/databases/py-mongo/distinfo:1.15     Sun Aug 27 03:42:27 2023
+++ pkgsrc/databases/py-mongo/distinfo  Wed Nov 22 13:04:32 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.15 2023/08/27 03:42:27 adam Exp $
+$NetBSD: distinfo,v 1.16 2023/11/22 13:04:32 adam Exp $
 
-BLAKE2s (pymongo-4.5.0.tar.gz) = 86be217d797dfa9eaf194c9ac45d7d1808c3e402df6fd8581bed048501f7dc48
-SHA512 (pymongo-4.5.0.tar.gz) = 14b980dd5cc02f90c4aa67b6088e265a7ecde16c5a1b59ae59d3c337994db4066c2c9f1c74cd204ad14479f02d83e930100547568d0fa2bccdea2aeae9ff72b7
-Size (pymongo-4.5.0.tar.gz) = 848707 bytes
+BLAKE2s (pymongo-4.6.0.tar.gz) = 7323ea7cedb5bea815df22b8833bebc9a3b289f9334dd1cec7176b4a15c1a921
+SHA512 (pymongo-4.6.0.tar.gz) = c295affc8af8a678056a8b6995a046625be2b3b4bbe49896b3a3c3ea8a2dbc170a51ed9971ee2a23efea0c9d75912de572e42e868676e8f96a230fa0e54c597a
+Size (pymongo-4.6.0.tar.gz) = 1430820 bytes

Index: pkgsrc/databases/py-mongo/PLIST
diff -u pkgsrc/databases/py-mongo/PLIST:1.8 pkgsrc/databases/py-mongo/PLIST:1.9
--- pkgsrc/databases/py-mongo/PLIST:1.8 Sun Aug 27 03:42:27 2023
+++ pkgsrc/databases/py-mongo/PLIST     Wed Nov 22 13:04:32 2023
@@ -1,9 +1,9 @@
-@comment $NetBSD: PLIST,v 1.8 2023/08/27 03:42:27 adam Exp $
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+@comment $NetBSD: PLIST,v 1.9 2023/11/22 13:04:32 adam Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
 ${PYSITELIB}/bson/__init__.py
 ${PYSITELIB}/bson/__init__.pyc
 ${PYSITELIB}/bson/__init__.pyo



Home | Main Index | Thread Index | Old Index