mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-05 12:36:54 +00:00
Merge from the flake8 trunk
This commit is contained in:
commit
4a7b381fc0
5 changed files with 825 additions and 573 deletions
17
setup.py
17
setup.py
|
|
@ -1,14 +1,19 @@
|
|||
import sys
|
||||
|
||||
ispy3 = sys.version_info[0] == 3
|
||||
issetuptools = False
|
||||
|
||||
kwargs = {}
|
||||
if ispy3:
|
||||
from distutils.core import setup # NOQA
|
||||
else:
|
||||
try:
|
||||
from setuptools import setup # NOQA
|
||||
issetuptools = True
|
||||
kwargs = {
|
||||
'entry_points':
|
||||
{'distutils.commands': ['flake8 = flake8.run:Flake8Command']},
|
||||
'tests_require': ['nose'],
|
||||
'test_suite': 'nose.collector'
|
||||
}
|
||||
except ImportError:
|
||||
from distutils.core import setup # NOQA
|
||||
|
||||
|
|
@ -16,10 +21,6 @@ from flake8 import __version__
|
|||
|
||||
README = open('README').read()
|
||||
|
||||
entry_points = {}
|
||||
if issetuptools:
|
||||
entry_points["distutils.commands"] = ["flake8 = flake8.run:Flake8Command"]
|
||||
|
||||
setup(
|
||||
name="flake8",
|
||||
license="MIT",
|
||||
|
|
@ -30,7 +31,6 @@ setup(
|
|||
url="http://bitbucket.org/tarek/flake8",
|
||||
packages=["flake8", "flake8.tests"],
|
||||
scripts=["flake8/flake8"],
|
||||
entry_points=entry_points,
|
||||
long_description=README,
|
||||
classifiers=[
|
||||
"Environment :: Console",
|
||||
|
|
@ -39,4 +39,5 @@ setup(
|
|||
"Programming Language :: Python",
|
||||
"Topic :: Software Development",
|
||||
"Topic :: Utilities",
|
||||
])
|
||||
],
|
||||
**kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue