diff options
-rw-r--r-- | .travis.yml | 1 | ||||
-rw-r--r-- | doc/src/install.rst | 2 | ||||
-rw-r--r-- | setup.py | 8 |
3 files changed, 7 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml index 4d558f1..e4c27b3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ language: python python: - 2.7 + - 3.7-dev - 3.6 - 2.6 - 3.5 diff --git a/doc/src/install.rst b/doc/src/install.rst index 2f83b45..22d487c 100644 --- a/doc/src/install.rst +++ b/doc/src/install.rst @@ -33,7 +33,7 @@ The current `!psycopg2` implementation supports: NOTE: keep consistent with setup.py and the /features/ page. - Python 2 versions from 2.6 to 2.7 -- Python 3 versions from 3.2 to 3.6 +- Python 3 versions from 3.2 to 3.7 - PostgreSQL server versions from 7.4 to 10 - PostgreSQL client library version from 9.1 @@ -85,6 +85,7 @@ Programming Language :: Python :: 3.3 Programming Language :: Python :: 3.4 Programming Language :: Python :: 3.5 Programming Language :: Python :: 3.6 +Programming Language :: Python :: 3.7 Programming Language :: Python :: Implementation :: CPython Programming Language :: C Programming Language :: SQL @@ -334,7 +335,8 @@ For further information please check the 'doc/src/install.rst' file (also at # For Python versions that use MSVC compiler 2008, re-insert the # manifest into the resulting .pyd file. - if self.compiler_is_msvc() and sysVer in ((2, 6), (2, 7), (3, 0), (3, 1), (3, 2)): + if self.compiler_is_msvc() and sysVer in ( + (2, 6), (2, 7), (3, 0), (3, 1), (3, 2)): platform = get_platform() # Default to the x86 manifest manifest = '_psycopg.vc9.x86.manifest' @@ -451,7 +453,7 @@ For further information please check the 'doc/src/install.rst' file (also at # *at least* PostgreSQL 7.4 is available (this is the only # 7.x series supported by psycopg 2) pgversion = pg_config_helper.query("version").split()[1] - except: + except Exception: pgversion = "7.4.0" verre = re.compile( @@ -656,7 +658,7 @@ try: f = open("README.rst") readme = f.read() f.close() -except: +except Exception: print("failed to read readme: ignoring...") readme = __doc__ |