From 60b1517c5590ec0addc60d50174d0e96566582e0 Mon Sep 17 00:00:00 2001 From: Hugo Date: Tue, 28 Nov 2017 13:59:54 +0200 Subject: [PATCH] Add news and update version check --- NEWS | 8 ++++++++ psycopg/python.h | 6 ++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 65f4936a..7d99ed32 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,14 @@ Current release --------------- +What's new in psycopg 2.8 +------------------------- + +Other changes: + +- Dropped support for Python 2.6, 3.2, 3.3. + + What's new in psycopg 2.7.4 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/psycopg/python.h b/psycopg/python.h index b16c4b9d..fc8c2fed 100644 --- a/psycopg/python.h +++ b/psycopg/python.h @@ -31,8 +31,10 @@ #include #endif -#if PY_VERSION_HEX < 0x02070000 -# error "psycopg requires Python >= 2.7" +#if ((PY_VERSION_HEX < 0x02070000) \ + || ((PY_VERSION_HEX >= 0x03000000) \ + && (PY_VERSION_HEX < 0x03040000)) ) +# error "psycopg requires Python 2.7 or 3.4+" #endif /* hash() return size changed around version 3.2a4 on 64bit platforms. Before