Add news and update version check

This commit is contained in:
Hugo 2017-11-28 13:59:54 +02:00
parent bafe2da941
commit 8b4b77cbdf
2 changed files with 11 additions and 2 deletions

7
NEWS
View File

@ -1,6 +1,13 @@
Current release Current release
--------------- ---------------
What's new in psycopg 2.8
-------------------------
Other changes:
- Dropped support for EOL Python 2.6, 3.2, 3.3.
What's new in psycopg 2.7.4 What's new in psycopg 2.7.4
^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^

View File

@ -31,8 +31,10 @@
#include <stringobject.h> #include <stringobject.h>
#endif #endif
#if PY_VERSION_HEX < 0x02070000 #if ((PY_VERSION_HEX < 0x02070000) \
# error "psycopg requires Python >= 2.7" || ((PY_VERSION_HEX >= 0x03000000) \
&& (PY_VERSION_HEX < 0x03040000)) )
# error "psycopg requires Python 2.7 or 3.4+"
#endif #endif
/* hash() return size changed around version 3.2a4 on 64bit platforms. Before /* hash() return size changed around version 3.2a4 on 64bit platforms. Before