14
0

Accepting request 1138871 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1138871
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg?expand=0&rev=3
This commit is contained in:
2024-01-15 21:15:39 +00:00
committed by Git OBS Bridge
5 changed files with 57 additions and 6 deletions

13
fix-pool-import.patch Normal file
View File

@@ -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

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:558a5e33420ad4349eedfe66b6ee6bbcbb1ad18f8caa66d5d8f6b2180432d6d7
size 500475

3
psycopg-3.1.17.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:922149eb2af9ee57b3557a184ae1370a8daa3f969f11a1c39a94bcea38f40e2e
size 503318

View File

@@ -1,3 +1,38 @@
-------------------------------------------------------------------
Mon Jan 15 13:02:19 UTC 2024 - Antonio Larrosa <alarrosa@suse.com>
- Use %sle15_python_module_pythons
-------------------------------------------------------------------
Mon Jan 15 05:04:06 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- 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 <dmueller@suse.com>
- 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 <dmueller@suse.com>
- 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 <gevent>` (:ticket:`#527`).
* Add support for PyPy (:ticket:`#686`).
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Nov 24 13:58:45 UTC 2023 - Antonio Larrosa <alarrosa@suse.com> Fri Nov 24 13:58:45 UTC 2023 - Antonio Larrosa <alarrosa@suse.com>
@@ -59,4 +94,4 @@ Fri Nov 24 13:58:45 UTC 2023 - Antonio Larrosa <alarrosa@suse.com>
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jul 12 05:41:29 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com> Wed Jul 12 05:41:29 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- Initial release of 3.1.9 - Initial release of 3.1.9

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-psycopg # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,14 +16,17 @@
# #
%{?sle15_python_module_pythons}
Name: python-psycopg Name: python-psycopg
# This needs to upgraded in lockstep with python-psycopg-c # This needs to upgraded in lockstep with python-psycopg-c
Version: 3.1.13 Version: 3.1.17
Release: 0 Release: 0
Summary: PostgreSQL database adapter for Python Summary: PostgreSQL database adapter for Python
License: LGPL-3.0-only License: LGPL-3.0-only
URL: https://psycopg.org/psycopg3/ URL: https://psycopg.org/psycopg3/
Source: https://github.com/psycopg/psycopg/archive/refs/tags/%{version}.tar.gz#/psycopg-%{version}.tar.gz 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 pip}
BuildRequires: %{python_module setuptools >= 49.2.0} BuildRequires: %{python_module setuptools >= 49.2.0}
BuildRequires: %{python_module wheel >= 0.37} BuildRequires: %{python_module wheel >= 0.37}