]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
mypy test on setup.py dropped
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 11 May 2020 06:23:48 +0000 (18:23 +1200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 11 May 2020 06:23:48 +0000 (18:23 +1200)
Types info for distutils are utterly broken.

setup.py
tox.ini

index 22ab0c46b5849bbf90b605d750d44fd628acd245..81020776a0c68f5f553c81b797b763fd4ccd8e57 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -9,12 +9,12 @@ psycopg3 -- PostgreSQL database adapter for Python
 import re
 import os
 import subprocess as sp
-from setuptools import setup, find_packages, Extension  # type: ignore
-from distutils.command.build_ext import build_ext  # type: ignore
+from setuptools import setup, find_packages, Extension
+from distutils.command.build_ext import build_ext
 from distutils import log
 
 try:
-    from Cython.Build import cythonize  # type: ignore
+    from Cython.Build import cythonize
 except ImportError:
     cythonize = None
 
@@ -44,7 +44,7 @@ Topic :: Software Development :: Libraries :: Python Modules
 """
 
 
-class our_build_ext(build_ext):  # type: ignore
+class our_build_ext(build_ext):
     def finalize_options(self) -> None:
         self._setup_ext_build()
         super().finalize_options()
@@ -56,9 +56,7 @@ class our_build_ext(build_ext):  # type: ignore
         try:
             from Cython.Build import cythonize
         except ImportError:
-            log.warn(
-                "Cython is not available: the C module will not be built", ()
-            )
+            log.warn("Cython is not available: the C module will not be built")
             return
 
         try:
diff --git a/tox.ini b/tox.ini
index cb0d47a6cb22da61f0eb3199e3a41ce7ccc2439a..80d9b1e1374b498839b10c2578f9702337bfa49f 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -24,7 +24,7 @@ exclude = env, .tox, .eggs
 ignore = W503, E203
 
 [mypy]
-files = psycopg3, setup.py
+files = psycopg3
 warn_unused_ignores = True
 strict = True