Sync from SUSE:SLFO:Main python-databases revision 8b51c63a774816803b6f9d551e885e44

This commit is contained in:
Adrian Schröter 2024-10-11 10:07:16 +02:00
parent 26a154da5a
commit 5cd0726f0d
4 changed files with 36 additions and 11 deletions

BIN
databases-0.7.0.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
databases-0.9.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,25 @@
-------------------------------------------------------------------
Tue Sep 17 05:26:56 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 0.9.0:
* Added
+ Allow SQLite query parameters and support cached databases
+ Support for unix socket for aiomysql and asyncmy
* Changed
+ Drop support for Python 3.7 and add support for Python 3.12
+ Add support for SQLAlchemy 2+
+ Allow SSL string parameters in PostgresSQL URL
+ Change isolation connections and transactions during concurrent usage
+ Bump up asyncmy version to fix No module named 'asyncmy.connection'
* Fixed
+ Fix the type-hints using more standard mode
- Switch to pyproject macros.
-------------------------------------------------------------------
Tue Jul 4 13:09:38 UTC 2023 - ecsos <ecsos@opensuse.org>
- Add %{?sle15_python_module_pythons}
-------------------------------------------------------------------
Tue Jun 6 01:56:24 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-databases
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,18 +16,21 @@
#
%define skip_python2 1
%{?sle15_python_module_pythons}
Name: python-databases
Version: 0.7.0
Version: 0.9.0
Release: 0
Summary: Async database support for Python
License: BSD-3-Clause
URL: https://github.com/encode/databases
Source: https://github.com/encode/databases/archive/%{version}.tar.gz#/databases-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: (python-sqlalchemy >= 1.4 with python-sqlalchemy < 2)
Requires: python-sqlalchemy >= 2.0.7
Suggests: python-aiomysql
Suggests: python-aiopg
Suggests: python-aiosqlite
@ -38,7 +41,7 @@ BuildRequires: %{python_module aiosqlite}
BuildRequires: %{python_module asyncpg}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module sqlalchemy >= 1.4 with %python-sqlalchemy < 2}
BuildRequires: %{python_module sqlalchemy >= 2.0.7}
# /SECTION
%python_subpackages
@ -55,10 +58,10 @@ rm tests/test_integration.py
sed -Ei 's/from .*(aiopg|mysql|asyncmy).* import .*/pass/' tests/test_connection_options.py
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@ -70,6 +73,6 @@ export PYTHONPATH=${PWD}
%doc README.md
%license LICENSE.md
%{python_sitelib}/databases
%{python_sitelib}/databases-%{version}*-info
%{python_sitelib}/databases-%{version}.dist-info
%changelog