15
0

Accepting request 1091001 from devel:languages:python

- Update to 0.7.0:
  * Fixed breaking changes in SQLAlchemy cursor; supports >=1.4.42,<1.5
  * Wrapped types in typing.Optional where applicable
- Change {Build,}Requires for SQLAlchemy so we don't install >= 2.
- Drop patch sqlalchemy1442.patch, included upstream.

OBS-URL: https://build.opensuse.org/request/show/1091001
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-databases?expand=0&rev=7
This commit is contained in:
2023-06-06 17:56:09 +00:00
committed by Git OBS Bridge
5 changed files with 16 additions and 61 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4f48a4f9b95810df633be28e356fa51eeeb1486402843000bb355c305d9824d6
size 31549

BIN
databases-0.7.0.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -1,3 +1,12 @@
-------------------------------------------------------------------
Tue Jun 6 01:56:24 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 0.7.0:
* Fixed breaking changes in SQLAlchemy cursor; supports >=1.4.42,<1.5
* Wrapped types in typing.Optional where applicable
- Change {Build,}Requires for SQLAlchemy so we don't install >= 2.
- Drop patch sqlalchemy1442.patch, included upstream.
-------------------------------------------------------------------
Thu Nov 24 11:40:22 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-databases
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,21 +18,16 @@
%define skip_python2 1
Name: python-databases
Version: 0.6.2
Version: 0.7.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
# PATCH-FIX-UPSTREAM sqlalchemy1442.patch gh#encode/databases#513
Patch: sqlalchemy1442.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-sqlalchemy >= 1.4
%if 0%{?python_version_nodots} < 37
Requires: python-aiocontextvars
%endif
Requires: (python-sqlalchemy >= 1.4 with python-sqlalchemy < 2)
Suggests: python-aiomysql
Suggests: python-aiopg
Suggests: python-aiosqlite
@@ -40,11 +35,10 @@ Suggests: python-asyncpg
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module aiosqlite}
BuildRequires: %{python_module aiocontextvars if %python-base < 3.7}
BuildRequires: %{python_module asyncpg}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module sqlalchemy >= 1.4}
BuildRequires: %{python_module sqlalchemy >= 1.4 with %python-sqlalchemy < 2}
# /SECTION
%python_subpackages

View File

@@ -1,48 +0,0 @@
diff --git a/databases/backends/aiopg.py b/databases/backends/aiopg.py
index 60c741a..1d35749 100644
--- a/databases/backends/aiopg.py
+++ b/databases/backends/aiopg.py
@@ -221,6 +221,7 @@ def _compile(
compiled._result_columns,
compiled._ordered_columns,
compiled._textual_ordered_columns,
+ compiled._ad_hoc_textual,
compiled._loose_column_name_matching,
)
else:
diff --git a/databases/backends/asyncmy.py b/databases/backends/asyncmy.py
index e15dfa4..233d2e0 100644
--- a/databases/backends/asyncmy.py
+++ b/databases/backends/asyncmy.py
@@ -211,6 +211,7 @@ def _compile(
compiled._result_columns,
compiled._ordered_columns,
compiled._textual_ordered_columns,
+ compiled._ad_hoc_textual,
compiled._loose_column_name_matching,
)
else:
diff --git a/databases/backends/mysql.py b/databases/backends/mysql.py
index 2a0a842..c7ac9f4 100644
--- a/databases/backends/mysql.py
+++ b/databases/backends/mysql.py
@@ -211,6 +211,7 @@ def _compile(
compiled._result_columns,
compiled._ordered_columns,
compiled._textual_ordered_columns,
+ compiled._ad_hoc_textual,
compiled._loose_column_name_matching,
)
else:
diff --git a/databases/backends/sqlite.py b/databases/backends/sqlite.py
index 9626dcf..69ef5b5 100644
--- a/databases/backends/sqlite.py
+++ b/databases/backends/sqlite.py
@@ -185,6 +185,7 @@ def _compile(
compiled._result_columns,
compiled._ordered_columns,
compiled._textual_ordered_columns,
+ compiled._ad_hoc_textual,
compiled._loose_column_name_matching,
)