- Update to 2.7.7:

* Cleanup of the cursor results assignment code, which might have solved
    double free and inconsistencies in concurrent usage (🎟️`#346, #384`).
  * Close named cursors if exist, even if execute() wasn't called (ticket #746).
  * Fixed building on modern FreeBSD versions with Python 3.7 (ticket #755).
  * Fixed hang trying to COPY via execute() in asynchronous connections (ticket #781).
  * Fixed adaptation of arrays of empty arrays (ticket #788).
  * Fixed segfault accessing the connection.readonly and connection.deferrable attributes repeatedly (ticket #790).
  * execute_values() accepts sql.Composable objects (ticket #794).
  * errorcodes map updated to PostgreSQL 11.
  * Allow non-ascii chars in namedtuple fields (regression introduced fixing ticket #211).
  * Fixed adaptation of arrays of arrays of nulls (ticket #325).
  * Fixed building on Solaris 11 and derivatives such as SmartOS and illumos (ticket #677).
  * Maybe fixed building on MSYS2 (as reported in ticket #658).
  * Allow string subclasses in connection and other places (ticket #679).
  * Don't raise an exception closing an unused named cursor (ticket #716).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=60
This commit is contained in:
Tomáš Chvátal 2019-03-04 12:18:22 +00:00 committed by Git OBS Bridge
parent d5492b3f7c
commit 15154cfc8d
4 changed files with 34 additions and 9 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8bf51191d60f6987482ef0cfe8511bbf4877a5aa7f313d7b488b53189cf26209
size 425331

3
psycopg2-2.7.7.tar.gz Normal file
View File

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

View File

@ -1,3 +1,23 @@
-------------------------------------------------------------------
Mon Mar 4 12:13:19 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 2.7.7:
* Cleanup of the cursor results assignment code, which might have solved
double free and inconsistencies in concurrent usage (:tickets:`#346, #384`).
* Close named cursors if exist, even if execute() wasn't called (ticket #746).
* Fixed building on modern FreeBSD versions with Python 3.7 (ticket #755).
* Fixed hang trying to COPY via execute() in asynchronous connections (ticket #781).
* Fixed adaptation of arrays of empty arrays (ticket #788).
* Fixed segfault accessing the connection.readonly and connection.deferrable attributes repeatedly (ticket #790).
* execute_values() accepts sql.Composable objects (ticket #794).
* errorcodes map updated to PostgreSQL 11.
* Allow non-ascii chars in namedtuple fields (regression introduced fixing ticket #211).
* Fixed adaptation of arrays of arrays of nulls (ticket #325).
* Fixed building on Solaris 11 and derivatives such as SmartOS and illumos (ticket #677).
* Maybe fixed building on MSYS2 (as reported in ticket #658).
* Allow string subclasses in connection and other places (ticket #679).
* Don't raise an exception closing an unused named cursor (ticket #716).
-------------------------------------------------------------------
Wed Mar 7 14:03:13 UTC 2018 - aplanas@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-psycopg2
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,18 +12,18 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-psycopg2
Version: 2.7.4
Version: 2.7.7
Release: 0
Summary: Python-PostgreSQL Database Adapter
License: LGPL-3.0-or-later AND (LGPL-3.0-or-later OR ZPL-2.0) AND SUSE-GPL-2.0-with-openssl-exception
Group: Development/Languages/Python
Url: http://initd.org/psycopg/
URL: http://initd.org/psycopg/
Source: https://files.pythonhosted.org/packages/source/p/psycopg2/psycopg2-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: fdupes
@ -55,10 +55,15 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
%python_install
%python_expand rm -rf %{buildroot}%{$python_sitearch}/psycopg2/tests # Don't package testsuite
%fdupes -s %{buildroot}/%{_mandir} # Create symlinks for man pages
%fdupes %{buildroot} # Create hardlinks for the rest
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
# tests require running PGSQL
#%%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m unittest discover
%files %{python_files}
%doc AUTHORS LICENSE NEWS README.rst
%license LICENSE
%doc AUTHORS NEWS README.rst
%{python_sitearch}/psycopg2/
%{python_sitearch}/psycopg2-%{version}-py%{python_version}.egg-info