Accepting request 925854 from home:bnavigator:branches:devel:languages:python
- Update to 0.24.0 * Drop support for Python 3.5 (#777) * Add support for Python 3.10 (#795) * Add support for asynchronous iterables to copy_records_to_table() (#713) * Add support for coroutine functions as listener callbacks (#802) * Add support for sslcert, sslkey and sslrootcert parameters to DSN (#768) * Add copy_ wrappers to Pool (#661) * Add issubset and issuperset methods to the Range type (#563) * Break connection internal circular reference (#774) * Make Server Version Extraction More Flexible (#778) - Release 0.23.0 * Avoid TypeError in Transaction.__repr__ (#703) * Feed memoryview to writelines() (#715) * Add sslmode=allow support and fix =prefer retry (#720) * Loosen message test in test_invalid_input (#751) * Support readonly and deferrable for non-serializable transactions (#747) * Fix asyncpg with Py_DEBUG mode (#719) * Fix docs/Makefile and docs/_static/theme_overrides.css missing from PyPI package (#708) - Reactivate python36: uvloop for testing is optional OBS-URL: https://build.opensuse.org/request/show/925854 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-asyncpg?expand=0&rev=6
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:348ad471d9bdd77f0609a00c860142f47c81c9123f4064d13d65c8569415d802
|
||||
size 770278
|
||||
3
asyncpg-0.24.0.tar.gz
Normal file
3
asyncpg-0.24.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:dd2fa063c3344823487d9ddccb40802f02622ddf8bf8a6cc53885ee7a2c1c0c6
|
||||
size 787494
|
||||
@@ -1,3 +1,31 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 17 14:19:32 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Update to 0.24.0
|
||||
* Drop support for Python 3.5 (#777)
|
||||
* Add support for Python 3.10 (#795)
|
||||
* Add support for asynchronous iterables to
|
||||
copy_records_to_table() (#713)
|
||||
* Add support for coroutine functions as listener callbacks
|
||||
(#802)
|
||||
* Add support for sslcert, sslkey and sslrootcert parameters to
|
||||
DSN (#768)
|
||||
* Add copy_ wrappers to Pool (#661)
|
||||
* Add issubset and issuperset methods to the Range type (#563)
|
||||
* Break connection internal circular reference (#774)
|
||||
* Make Server Version Extraction More Flexible (#778)
|
||||
- Release 0.23.0
|
||||
* Avoid TypeError in Transaction.__repr__ (#703)
|
||||
* Feed memoryview to writelines() (#715)
|
||||
* Add sslmode=allow support and fix =prefer retry (#720)
|
||||
* Loosen message test in test_invalid_input (#751)
|
||||
* Support readonly and deferrable for non-serializable
|
||||
transactions (#747)
|
||||
* Fix asyncpg with Py_DEBUG mode (#719)
|
||||
* Fix docs/Makefile and docs/_static/theme_overrides.css missing
|
||||
from PyPI package (#708)
|
||||
- Reactivate python36: uvloop for testing is optional
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 17 07:01:53 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
|
||||
@@ -16,28 +16,34 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python3-%{**}}
|
||||
%define skip_python2 1
|
||||
%define skip_python36 1
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-asyncpg
|
||||
Version: 0.22.0
|
||||
Version: 0.24.0
|
||||
Release: 0
|
||||
Summary: Python asyncio PosgtreSQL driver
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/MagicStack/asyncpg
|
||||
Source: https://files.pythonhosted.org/packages/source/a/asyncpg/asyncpg-%{version}.tar.gz
|
||||
BuildRequires: %{python_module Cython >= 0.28}
|
||||
BuildRequires: %{python_module devel >= 3.5}
|
||||
BuildRequires: %{python_module Cython >= 0.29.24}
|
||||
BuildRequires: %{python_module devel >= 3.6}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module typing-extensions >= 3.7.4.3 if %python-base < 3.8}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: libpq5 >= 9.4
|
||||
%if 0%{?python_version_nodots} < 38
|
||||
Requires: python-typing-extensions >= 3.7.4.3
|
||||
%endif
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module uvloop >= 0.14.0}
|
||||
BuildRequires: %{python_module pytest >= 6}
|
||||
BuildRequires: postgresql-contrib
|
||||
BuildRequires: postgresql-server
|
||||
%if 0%{?suse_version} > 1500
|
||||
# uvloop >= 0.15.3 does not exist in Leap nor in python36 flavor
|
||||
BuildRequires: %{python_module uvloop >= 0.15.3 if (%python-base without python36-base)}
|
||||
%endif
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
@@ -49,6 +55,10 @@ PostgreSQL and Python/asyncio with clean implementation
|
||||
|
||||
%prep
|
||||
%setup -q -n asyncpg-%{version}
|
||||
# no uvloop in python36 but in newer flavors
|
||||
sed -i asyncpg/_testbase/__init__.py \
|
||||
-e "/import re/ a import sys" \
|
||||
-e "s/if os.environ.get('USE_UVLOOP')/& and sys.version_info[:2] > (3, 6)/"
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -63,14 +73,20 @@ PostgreSQL and Python/asyncio with clean implementation
|
||||
# Needed to avoid asyncpg.cluster.ClusterError:
|
||||
# could not find pg_config executable
|
||||
export PGINSTALLATION=%{_bindir}
|
||||
%if 0%{?suse_version} > 1500
|
||||
export USE_UVLOOP=1
|
||||
%endif
|
||||
# fails inside obs chroot
|
||||
donttest="test_timetz_encoding"
|
||||
|
||||
mv asyncpg .asyncpg
|
||||
%pytest_arch -rs
|
||||
%pytest_arch -rs -k "not ($donttest)"
|
||||
mv .asyncpg asyncpg
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{python_sitearch}/*
|
||||
%{python_sitearch}/asyncpg
|
||||
%{python_sitearch}/asyncpg-%{version}*-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user