mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-10 06:44:18 +00:00
Merged in magopian/flake8/test-suite-in-setup-py (pull request #23)
This commit is contained in:
commit
ea52243634
1 changed files with 7 additions and 1 deletions
8
setup.py
8
setup.py
|
|
@ -2,11 +2,16 @@ import sys
|
||||||
|
|
||||||
ispy3 = sys.version_info[0] == 3
|
ispy3 = sys.version_info[0] == 3
|
||||||
|
|
||||||
|
kwargs = {}
|
||||||
if ispy3:
|
if ispy3:
|
||||||
from distutils.core import setup # NOQA
|
from distutils.core import setup # NOQA
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
from setuptools import setup # NOQA
|
from setuptools import setup # NOQA
|
||||||
|
kwargs = {
|
||||||
|
'tests_require': ['nose'],
|
||||||
|
'test_suite': 'nose.collector',
|
||||||
|
}
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from distutils.core import setup # NOQA
|
from distutils.core import setup # NOQA
|
||||||
|
|
||||||
|
|
@ -32,4 +37,5 @@ setup(
|
||||||
"Programming Language :: Python",
|
"Programming Language :: Python",
|
||||||
"Topic :: Software Development",
|
"Topic :: Software Development",
|
||||||
"Topic :: Utilities",
|
"Topic :: Utilities",
|
||||||
])
|
],
|
||||||
|
**kwargs)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue