-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsetup.py
66 lines (56 loc) · 1.96 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
# -*- coding: utf-8 -*-
import codecs
import os
from setuptools import setup
def get_version():
with open('flake8_future_import.py') as f:
for line in f:
if line.startswith('__version__'):
return eval(line.split('=')[-1])
def get_long_description():
with codecs.open('README.rst', 'r', 'utf-8') as f:
return f.read()
# Install flake8 if that is set as we are going to test with flake8 as well
if os.environ.get('TEST_FLAKE8_INSTALL') == '1':
tests_require = ['flake8']
else:
tests_require = []
tests_require += ['six']
setup(
name='flake8-future-import',
version=get_version(),
description='__future__ import checker, plugin for flake8',
long_description=get_long_description(),
keywords='flake8 import future',
install_requires=['flake8'],
author='Fabian Neundorf',
author_email='[email protected]',
url='https://github.com/xZise/flake8-future-import',
license='MIT License',
py_modules=['flake8_future_import'],
zip_safe=False,
entry_points={
'flake8.extension': [
'FI = flake8_future_import:FutureImportChecker',
],
},
tests_require=tests_require,
test_suite='test_flake8_future_import',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Framework :: Flake8',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Quality Assurance',
],
)