mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-29 10:36:53 +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
|
||||
|
||||
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
|
||||
|
||||
|
|
@ -32,4 +37,5 @@ setup(
|
|||
"Programming Language :: Python",
|
||||
"Topic :: Software Development",
|
||||
"Topic :: Utilities",
|
||||
])
|
||||
],
|
||||
**kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue