From 15154cfc8da6205f97e3c1f52777a0a1fd8e937c92fe7362900e264cac330aca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 4 Mar 2019 12:18:22 +0000 Subject: [PATCH] - 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). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=60 --- psycopg2-2.7.4.tar.gz | 3 --- psycopg2-2.7.7.tar.gz | 3 +++ python-psycopg2.changes | 20 ++++++++++++++++++++ python-psycopg2.spec | 17 +++++++++++------ 4 files changed, 34 insertions(+), 9 deletions(-) delete mode 100644 psycopg2-2.7.4.tar.gz create mode 100644 psycopg2-2.7.7.tar.gz diff --git a/psycopg2-2.7.4.tar.gz b/psycopg2-2.7.4.tar.gz deleted file mode 100644 index ccf5607..0000000 --- a/psycopg2-2.7.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8bf51191d60f6987482ef0cfe8511bbf4877a5aa7f313d7b488b53189cf26209 -size 425331 diff --git a/psycopg2-2.7.7.tar.gz b/psycopg2-2.7.7.tar.gz new file mode 100644 index 0000000..31edba3 --- /dev/null +++ b/psycopg2-2.7.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f4526d078aedd5187d0508aa5f9a01eae6a48a470ed678406da94b4cd6524b7e +size 427474 diff --git a/python-psycopg2.changes b/python-psycopg2.changes index a9f8dc7..54e567a 100644 --- a/python-psycopg2.changes +++ b/python-psycopg2.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Mon Mar 4 12:13:19 UTC 2019 - Tomáš Chvátal + +- 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 diff --git a/python-psycopg2.spec b/python-psycopg2.spec index e632683..1f7cb72 100644 --- a/python-psycopg2.spec +++ b/python-psycopg2.spec @@ -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