summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2021-02-10 08:26:31 +0000
committeradam <adam@pkgsrc.org>2021-02-10 08:26:31 +0000
commit158b34b75489202d0ee8bb51dc5de61b7941b510 (patch)
treea105e2c218c352ede1579ab426b64380d30a53a5
parent2c3d578355d67cf09f597160f4e24fd02e53fef2 (diff)
downloadpkgsrc-158b34b75489202d0ee8bb51dc5de61b7941b510.tar.gz
py-asyncpg: updated to 0.22.0
v0.22.0 A new asyncpg release is here. Notable additions include Python 3.9 support, support for recently added PostgreSQL types like jsonpath, and last but not least, vastly improved executemany() performance. Importantly, executemany() is also now atomic, which means that either all iterations succeed, or none at all, whereas previously partial results would have remained in place, unless executemany() was called in a transaction. There is also the usual assortment of improvements and bugfixes, see the details below. This is the last release of asyncpg that supports Python 3.5, which has reached EOL last September. Improvements Vastly speedup executemany by batching protocol messages Allow using custom Record class Add Python 3.9 support Prefer SSL connections by default Add codecs for a bunch of new builtin types Expose Pool as asyncpg.Pool Avoid unnecessary overhead during connection reset
-rw-r--r--databases/py-asyncpg/Makefile9
-rw-r--r--databases/py-asyncpg/PLIST11
-rw-r--r--databases/py-asyncpg/distinfo10
3 files changed, 18 insertions, 12 deletions
diff --git a/databases/py-asyncpg/Makefile b/databases/py-asyncpg/Makefile
index d10d50b4b6e..5d3fd399b65 100644
--- a/databases/py-asyncpg/Makefile
+++ b/databases/py-asyncpg/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.15 2020/08/10 06:11:17 adam Exp $
+# $NetBSD: Makefile,v 1.16 2021/02/10 08:26:31 adam Exp $
-DISTNAME= asyncpg-0.21.0
+DISTNAME= asyncpg-0.22.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= databases python
MASTER_SITES= ${MASTER_SITE_PYPI:=a/asyncpg/}
@@ -14,6 +14,11 @@ TEST_DEPENDS+= ${PYPKGPREFIX}-codestyle>=2.5.0:../../devel/py-codestyle
TEST_DEPENDS+= ${PYPKGPREFIX}-flake8>=3.7.9:../../devel/py-flake8
TEST_DEPENDS+= ${PYPKGPREFIX}-uvloop>=0.14.0:../../devel/py-uvloop
+.include "../../lang/python/pyversion.mk"
+.if ${_PYTHON_VERSION} < 38
+DEPENDS+= ${PYPKGPREFIX}-typing-extensions>=3.7.4.3:../../devel/py-typing-extensions
+.endif
+
PYTHON_VERSIONS_INCOMPATIBLE= 27
# Testing requires postgresql-contrib
diff --git a/databases/py-asyncpg/PLIST b/databases/py-asyncpg/PLIST
index 3005e9900e7..f8b755259cd 100644
--- a/databases/py-asyncpg/PLIST
+++ b/databases/py-asyncpg/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.8 2019/11/22 09:32:37 adam Exp $
+@comment $NetBSD: PLIST,v 1.9 2021/02/10 08:26:31 adam Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -14,6 +14,9 @@ ${PYSITELIB}/asyncpg/_testbase/__init__.pyo
${PYSITELIB}/asyncpg/_testbase/fuzzer.py
${PYSITELIB}/asyncpg/_testbase/fuzzer.pyc
${PYSITELIB}/asyncpg/_testbase/fuzzer.pyo
+${PYSITELIB}/asyncpg/_version.py
+${PYSITELIB}/asyncpg/_version.pyc
+${PYSITELIB}/asyncpg/_version.pyo
${PYSITELIB}/asyncpg/cluster.py
${PYSITELIB}/asyncpg/cluster.pyc
${PYSITELIB}/asyncpg/cluster.pyo
@@ -57,20 +60,18 @@ ${PYSITELIB}/asyncpg/pgproto/codecs/geometry.pyx
${PYSITELIB}/asyncpg/pgproto/codecs/hstore.pyx
${PYSITELIB}/asyncpg/pgproto/codecs/int.pyx
${PYSITELIB}/asyncpg/pgproto/codecs/json.pyx
+${PYSITELIB}/asyncpg/pgproto/codecs/jsonpath.pyx
${PYSITELIB}/asyncpg/pgproto/codecs/misc.pyx
${PYSITELIB}/asyncpg/pgproto/codecs/network.pyx
${PYSITELIB}/asyncpg/pgproto/codecs/numeric.pyx
+${PYSITELIB}/asyncpg/pgproto/codecs/pg_snapshot.pyx
${PYSITELIB}/asyncpg/pgproto/codecs/text.pyx
${PYSITELIB}/asyncpg/pgproto/codecs/tid.pyx
-${PYSITELIB}/asyncpg/pgproto/codecs/txid.pyx
${PYSITELIB}/asyncpg/pgproto/codecs/uuid.pyx
${PYSITELIB}/asyncpg/pgproto/consts.pxi
${PYSITELIB}/asyncpg/pgproto/cpythonx.pxd
${PYSITELIB}/asyncpg/pgproto/debug.h
${PYSITELIB}/asyncpg/pgproto/debug.pxd
-${PYSITELIB}/asyncpg/pgproto/exceptions.py
-${PYSITELIB}/asyncpg/pgproto/exceptions.pyc
-${PYSITELIB}/asyncpg/pgproto/exceptions.pyo
${PYSITELIB}/asyncpg/pgproto/frb.pxd
${PYSITELIB}/asyncpg/pgproto/frb.pyx
${PYSITELIB}/asyncpg/pgproto/hton.h
diff --git a/databases/py-asyncpg/distinfo b/databases/py-asyncpg/distinfo
index 5eb0ca16766..8502241a97b 100644
--- a/databases/py-asyncpg/distinfo
+++ b/databases/py-asyncpg/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.13 2020/08/10 06:11:17 adam Exp $
+$NetBSD: distinfo,v 1.14 2021/02/10 08:26:31 adam Exp $
-SHA1 (asyncpg-0.21.0.tar.gz) = 2f50e1fb61bac4a45b5b468d40b083185e2de507
-RMD160 (asyncpg-0.21.0.tar.gz) = 6d1176c2f2a5c8bf87fc582421b73ddb79711339
-SHA512 (asyncpg-0.21.0.tar.gz) = 8bfd6689008ea964ac66d1c141bddd749f50d928b6cbc5e059f0e1d0a3597213ccae0b2fa7d694bf4e40c0b2650c445d2c54040a076ba69509e508bf51de2970
-Size (asyncpg-0.21.0.tar.gz) = 746782 bytes
+SHA1 (asyncpg-0.22.0.tar.gz) = 2154d1ceee5dd7bcd35d7dfa08acacb634486d8c
+RMD160 (asyncpg-0.22.0.tar.gz) = ecf628bf520845e28fb372275a0ef62a711bdecb
+SHA512 (asyncpg-0.22.0.tar.gz) = b953290e10ea408ad67ac28f394bb3aaf84c4e42d136f0af9e2f7befcf03e34faf46ef1806c98099453028963142a6e3bce63ff3cbe118b2026744de2103eb37
+Size (asyncpg-0.22.0.tar.gz) = 770278 bytes