forked from gforcada/flake8-isort
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
71 lines (63 loc) · 2.14 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# -*- coding: utf-8 -*-
from setuptools import setup
import re
def get_version(file="flake8_isort.py"):
with open(file) as f:
for line in f:
m = re.match(r"^__version__ = '(?P<version>.*?)'$", line)
if m:
return m.group('version')
short_description = 'flake8 plugin that integrates isort .'
long_description = '{0}\n{1}'.format(
open('README.rst').read(),
open('CHANGES.rst').read(),
)
setup(
name='flake8-isort',
version=get_version(),
description=short_description,
long_description=long_description,
# Get more from http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Framework :: Flake8',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development',
'Topic :: Software Development :: Quality Assurance',
],
keywords='pep8 flake8 isort imports',
author='Gil Forcada',
author_email='gil.gnome@gmail.com',
url='https://github.com/gforcada/flake8-isort',
license='GPL version 2',
py_modules=['flake8_isort', ],
include_package_data=True,
test_suite='run_tests',
zip_safe=False,
install_requires=[
'flake8 >= 3.2.1',
'isort[pyproject] >= 4.3.5',
'testfixtures',
],
extras_require={
'test': [
'pytest',
],
},
entry_points={
'flake8.extension': ['I00 = flake8_isort:Flake8Isort', ],
},
)