update to 2.7.5

Per release notes:
http://initd.org/psycopg/articles/2018/06/17/psycopg-275-released/

Resolves: rhbz#1592163
Version: 2.7.5-1
This commit is contained in:
Pavel Raiskup 2018-06-18 15:20:25 +02:00
parent dc26795c60
commit a3c6732b50
4 changed files with 8 additions and 31 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
/psycopg2-2.7.4.tar.gz
/psycopg2-2.7.5.tar.gz

View File

@ -1,24 +0,0 @@
From ef64493b8913e4069c4422ad14da6de405c445f6 Mon Sep 17 00:00:00 2001
From: Jon Dufresne <jon.dufresne@gmail.com>
Date: Sun, 3 Dec 2017 18:47:19 -0800
Subject: [PATCH] Fix use of "async" in test_cursor.py
"async" will be a keyword starting with Python 3.7. On Python 3.6, use
of "async" causes a deprecation warning. Use the alias "async_" instead.
---
tests/test_cursor.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test_cursor.py b/tests/test_cursor.py
index e896ef94..5c94f422 100755
--- a/tests/test_cursor.py
+++ b/tests/test_cursor.py
@@ -553,7 +553,7 @@ def test_external_close_async(self):
# Issue #443 is in the async code too. Since the fix is duplicated,
# so is the test.
control_conn = self.conn
- connect_func = lambda: self.connect(async=True)
+ connect_func = lambda: self.connect(async_=True)
wait_func = psycopg2.extras.wait_select
self._test_external_close(control_conn, connect_func, wait_func)

View File

@ -30,8 +30,8 @@ features offered by PostgreSQL.
Summary: %{sum}
Name: python-%{srcname}
Version: 2.7.4
Release: 5%{?dist}
Version: 2.7.5
Release: 1%{?dist}
# The exceptions allow linking to OpenSSL and PostgreSQL's libpq
License: LGPLv3+ with exceptions
Group: Applications/Databases
@ -39,9 +39,6 @@ Url: http://www.psycopg.org/psycopg/
Source0: http://www.psycopg.org/psycopg/tarballs/PSYCOPG-2-7/psycopg2-%{version}.tar.gz
# https://bugzilla.redhat.com/show_bug.cgi?id=1579761
Patch0: %{srcname}-test-cursor-async.patch
%{?with_python2:BuildRequires: python2-debug python2-devel}
%{?with_python3:BuildRequires: python3-debug python3-devel}
@ -257,6 +254,10 @@ cp -pr ZPsycopgDA/* %{buildroot}%{ZPsycopgDAdir}
%changelog
* Mon Jun 18 2018 Pavel Raiskup <praiskup@redhat.com> - 2.7.5-1
- rebase to latest upstream release, per release notes:
http://initd.org/psycopg/articles/2018/06/17/psycopg-275-released/
* Sat Jun 16 2018 Miro Hrončok <mhroncok@redhat.com> - 2.7.4-5
- Rebuilt for Python 3.7

View File

@ -1 +1 @@
SHA512 (psycopg2-2.7.4.tar.gz) = e78db528a4d3b897e0d8d38755179082dacddfb2d10bda963fc3836548991eaa0d4c1b8f81b329b15f4e685046c39e6f2a352b6c47b1da42af3a262094233034
SHA512 (psycopg2-2.7.5.tar.gz) = 5bf85b6760871f904b6b570ea454f99b72cf97acf9cce10b63dc7b6b0b18913b50ad4f24c469d101c54de6ad6100f1cac3c58225076b5e584a677f5ab4170a93