Sync from SUSE:SLFO:Main python-asyncpg revision 22188c38c459c0d3a43eb2984a4b87d8
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
Wed Oct 23 12:16:37 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-asyncpg
|
# spec file for package python-asyncpg
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 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
|
||||||
@@ -22,13 +22,15 @@ 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 if %python-base < 3.11}
|
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 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
|
||||||
@@ -65,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}
|
||||||
}
|
}
|
||||||
@@ -94,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