Add news and update version check

This commit is contained in:
Hugo 2017-11-28 13:59:54 +02:00 committed by Daniele Varrazzo
parent c2d082e896
commit 60b1517c55
2 changed files with 12 additions and 2 deletions

8
NEWS
View File

@ -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
^^^^^^^^^^^^^^^^^^^^^^^^^^^

View File

@ -31,8 +31,10 @@
#include <stringobject.h>
#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