-
Notifications
You must be signed in to change notification settings - Fork 25
/
setup.py
executable file
·42 lines (35 loc) · 1.28 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
#!/usr/bin/env python
"""Setup for eradicate."""
from __future__ import unicode_literals
import ast
from setuptools import setup
def version():
"""Return version string."""
with open('eradicate.py') as input_file:
for line in input_file:
if line.startswith('__version__'):
return ast.parse(line).body[0].value.s
with open('README.rst') as readme:
setup(
name='eradicate',
version=version(),
description='Removes commented-out code.',
long_description=readme.read(),
license='Expat License',
author='Steven Myint',
maintainer='Nikita Sobolev <[email protected]>',
url='https://github.com/pycqa/eradicate',
classifiers=['Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Quality Assurance'],
keywords='clean, format, commented-out code',
py_modules=['eradicate'],
entry_points={
'console_scripts': [
'eradicate = eradicate:main',
],
},
)