forked from pool/python-psycopg
Accepting request 1198910 from devel:languages:python
- update to 3.2.1: * Fix packaging metadata breaking [c], [binary] dependencies * Add support for integer, floating point, boolean NumPy scalar types (ticket #332). * Add timeout and stop_after parameters to Connection.notifies() * Allow dumpers to return None, to be converted to NULL (ticket * Add Raw query cursors to execute queries using placeholders in PostgreSQL format ($1, $2…) (tickets #560, #839). * Add capabilities object to inspect the libpq capabilities * Add scalar_row to return scalar values from a query * Add cancel_safe() for encrypted and non-blocking cancellation when using libpq v17. Use such method internally to implement KeyboardInterrupt and copy termination * The context parameter of sql objects as_string() and as_bytes() methods is now optional * Add set_autocommit() on sync connections, and similar transaction control methods available on the async connections. * Add a size parameter to stream() to enable results retrieval in chunks instead of row-by-row - drop fix-pool-import.patch (upstream) OBS-URL: https://build.opensuse.org/request/show/1198910 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-psycopg?expand=0&rev=6
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
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
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9c16da4e33b5721fa3ac04368da6e3bc08cb2f1141c1ea1717f50a18aeac1525
|
||||
size 507073
|
3
psycopg-3.2.1.tar.gz
Normal file
3
psycopg-3.2.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c02f214d670f76f45c8e7a6efe6cfd39c5b9612e26e3b172f6742d13852486f0
|
||||
size 549277
|
@@ -1,3 +1,27 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Aug 31 12:26:21 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 3.2.1:
|
||||
* Fix packaging metadata breaking [c], [binary] dependencies
|
||||
* Add support for integer, floating point, boolean NumPy scalar
|
||||
types (ticket #332).
|
||||
* Add timeout and stop_after parameters to Connection.notifies()
|
||||
* Allow dumpers to return None, to be converted to NULL (ticket
|
||||
* Add Raw query cursors to execute queries using placeholders in
|
||||
PostgreSQL format ($1, $2…) (tickets #560, #839).
|
||||
* Add capabilities object to inspect the libpq capabilities
|
||||
* Add scalar_row to return scalar values from a query
|
||||
* Add cancel_safe() for encrypted and non-blocking cancellation when
|
||||
using libpq v17. Use such method internally to implement
|
||||
KeyboardInterrupt and copy termination
|
||||
* The context parameter of sql objects as_string() and as_bytes()
|
||||
methods is now optional
|
||||
* Add set_autocommit() on sync connections, and similar transaction
|
||||
control methods available on the async connections.
|
||||
* Add a size parameter to stream() to enable results retrieval in
|
||||
chunks instead of row-by-row
|
||||
- drop fix-pool-import.patch (upstream)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 16 08:40:25 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
@@ -19,14 +19,12 @@
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-psycopg
|
||||
# This needs to upgraded in lockstep with python-psycopg-c
|
||||
Version: 3.1.19
|
||||
Version: 3.2.1
|
||||
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}
|
||||
|
Reference in New Issue
Block a user