From 2f113780d110b42301873ad35a16019f050603b49cfefcf4855245620a1addff Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Wed, 23 Oct 2024 12:41:51 +0000 Subject: [PATCH] - Remove 0001-notice-also-the-MERGE-command.patch not needed anymore. - update to 0.30.0: * Implement GSSAPI authentication * Implement SSPI authentication * Add initial typings * Allow building with Cython 3 * docs: fix connection pool close call (#1125) * Add support for the sslnegotiation parameter * Test and build on Python 3.13 * Support PostgreSQL 17 * Add fetchmany to execute many and return rows * Add connect kwarg to Pool to better support GCP's CloudSQL * Allow customizing connection state reset (#1191) * s/quote/quote_plus/ in the note about DSN part quoting * Use asyncio.run() instead of run_until_complete() * Require async_timeout for python < 3.11 (#1177) * Allow testing with uvloop on Python 3.12 (#1182) * Mark pool-wrapped connection coroutine methods as coroutines * handle None parameters in copy_from_query, returning NULL * fix: return the pool from async_init_ if it's already initialized (#1104) * Replace obsolete, unsafe Py_TRASHCAN_SAFE_BEGIN/END (#1150) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-asyncpg?expand=0&rev=22 --- 0001-notice-also-the-MERGE-command.patch | 55 ------------------------ asyncpg-0.29.0.tar.gz | 3 -- asyncpg-0.30.0.tar.gz | 3 ++ python-asyncpg.changes | 25 +++++++++++ python-asyncpg.spec | 9 ++-- 5 files changed, 32 insertions(+), 63 deletions(-) delete mode 100644 0001-notice-also-the-MERGE-command.patch delete mode 100644 asyncpg-0.29.0.tar.gz create mode 100644 asyncpg-0.30.0.tar.gz diff --git a/0001-notice-also-the-MERGE-command.patch b/0001-notice-also-the-MERGE-command.patch deleted file mode 100644 index 21b43a2..0000000 --- a/0001-notice-also-the-MERGE-command.patch +++ /dev/null @@ -1,55 +0,0 @@ -From 75f68ce46da7c3393ec07ff0e03b654158b6e9f9 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Mark=C3=A9ta?= -Date: Wed, 2 Oct 2024 15:14:07 +0200 -Subject: [PATCH] notice also the MERGE command - ---- - asyncpg/prepared_stmt.py | 4 ++-- - asyncpg/protocol/prepared_stmt.pyx | 2 +- - tests/test_exceptions.py | 2 +- - 3 files changed, 4 insertions(+), 4 deletions(-) - -diff --git a/asyncpg/prepared_stmt.py b/asyncpg/prepared_stmt.py -index 8e241d6..195d005 100644 ---- a/asyncpg/prepared_stmt.py -+++ b/asyncpg/prepared_stmt.py -@@ -147,8 +147,8 @@ class PreparedStatement(connresource.ConnectionResource): - # will discard any output that a SELECT would return, other - # side effects of the statement will happen as usual. If you - # wish to use EXPLAIN ANALYZE on an INSERT, UPDATE, DELETE, -- # CREATE TABLE AS, or EXECUTE statement without letting the -- # command affect your data, use this approach: -+ # MERGE, CREATE TABLE AS, or EXECUTE statement without letting -+ # the command affect your data, use this approach: - # BEGIN; - # EXPLAIN ANALYZE ...; - # ROLLBACK; -diff --git a/asyncpg/protocol/prepared_stmt.pyx b/asyncpg/protocol/prepared_stmt.pyx -index 7335825..cb0afa2 100644 ---- a/asyncpg/protocol/prepared_stmt.pyx -+++ b/asyncpg/protocol/prepared_stmt.pyx -@@ -142,7 +142,7 @@ cdef class PreparedStatementState: - # that the user tried to parametrize a statement that does - # not support parameters. - hint += (r' Note that parameters are supported only in' -- r' SELECT, INSERT, UPDATE, DELETE, and VALUES' -+ r' SELECT, INSERT, UPDATE, DELETE, MERGE and VALUES' - r' statements, and will *not* work in statements ' - r' like CREATE VIEW or DECLARE CURSOR.') - -diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py -index dbffcc2..e8bb7a1 100644 ---- a/tests/test_exceptions.py -+++ b/tests/test_exceptions.py -@@ -42,7 +42,7 @@ class TestExceptions(tb.ConnectedTestCase): - self.assertEqual( - e.detail, - "Function's final statement must be SELECT or " -- "INSERT/UPDATE/DELETE RETURNING.") -+ "INSERT/UPDATE/DELETE/MERGE RETURNING.") - self.assertIn( - 'DETAIL: Function', str(e) - ) --- -2.46.1 - diff --git a/asyncpg-0.29.0.tar.gz b/asyncpg-0.29.0.tar.gz deleted file mode 100644 index cd1f893..0000000 --- a/asyncpg-0.29.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d1c49e1f44fffafd9a55e1a9b101590859d881d639ea2922516f5d9c512d354e -size 820455 diff --git a/asyncpg-0.30.0.tar.gz b/asyncpg-0.30.0.tar.gz new file mode 100644 index 0000000..3f073cf --- /dev/null +++ b/asyncpg-0.30.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c551e9928ab6707602f44811817f82ba3c446e018bfe1d3abecc8ba5f3eac851 +size 957746 diff --git a/python-asyncpg.changes b/python-asyncpg.changes index 4dff422..54161fc 100644 --- a/python-asyncpg.changes +++ b/python-asyncpg.changes @@ -1,3 +1,28 @@ +------------------------------------------------------------------- +Wed Oct 23 12:16:37 UTC 2024 - Daniel Garcia + +- Remove 0001-notice-also-the-MERGE-command.patch not needed anymore. +- update to 0.30.0: + * Implement GSSAPI authentication + * Implement SSPI authentication + * Add initial typings + * Allow building with Cython 3 + * docs: fix connection pool close call (#1125) + * Add support for the sslnegotiation parameter + * Test and build on Python 3.13 + * Support PostgreSQL 17 + * Add fetchmany to execute many and return rows + * Add connect kwarg to Pool to better support GCP's CloudSQL + * Allow customizing connection state reset (#1191) + * s/quote/quote_plus/ in the note about DSN part quoting + * Use asyncio.run() instead of run_until_complete() + * Require async_timeout for python < 3.11 (#1177) + * Allow testing with uvloop on Python 3.12 (#1182) + * Mark pool-wrapped connection coroutine methods as coroutines + * handle None parameters in copy_from_query, returning NULL + * fix: return the pool from async_init_ if it's already initialized (#1104) + * Replace obsolete, unsafe Py_TRASHCAN_SAFE_BEGIN/END (#1150) + ------------------------------------------------------------------- Wed Oct 2 13:16:22 UTC 2024 - Markéta Machová diff --git a/python-asyncpg.spec b/python-asyncpg.spec index 39fb289..6af4d95 100644 --- a/python-asyncpg.spec +++ b/python-asyncpg.spec @@ -18,24 +18,23 @@ %{?sle15_python_module_pythons} Name: python-asyncpg -Version: 0.29.0 +Version: 0.30.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 -# PATCH-FIX-UPSTREAM https://github.com/MagicStack/asyncpg/pull/1185 notice also the MERGE command -Patch0: 0001-notice-also-the-MERGE-command.patch BuildRequires: %{python_module Cython} -BuildRequires: %{python_module async_timeout} +BuildRequires: %{python_module async_timeout if %python-base < 3.11} BuildRequires: %{python_module devel >= 3.6} +BuildRequires: %{python_module distro} 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} < 312 +%if 0%{?python_version_nodots} < 311 Requires: python-async_timeout %endif %if 0%{?python_version_nodots} < 38