Commit graph

25 commits

Author SHA1 Message Date
wiz
8a9cb53cf6 *: bump PKGREVISION for egg.mk users
They now have a tool dependency on py-setuptools instead of a DEPENDS
2022-01-04 20:52:30 +00:00
adam
54fe3b553b Forget about Python 3.6 2021-12-30 13:05:27 +00:00
wiz
e17d378879 py-asyncpg: move incompatibility line earlier so it works 2021-12-16 12:50:08 +00:00
adam
69b99c952a py-asyncpg: updated to 0.25.0
v0.25.0

Changes

Improve SSL option compatibility in URIs
Add Pool methods to determine its min, max, current and idle size
Make it possible to specify a statement name in Connection.prepare()
Implement support for multirange types

Fixes

Make sure timeout callbacks always get cleaned up
Update __all__ statements to a simpler form that is better supported by typecheckers
Fix test_timetz_encoding on Python 3.10
Fix a bunch of ResourceWarnings in the test suite
Fix SSLContext deprecation warnings
Fix the description of the database argument to connect()
Fix parsing of IPv6 addresses in the connection URI
Improve diagnostics of invalid executemany() input
2021-11-17 09:04:41 +00:00
nia
acde260c8b databases: Replace RMD160 checksums with BLAKE2s checksums
All checksums have been double-checked against existing RMD160 and
SHA512 hashes

The following distfiles could not be fetched (some may be only fetched
conditionally):

./databases/cstore/distinfo D6.data.ros.gz
./databases/cstore/distinfo cstore0.2.tar.gz
./databases/cstore/distinfo data4.tar.gz
2021-10-26 10:09:13 +00:00
nia
2946ea15ca databases: Remove SHA1 distfile hashes 2021-10-07 13:35:05 +00:00
adam
90e06c9f12 py-asyncpg: updated to 0.24.0
v0.24.0

Changes

Drop support for Python 3.5
Add support for Python 3.10
Add support for asynchronous iterables to copy_records_to_table()
Add support for coroutine functions as listener callbacks
Add support for sslcert, sslkey and sslrootcert parameters to DSN
Add copy_ wrappers to Pool
Add issubset and issuperset methods to the Range type

Fixes

Break connection internal circular reference
Make Server Version Extraction More Flexible
2021-08-10 09:19:52 +00:00
adam
30d7c64aa4 py-asyncpg: updated to 0.23.0
v0.23.0

Fixes

Avoid TypeError in Transaction.__repr__
Feed memoryview to writelines()
Add sslmode=allow support and fix =prefer retry
Loosen message test in test_invalid_input
Support readonly and deferrable for non-serializable transactions
Fix asyncpg with Py_DEBUG mode
Fix docs/Makefile and docs/_static/theme_overrides.css missing from PyPI package
2021-05-19 09:50:12 +00:00
adam
6f99cf0ba0 py-asyncpg: mark as incompatible with Python 3.6 2021-02-19 05:47:47 +00:00
adam
85ce551e9a 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
2021-02-10 08:26:31 +00:00
adam
41be6023d2 py-asyncpg: updated to 0.21.0
asyncpg v0.21.0

Improvements

Add support for password functions (useful for RDS IAM auth)
Add support for connection termination listeners
Update CI matrix, aarch64 builds

Fixes

Fix possible uninitalized pointer access on unexpected array
message data (CVE-2020-17446)
Fix Connection class _copy_in private method
Bump pgproto to fix compilation issues
Improve pool documentation examples
Update usage.rst
Fix links in connection documentation
Fix usage documentation for hstore
Fix compiler warnings
2020-08-10 06:11:17 +00:00
adam
8916bf7d6f py-asyncpg: updated to 0.20.1
v0.20.1
Bug Fixes
* Add back ensure future for connector
* Fix errors in numeric binary decoder
2020-02-01 20:36:47 +00:00
adam
bb8cb38482 py-asyncpg: updated to 0.20.0
asyncpg v0.20.0

Improvements
Support Python 3.8
Support PgBouncer by sending only a single SYNC message per query

Bug Fixes
Handle IP values with prefix in "inet" type as ipaddress.IPvXInterface
Close transport if connection times out
Use faster UUID codecs; make UUID decoding/encoding/operations 2-7x faster
Use loop.start_tls() to upgrade connections to SSL

Build
Bump Cython to 0.29.14
2019-11-22 09:32:37 +00:00
adam
f99046d536 py-asyncpg: updated to 0.19.0
asyncpg v0.19.0

Improvements
Add support for SCRAM-SHA-256 authentication.
Add PostgreSQL 12 support

Bug Fixes
Remove preexec_fn hack from test cluster management
Fix DeprecationWarning in the docstring of copy_from_query()
Allow specifying the target version when generating the release log
Check for .flake8 after importing flake8
Include .flake8 in PyPI tarball
fix timezone type label in docs
Fix _StatementCache.clear() PS memory leak
fix for warning_callback not yet defined
Fix assertion fail on copy_records_to_table
Do not look for a port in a Unix socket domain path
Unquote connection string components properly
Remove superfluous transaction from a cursor example
2019-10-10 07:58:41 +00:00
maya
5901ac0824 Omit mentions of python 34 and 35, after those were removed.
- Includes some whitespace changes, to be handled in a separate commit.
2019-04-26 13:13:41 +00:00
adam
eabd44f787 py-asyncpg: updated to 0.18.3
v0.18.3:
* Fix bswap on *BSD
* Make sure idle never-acquired pool connections are closed due to inactivity
2019-01-03 10:57:07 +00:00
adam
dbb986ac81 py-asyncpg: updated to 0.18.2
asyncpg v0.18.2

