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