forked from myth/pepper8
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
55 lines (46 loc) · 1.3 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
# -*- coding: utf-8
import os
import sys
from pepper8.main import VERSION
__version__ = VERSION
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
# Allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
with open('README.rst') as r:
readme = r.read()
# Dependencies
requires = [
'Jinja2>=2.7',
]
setup(
name='pepper8',
version=__version__,
description='Transforms pep8 or flake8 output into an HTML report.',
long_description=readme,
author="Aleksander 'myth' Skraastad'",
author_email='myth@overflow.no',
packages=['pepper8'],
license='MIT License',
install_requires=requires,
url='https://github.com/myth/pepper8',
package_data={
'pepper8': ['templates/*.html']
},
classifiers=[
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
'Natural Language :: English',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
],
entry_points={
'console_scripts': ['pepper8 = pepper8.main:main']
}
)