Skip to content

Commit

Permalink
Update python-databases to version 0.6.2 / rev 6 via SR 1037887
Browse files Browse the repository at this point in the history
https://build.opensuse.org/request/show/1037887
by user dgarcia + dimstar_suse
- Add patch sqlalchemy1442.patch to make it compatible with latest sqlalchemy
  gh#encode/databases#513
- Remove python_module macro definition
- Update to 0.6.2:
  * Pinned SQLAlchemy <=1.4.41 to avoid breaking changes (#520).
- 0.6.1:
  * Improve typing for Transaction (#493)
  * Allow string indexing into Record (#501)
- 0.6.0:
  * Dropped Python 3.6 support (#458)
  * Add _mapping property to the result set interface (#447 )
  * Add contributing docs (#453 )
  * Fix query result named access (#448)
  * Fix connections getting into a bad state when a task is cancelled (#457)
  * Revert #328 parallel transactions (#472)
  * Change extra installations to specific drivers (#436)
- 0.5.5:
  * Revert the change of Record type to Sequence from Mapping(#408) to maintain
    backward compatibili
  • Loading branch information
dgarcia authored and bmwiedemann committed Nov 25, 2022
1 parent 2f9b5a0 commit 785db19
Show file tree
Hide file tree
Showing 7 changed files with 116 additions and 8 deletions.
Binary file modified packages/p/python-databases/.files
Binary file not shown.
32 changes: 32 additions & 0 deletions packages/p/python-databases/.rev
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,36 @@
<comment></comment>
<requestid>926785</requestid>
</revision>
<revision rev="6" vrev="1">
<srcmd5>f669451accb5e88c37e554da3bf42438</srcmd5>
<version>0.6.2</version>
<time>1669378310</time>
<user>dimstar_suse</user>
<comment>- Add patch sqlalchemy1442.patch to make it compatible with latest sqlalchemy
gh#encode/databases#513
- Remove python_module macro definition
- Update to 0.6.2:
* Pinned SQLAlchemy &lt;=1.4.41 to avoid breaking changes (#520).
- 0.6.1:
* Improve typing for Transaction (#493)
* Allow string indexing into Record (#501)
- 0.6.0:
* Dropped Python 3.6 support (#458)
* Add _mapping property to the result set interface (#447 )
* Add contributing docs (#453 )
* Fix query result named access (#448)
* Fix connections getting into a bad state when a task is cancelled (#457)
* Revert #328 parallel transactions (#472)
* Change extra installations to specific drivers (#436)
- 0.5.5:
* Revert the change of Record type to Sequence from Mapping(#408) to maintain
backward compatibility
- 0.5.4:
* Support for Unix domain in connections (#423)
* asyncmy MySQL driver (#382)
* Fix SQLite fetch queries with multiple parameters (#435)
* Change Record type to Sequence (#408)
</comment>
<requestid>1037887</requestid>
</revision>
</revisionlist>
1 change: 0 additions & 1 deletion packages/p/python-databases/databases-0.5.3.tar.gz

This file was deleted.

1 change: 1 addition & 0 deletions packages/p/python-databases/databases-0.6.2.tar.gz
28 changes: 28 additions & 0 deletions packages/p/python-databases/python-databases.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
-------------------------------------------------------------------
Thu Nov 24 11:40:22 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>

- Add patch sqlalchemy1442.patch to make it compatible with latest sqlalchemy
gh#encode/databases#513
- Remove python_module macro definition
- Update to 0.6.2:
* Pinned SQLAlchemy <=1.4.41 to avoid breaking changes (#520).
- 0.6.1:
* Improve typing for Transaction (#493)
* Allow string indexing into Record (#501)
- 0.6.0:
* Dropped Python 3.6 support (#458)
* Add _mapping property to the result set interface (#447 )
* Add contributing docs (#453 )
* Fix query result named access (#448)
* Fix connections getting into a bad state when a task is cancelled (#457)
* Revert #328 parallel transactions (#472)
* Change extra installations to specific drivers (#436)
- 0.5.5:
* Revert the change of Record type to Sequence from Mapping(#408) to maintain
backward compatibility
- 0.5.4:
* Support for Unix domain in connections (#423)
* asyncmy MySQL driver (#382)
* Fix SQLite fetch queries with multiple parameters (#435)
* Change Record type to Sequence (#408)

-------------------------------------------------------------------
Sun Oct 17 14:40:53 UTC 2021 - Ben Greiner <code@bnavigator.de>

Expand Down
14 changes: 7 additions & 7 deletions packages/p/python-databases/python-databases.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# spec file for package python-databases
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
Expand All @@ -16,15 +16,16 @@
#


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-databases
Version: 0.5.3
Version: 0.6.2
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
Expand Down Expand Up @@ -56,21 +57,20 @@ Async database support for Python.
# tests/test_integration.py depends on starlette
rm tests/test_integration.py

# Remove test dependencies aiopg and aiomysql
sed -Ei '/from .*(aiopg|mysql).* import /d' tests/test_connection_options.py
# Remove test dependencies aiopg, aiomysql and asyncmy
sed -Ei 's/from .*(aiopg|mysql|asyncmy).* import .*/pass/' tests/test_connection_options.py

%build
%python_build

%install
%python_install
rm %{buildroot}%{_prefix}/LICENSE.md
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%check
export TEST_DATABASE_URLS=sqlite:///mytestdb
export PYTHONPATH=${PWD}
%pytest -k 'not (aiopg or mysql)'
%pytest -k 'not (aiopg or mysql or asyncmy)'

%files %{python_files}
%doc README.md
Expand Down
48 changes: 48 additions & 0 deletions packages/p/python-databases/sqlalchemy1442.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
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,
)

0 comments on commit 785db19

Please sign in to comment.