summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2018-11-08 17:45:38 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2018-11-08 17:46:07 +0000
commitc978aa4306ab6e7e305500d4268abc807a5c1e25 (patch)
tree91c8626af0bc647e336c0a522605ba64cf58905d /setup.py
parent8fec446789164480011a3000e4f19d87b1bc63b7 (diff)
downloadpsycopg2-py37.tar.gz
Declare Python 3.7 supportedpy37
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index 0503ebd..870fda6 100644
--- a/setup.py
+++ b/setup.py
@@ -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__