pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/databases/py-asyncpg py-asyncpg: updated to 0.16.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dc150e17fe79
branches:  trunk
changeset: 381606:dc150e17fe79
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Jun 12 10:30:39 2018 +0000

description:
py-asyncpg: updated to 0.16.0

asyncpg v0.16.0:

Behavior Changes
----------------
Pool.close() now waits until all acquired connections are released.
Hence, the below code will now hang indefinitely:
    conn = await pool.acquire()
    await pool.close()
Asyncpg will log a warning if pool.close() takes over 60 seconds to
complete. It is advisable to use asyncio.wait_for() to set a timeout.

Improvements
------------
Add support for reading passwords from .pgpass
Add Connection.is_in_transaction()
Added codec for built-in type tid
Allow setting custom codecs on domains and enumerated types
Allow passing datetime.date instances as timestamp input
Implement support for pool connection rotation

Bug Fixes
---------
Prohibit non-iterable containers to be passed as array input
Decode numeric zeros with correct scale
Fix handling of OIDs >= 2**31
Make Pool.close() wait until all checked out connections are released
Fix type codec cache races
Raise a consistent exception on input encoding errors

diffstat:

 databases/py-asyncpg/Makefile |   7 +++++--
 databases/py-asyncpg/PLIST    |   4 +++-
 databases/py-asyncpg/distinfo |  10 +++++-----
 3 files changed, 13 insertions(+), 8 deletions(-)

diffs (58 lines):

diff -r 17278d96a347 -r dc150e17fe79 databases/py-asyncpg/Makefile
--- a/databases/py-asyncpg/Makefile     Tue Jun 12 10:15:03 2018 +0000
+++ b/databases/py-asyncpg/Makefile     Tue Jun 12 10:30:39 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.4 2018/02/22 09:24:16 adam Exp $
+# $NetBSD: Makefile,v 1.5 2018/06/12 10:30:39 adam Exp $
 
-DISTNAME=      asyncpg-0.15.0
+DISTNAME=      asyncpg-0.16.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=a/asyncpg/}
@@ -10,6 +10,9 @@
 COMMENT=       Asyncio PosgtreSQL driver
 LICENSE=       apache-2.0
 
+TEST_DEPENDS+= ${PYPKGPREFIX}-flake8>=3.5.0:../../devel/py-flake8
+TEST_DEPENDS+= ${PYPKGPREFIX}-uvloop>=0.8.0:../../devel/py-uvloop
+
 PYTHON_VERSIONS_ACCEPTED=      36 35
 
 # Testing requires postgresql-contrib
diff -r 17278d96a347 -r dc150e17fe79 databases/py-asyncpg/PLIST
--- a/databases/py-asyncpg/PLIST        Tue Jun 12 10:15:03 2018 +0000
+++ b/databases/py-asyncpg/PLIST        Tue Jun 12 10:30:39 2018 +0000
@@ -1,7 +1,8 @@
-@comment $NetBSD: PLIST,v 1.3 2017/12/30 10:31:29 adam Exp $
+@comment $NetBSD: PLIST,v 1.4 2018/06/12 10:30:39 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
 ${PYSITELIB}/asyncpg/__init__.py
 ${PYSITELIB}/asyncpg/__init__.pyc
@@ -72,6 +73,7 @@
 ${PYSITELIB}/asyncpg/protocol/codecs/record.pyx
 ${PYSITELIB}/asyncpg/protocol/codecs/text.pyx
 ${PYSITELIB}/asyncpg/protocol/codecs/textutils.pyx
+${PYSITELIB}/asyncpg/protocol/codecs/tid.pyx
 ${PYSITELIB}/asyncpg/protocol/codecs/tsearch.pyx
 ${PYSITELIB}/asyncpg/protocol/codecs/txid.pyx
 ${PYSITELIB}/asyncpg/protocol/codecs/uuid.pyx
diff -r 17278d96a347 -r dc150e17fe79 databases/py-asyncpg/distinfo
--- a/databases/py-asyncpg/distinfo     Tue Jun 12 10:15:03 2018 +0000
+++ b/databases/py-asyncpg/distinfo     Tue Jun 12 10:30:39 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.4 2018/02/22 09:24:16 adam Exp $
+$NetBSD: distinfo,v 1.5 2018/06/12 10:30:39 adam Exp $
 
-SHA1 (asyncpg-0.15.0.tar.gz) = 70f75912baa2a2f3c0b98037873dea6186c4b11b
-RMD160 (asyncpg-0.15.0.tar.gz) = 69e0321592a71395c51fae0cc65bec0c4354d8c0
-SHA512 (asyncpg-0.15.0.tar.gz) = 19583b4d0eec16c743348b09e68b83951784951279751500215962bf91d8330f7cdfd0e0a4c0efaeab44d5021419b9e87e04d0fa8dea1169f2bffbf6b3df4837
-Size (asyncpg-0.15.0.tar.gz) = 591010 bytes
+SHA1 (asyncpg-0.16.0.tar.gz) = 4ffdde18aa5f8e5f6535a5b691ab38b0d0220cfe
+RMD160 (asyncpg-0.16.0.tar.gz) = 5567220fd1680dc967d857bbfdb56553707fa2b7
+SHA512 (asyncpg-0.16.0.tar.gz) = e89a1efbd5b88f7308fbaeaffdda6fe0ad5106e4cad36df7eaf1b41aca0430757900c4f906cb97a8721d67525cfa25e5221b980a77864fffd607153d3da6d560
+Size (asyncpg-0.16.0.tar.gz) = 615123 bytes



Home | Main Index | Thread Index | Old Index