Bug Fixes
* Revert "Stop treating ReadyForQuery as a universal result indicator"
  to fix stability regression.
* Correctly ignore all incoming messages after the Terminate message
* Properly cleanup connections closed by remote
2018-11-11 22:00:58 +00:00
adam
40f9c64c27 py-asyncpg: updated to 0.18.1
asyncpg v0.18.1:
Fix DSN parsing regression

asyncpg v0.18.0:
Improvements
Implement Record.get()
Internal asyncpg errors are now consistently raised as InternalClientError
Allow mappings as composite type input
Add BitString.to_int() and BitString.from_int()
Allow 'sslmode' in DSNs
Add support for specifying multiple host addresses when connecting
Low-level protocol implementation has been tweaked and
optimized for slightly better performance in certain scenarios
Queries with cached statements now generate fewer TCP packets
Allow aliasing builtin types by name in set_builtin_type_codec()
Factor out generic PostgreSQL protocol helpers into a separate package
Fix tests and enable CI for PostgreSQL 11

Bug Fixes
Handle and ignore permission errors when attempting to read .pgpass
Fix decoding of fractional timestamps before Postgres epoch
2018-11-02 11:51:38 +00:00
adam
b5b4841079 py-asyncpg: updated to 0.17.0
asyncpg v0.17.0:

Improvements
Official support for Python 3.7.

Bug Fixes
Fix garbage collection of connections and emit a ResourceWarning
if an unclosed connection is garbage collected.

Raise a clear error if there's a race in pool intialization.

Channel names in Connection.add_listener() and
Connection.remove_listener() are now quoted properly.

Fixed endianness detection on *BSD systems.

Fixed handling of large type OIDs.
2018-07-11 09:00:17 +00:00
adam
a31bce9748 extend PYTHON_VERSIONS_ for Python 3.7 2018-07-03 05:03:01 +00:00
adam
c4cfaf9336 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
2018-06-12 10:30:39 +00:00
adam
b207d94ea7 py-asyncpg: updated to 0.15.0
asyncpg v0.15.0

Behavior Changes
asyncpg no longer uses the common statement cache for explicit
prepared statements, so Connection.prepare() always returns a
new prepared statement

Bug Fixes
Initialize statement codecs immediately after Prepare
Fix server version parsing when it contains trailing data
2018-02-22 09:24:16 +00:00
adam
bf3671cc1d py-asyncpg: updated to 0.14.0
v0.14.0:
Backwards Incompatible Changes:
asyncpg now reports the server version as x.0.y for PostgreSQL 10.0 and later.
This is in alignment with how upstream is interpreting the "minor" version
component now.

Improvements:
Support timeouts in Connection.close() and Pool.release()
Invalidate type cache on schema changes affecting statement result.
A new Connection.reload_schema_state() method.
Add CrateDB detection

Bug Fixes:
Make prepared statement uid generator global
Document pgbouncer-related prepared statement breakage
Fix unaligned access issues in host-network byte I/O on ARM
Fix issues with timetz type I/O
Consistently use postgres/postgres as database/user pair in tests
Fix Range.__hash__()
Guard transaction methods against underlying connection release
2017-12-30 10:31:29 +00:00
adam
c73b0f4245 py-asyncpg: update to 0.13.0
v0.13.0
Backwards Incompatible Changes
------------------------------
Drop support for PostgreSQL 9.1
Remove the deprecated "binary" parameter from Connection.set_type_codec()

New Features
------------
Add support for PostgreSQL 10

Bug Fixes
---------
Document that single fetches can return None
Fix type introspection being very slow on large databases
Fix copy tests on PostgreSQL < 9.4
Fix DeprecationWarning in tests
Fix intermittent authentication failures against PostgreSQL 10 servers
Do not attempt to connect to Unix sockets on Windows when host is not set
Guard against incorrect use of resources associated with a connection
Warn when there are active listeners on a connection that is released
Add a test for cursors on a standby replica.
Clarify the argument/parameter count mismatch exception
Fix TypeError on get_attributes when result has no columns
protocol: Use try-finally explicitly every time we create a waiter
Call correct parent constructor in InterfaceWarning.__init__
Allow grabbing the version information programmatically.
Use the general statement cache for type introspection
Fix issues with inet type I/O
Handle inactive connection closes while stored in the pool
2017-10-22 07:32:05 +00:00
adam
f50c5e272a asyncpg is a database interface library designed specifically for PostgreSQL
and Python/asyncio. asyncpg is an efficient, clean implementation of
PostgreSQL server binary protocol for use with Python's asyncio framework.
2017-07-31 12:12:59 +00:00