Compare commits
6 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| d724f52501 | |||
| ff1d435842 | |||
| 034d84da2e | |||
| 2f113780d1 | |||
| 898bcb8a45 | |||
| 8496dcaf7a |
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:d1c49e1f44fffafd9a55e1a9b101590859d881d639ea2922516f5d9c512d354e
|
|
||||||
size 820455
|
|
||||||
BIN
asyncpg-0.30.0.tar.gz
LFS
Normal file
BIN
asyncpg-0.30.0.tar.gz
LFS
Normal file
Binary file not shown.
@@ -1,3 +1,41 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 13 03:28:18 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Add patch skip-dsn_ipv6_multi_host-parse-test.patch:
|
||||||
|
* Skip a broken testcase.
|
||||||
|
- Switch to pyproject macros.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 23 12:16:37 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Remove 0001-notice-also-the-MERGE-command.patch not needed anymore.
|
||||||
|
- update to 0.30.0:
|
||||||
|
* Implement GSSAPI authentication
|
||||||
|
* Implement SSPI authentication
|
||||||
|
* Add initial typings
|
||||||
|
* Allow building with Cython 3
|
||||||
|
* docs: fix connection pool close call (#1125)
|
||||||
|
* Add support for the sslnegotiation parameter
|
||||||
|
* Test and build on Python 3.13
|
||||||
|
* Support PostgreSQL 17
|
||||||
|
* Add fetchmany to execute many and return rows
|
||||||
|
* Add connect kwarg to Pool to better support GCP's CloudSQL
|
||||||
|
* Allow customizing connection state reset (#1191)
|
||||||
|
* s/quote/quote_plus/ in the note about DSN part quoting
|
||||||
|
* Use asyncio.run() instead of run_until_complete()
|
||||||
|
* Require async_timeout for python < 3.11 (#1177)
|
||||||
|
* Allow testing with uvloop on Python 3.12 (#1182)
|
||||||
|
* Mark pool-wrapped connection coroutine methods as coroutines
|
||||||
|
* handle None parameters in copy_from_query, returning NULL
|
||||||
|
* fix: return the pool from async_init_ if it's already initialized (#1104)
|
||||||
|
* Replace obsolete, unsafe Py_TRASHCAN_SAFE_BEGIN/END (#1150)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 2 13:16:22 UTC 2024 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Add 0001-notice-also-the-MERGE-command.patch to support Postgres 15+,
|
||||||
|
sent upstream
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Nov 25 14:10:47 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
Sat Nov 25 14:10:47 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-asyncpg
|
# spec file for package python-asyncpg
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -18,22 +18,25 @@
|
|||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-asyncpg
|
Name: python-asyncpg
|
||||||
Version: 0.29.0
|
Version: 0.30.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python asyncio PosgtreSQL driver
|
Summary: Python asyncio PosgtreSQL driver
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/MagicStack/asyncpg
|
URL: https://github.com/MagicStack/asyncpg
|
||||||
Source: https://files.pythonhosted.org/packages/source/a/asyncpg/asyncpg-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/a/asyncpg/asyncpg-%{version}.tar.gz
|
||||||
|
# PATCH-FIX-OPENSUSE Skip a broken test
|
||||||
|
Patch0: skip-dsn_ipv6_multi_host-parse-test.patch
|
||||||
BuildRequires: %{python_module Cython}
|
BuildRequires: %{python_module Cython}
|
||||||
BuildRequires: %{python_module async_timeout}
|
BuildRequires: %{python_module async_timeout if %python-base < 3.11}
|
||||||
BuildRequires: %{python_module devel >= 3.6}
|
BuildRequires: %{python_module devel >= 3.6}
|
||||||
|
BuildRequires: %{python_module distro}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module typing-extensions >= 3.7.4.3 if %python-base < 3.8}
|
BuildRequires: %{python_module typing-extensions >= 3.7.4.3 if %python-base < 3.8}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: libpq5 >= 9.4
|
Requires: libpq5 >= 9.4
|
||||||
%if 0%{?python_version_nodots} < 312
|
%if 0%{?python_version_nodots} < 311
|
||||||
Requires: python-async_timeout
|
Requires: python-async_timeout
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?python_version_nodots} < 38
|
%if 0%{?python_version_nodots} < 38
|
||||||
@@ -64,10 +67,10 @@ sed -i asyncpg/_testbase/__init__.py \
|
|||||||
-e "s/if os.environ.get('USE_UVLOOP')/& and sys.version_info[:2] > (3, 6)/"
|
-e "s/if os.environ.get('USE_UVLOOP')/& and sys.version_info[:2] > (3, 6)/"
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%{python_expand find %{buildroot}%{$python_sitearch} -name '*.[ch]' -delete
|
%{python_expand find %{buildroot}%{$python_sitearch} -name '*.[ch]' -delete
|
||||||
%fdupes %{buildroot}%{$python_sitearch}
|
%fdupes %{buildroot}%{$python_sitearch}
|
||||||
}
|
}
|
||||||
@@ -93,6 +96,6 @@ mv .asyncpg asyncpg
|
|||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python_sitearch}/asyncpg
|
%{python_sitearch}/asyncpg
|
||||||
%{python_sitearch}/asyncpg-%{version}*-info
|
%{python_sitearch}/asyncpg-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
29
skip-dsn_ipv6_multi_host-parse-test.patch
Normal file
29
skip-dsn_ipv6_multi_host-parse-test.patch
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
Index: asyncpg-0.30.0/tests/test_connect.py
|
||||||
|
===================================================================
|
||||||
|
--- asyncpg-0.30.0.orig/tests/test_connect.py
|
||||||
|
+++ asyncpg-0.30.0/tests/test_connect.py
|
||||||
|
@@ -846,15 +846,15 @@ class TestConnectParams(tb.TestCase):
|
||||||
|
),
|
||||||
|
},
|
||||||
|
|
||||||
|
- {
|
||||||
|
- 'name': 'dsn_ipv6_multi_host',
|
||||||
|
- 'dsn': 'postgresql://user@[2001:db8::1234%25eth0],[::1]/db',
|
||||||
|
- 'result': ([('2001:db8::1234%eth0', 5432), ('::1', 5432)], {
|
||||||
|
- 'database': 'db',
|
||||||
|
- 'user': 'user',
|
||||||
|
- 'target_session_attrs': 'any',
|
||||||
|
- })
|
||||||
|
- },
|
||||||
|
+ #{
|
||||||
|
+ # 'name': 'dsn_ipv6_multi_host',
|
||||||
|
+ # 'dsn': 'postgresql://user@[2001:db8::1234%25eth0],[::1]/db',
|
||||||
|
+ # 'result': ([('2001:db8::1234%eth0', 5432), ('::1', 5432)], {
|
||||||
|
+ # 'database': 'db',
|
||||||
|
+ # 'user': 'user',
|
||||||
|
+ # 'target_session_attrs': 'any',
|
||||||
|
+ # })
|
||||||
|
+ #},
|
||||||
|
|
||||||
|
{
|
||||||
|
'name': 'dsn_ipv6_multi_host_port',
|
||||||
Reference in New Issue
Block a user