Commits

Tarek Ziadé committed 1ba757b Merge

Merged in magopian/flake8/test-suite-in-setup-py (pull request #23)

Comments (0)

Files changed (1)

 
 ispy3 = sys.version_info[0] == 3
 
+kwargs = {}
 if ispy3:
     from distutils.core import setup    # NOQA
 else:
     try:
         from setuptools import setup    # NOQA
+        kwargs = {
+            'tests_require': ['nose'],
+            'test_suite': 'nose.collector',
+        }
     except ImportError:
         from distutils.core import setup   # NOQA
 
         "Programming Language :: Python",
         "Topic :: Software Development",
         "Topic :: Utilities",
-        ])
+        ],
+    **kwargs)