14
0

- 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 5abd5feaf8
commit 8c2150e833
4 changed files with 34 additions and 9 deletions

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