From ce5b3b34c5e008874e2440caccca0c5bc392e1e33af735a9cb13ab2945c0b9ce Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 14 Dec 2023 21:12:16 +0000 Subject: [PATCH 1/4] - update to 3.1.15: * Fix use of ``service`` in connection string (regression in 3.1.13, :ticket:`#694`). * Fix async connection to hosts resolving to multiple IP addresses (regression in 3.1.13, :ticket:`#695`). * Respect the :envvar:`PGCONNECT_TIMEOUT` environment variable to determine the connection timeout. * Fix :ref:`interaction with gevent ` (:ticket:`#527`). * Add support for PyPy (:ticket:`#686`). - Initial release of 3.1.9 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg?expand=0&rev=5 --- psycopg-3.1.13.tar.gz | 3 --- psycopg-3.1.15.tar.gz | 3 +++ python-psycopg.changes | 15 ++++++++++++++- python-psycopg.spec | 2 +- 4 files changed, 18 insertions(+), 5 deletions(-) delete mode 100644 psycopg-3.1.13.tar.gz create mode 100644 psycopg-3.1.15.tar.gz diff --git a/psycopg-3.1.13.tar.gz b/psycopg-3.1.13.tar.gz deleted file mode 100644 index f303dd9..0000000 --- a/psycopg-3.1.13.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:558a5e33420ad4349eedfe66b6ee6bbcbb1ad18f8caa66d5d8f6b2180432d6d7 -size 500475 diff --git a/psycopg-3.1.15.tar.gz b/psycopg-3.1.15.tar.gz new file mode 100644 index 0000000..4954e03 --- /dev/null +++ b/psycopg-3.1.15.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f46a238017c6548eab55af1e249dd3f3301b4be981db27d513d6917254a213e3 +size 502669 diff --git a/python-psycopg.changes b/python-psycopg.changes index 81d7602..1021961 100644 --- a/python-psycopg.changes +++ b/python-psycopg.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Thu Dec 14 21:11:45 UTC 2023 - Dirk Müller + +- update to 3.1.15: + * Fix use of ``service`` in connection string (regression in + 3.1.13, :ticket:`#694`). + * Fix async connection to hosts resolving to multiple IP + addresses (regression in 3.1.13, :ticket:`#695`). + * Respect the :envvar:`PGCONNECT_TIMEOUT` environment variable + to determine the connection timeout. + * Fix :ref:`interaction with gevent ` (:ticket:`#527`). + * Add support for PyPy (:ticket:`#686`). + ------------------------------------------------------------------- Fri Nov 24 13:58:45 UTC 2023 - Antonio Larrosa @@ -59,4 +72,4 @@ Fri Nov 24 13:58:45 UTC 2023 - Antonio Larrosa ------------------------------------------------------------------- Wed Jul 12 05:41:29 UTC 2023 - Steve Kowalik -- Initial release of 3.1.9 +- Initial release of 3.1.9 diff --git a/python-psycopg.spec b/python-psycopg.spec index ef3b24f..b8afa67 100644 --- a/python-psycopg.spec +++ b/python-psycopg.spec @@ -18,7 +18,7 @@ Name: python-psycopg # This needs to upgraded in lockstep with python-psycopg-c -Version: 3.1.13 +Version: 3.1.15 Release: 0 Summary: PostgreSQL database adapter for Python License: LGPL-3.0-only From 153330e5d3d6c446c78394d7164212f7b3027d1e8ea4d14886f4fa6239a76523 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 5 Jan 2024 17:51:23 +0000 Subject: [PATCH 2/4] - update to 3.1.16: * Fix empty ports handling in async multiple connection attempts OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg?expand=0&rev=6 --- psycopg-3.1.15.tar.gz | 3 --- psycopg-3.1.16.tar.gz | 3 +++ python-psycopg.changes | 6 ++++++ python-psycopg.spec | 4 ++-- 4 files changed, 11 insertions(+), 5 deletions(-) delete mode 100644 psycopg-3.1.15.tar.gz create mode 100644 psycopg-3.1.16.tar.gz diff --git a/psycopg-3.1.15.tar.gz b/psycopg-3.1.15.tar.gz deleted file mode 100644 index 4954e03..0000000 --- a/psycopg-3.1.15.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f46a238017c6548eab55af1e249dd3f3301b4be981db27d513d6917254a213e3 -size 502669 diff --git a/psycopg-3.1.16.tar.gz b/psycopg-3.1.16.tar.gz new file mode 100644 index 0000000..59b2faa --- /dev/null +++ b/psycopg-3.1.16.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f156b09b376871065f02b0dba46686de06110aa2a08a2bdc4790751178322d89 +size 502759 diff --git a/python-psycopg.changes b/python-psycopg.changes index 1021961..7ec15fd 100644 --- a/python-psycopg.changes +++ b/python-psycopg.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jan 5 17:50:05 UTC 2024 - Dirk Müller + +- update to 3.1.16: + * Fix empty ports handling in async multiple connection attempts + ------------------------------------------------------------------- Thu Dec 14 21:11:45 UTC 2023 - Dirk Müller diff --git a/python-psycopg.spec b/python-psycopg.spec index b8afa67..6431144 100644 --- a/python-psycopg.spec +++ b/python-psycopg.spec @@ -1,7 +1,7 @@ # # spec file for package python-psycopg # -# 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 @@ -18,7 +18,7 @@ Name: python-psycopg # This needs to upgraded in lockstep with python-psycopg-c -Version: 3.1.15 +Version: 3.1.16 Release: 0 Summary: PostgreSQL database adapter for Python License: LGPL-3.0-only From 62da2d11112ac59b316909aea0f1bbb54b6e3553fa04c6f89ed321b21eb4dc78 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 15 Jan 2024 05:04:45 +0000 Subject: [PATCH 3/4] - Update to 3.1.17: * Fix multiple connection attempts when a host name resolve to multiple IP addresses (:ticket:`699`). * Use `typing.Self` as a more correct return value annotation of context managers and other self-returning methods (see :ticket:`708`). - Add patch fix-pool-import.patch: * Correct where we are importing from due to new pool release. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg?expand=0&rev=7 --- fix-pool-import.patch | 13 +++++++++++++ psycopg-3.1.16.tar.gz | 3 --- psycopg-3.1.17.tar.gz | 3 +++ python-psycopg.changes | 11 +++++++++++ python-psycopg.spec | 4 +++- 5 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 fix-pool-import.patch delete mode 100644 psycopg-3.1.16.tar.gz create mode 100644 psycopg-3.1.17.tar.gz diff --git a/fix-pool-import.patch b/fix-pool-import.patch new file mode 100644 index 0000000..5f8e003 --- /dev/null +++ b/fix-pool-import.patch @@ -0,0 +1,13 @@ +Index: psycopg-3.1.17/tests/pool/test_sched_async.py +=================================================================== +--- psycopg-3.1.17.orig/tests/pool/test_sched_async.py ++++ psycopg-3.1.17/tests/pool/test_sched_async.py +@@ -8,7 +8,7 @@ import pytest + from psycopg._compat import create_task + + try: +- from psycopg_pool.sched import AsyncScheduler ++ from psycopg_pool.sched_async import AsyncScheduler + except ImportError: + # Tests should have been skipped if the package is not available + pass diff --git a/psycopg-3.1.16.tar.gz b/psycopg-3.1.16.tar.gz deleted file mode 100644 index 59b2faa..0000000 --- a/psycopg-3.1.16.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f156b09b376871065f02b0dba46686de06110aa2a08a2bdc4790751178322d89 -size 502759 diff --git a/psycopg-3.1.17.tar.gz b/psycopg-3.1.17.tar.gz new file mode 100644 index 0000000..2e62082 --- /dev/null +++ b/psycopg-3.1.17.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:922149eb2af9ee57b3557a184ae1370a8daa3f969f11a1c39a94bcea38f40e2e +size 503318 diff --git a/python-psycopg.changes b/python-psycopg.changes index 7ec15fd..a9fc2f6 100644 --- a/python-psycopg.changes +++ b/python-psycopg.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Mon Jan 15 05:04:06 UTC 2024 - Steve Kowalik + +- Update to 3.1.17: + * Fix multiple connection attempts when a host name resolve to multiple + IP addresses (:ticket:`699`). + * Use `typing.Self` as a more correct return value annotation of context + managers and other self-returning methods (see :ticket:`708`). +- Add patch fix-pool-import.patch: + * Correct where we are importing from due to new pool release. + ------------------------------------------------------------------- Fri Jan 5 17:50:05 UTC 2024 - Dirk Müller diff --git a/python-psycopg.spec b/python-psycopg.spec index 6431144..d954df7 100644 --- a/python-psycopg.spec +++ b/python-psycopg.spec @@ -18,12 +18,14 @@ Name: python-psycopg # This needs to upgraded in lockstep with python-psycopg-c -Version: 3.1.16 +Version: 3.1.17 Release: 0 Summary: PostgreSQL database adapter for Python License: LGPL-3.0-only URL: https://psycopg.org/psycopg3/ Source: https://github.com/psycopg/psycopg/archive/refs/tags/%{version}.tar.gz#/psycopg-%{version}.tar.gz +# PATCH-FIX-UPSTREAM One small part of gh#psycopg/psycopg#c3d303d8b3b642ad45b053096e3f8e4111012600.patch +Patch0: fix-pool-import.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools >= 49.2.0} BuildRequires: %{python_module wheel >= 0.37} From 87a8c68c479a9f26a447dbd48bb3e40db389ffe5f03b2892d57e8cc944cba3d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 15 Jan 2024 14:04:07 +0000 Subject: [PATCH 4/4] Accepting request 1138840 from home:alarrosa:branches:devel:languages:python - Use %sle15_python_module_pythons OBS-URL: https://build.opensuse.org/request/show/1138840 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg?expand=0&rev=8 --- python-psycopg.changes | 5 +++++ python-psycopg.spec | 1 + 2 files changed, 6 insertions(+) diff --git a/python-psycopg.changes b/python-psycopg.changes index a9fc2f6..5dd3dbe 100644 --- a/python-psycopg.changes +++ b/python-psycopg.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jan 15 13:02:19 UTC 2024 - Antonio Larrosa + +- Use %sle15_python_module_pythons + ------------------------------------------------------------------- Mon Jan 15 05:04:06 UTC 2024 - Steve Kowalik diff --git a/python-psycopg.spec b/python-psycopg.spec index d954df7..cc75a61 100644 --- a/python-psycopg.spec +++ b/python-psycopg.spec @@ -16,6 +16,7 @@ # +%{?sle15_python_module_pythons} Name: python-psycopg # This needs to upgraded in lockstep with python-psycopg-c Version: 3.1.17