blob: 5fb28bcb407ac2c25c9d46807e0db0bf1ca170d5 [file] [log] [blame]
#!/usr/bin/env python
"""Setup for autoflake."""
import ast
import setuptools
def version():
"""Return version string."""
with open('autoflake.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:
setuptools.setup(
name='autoflake',
version=version(),
description='Removes unused imports.',
long_description=readme.read(),
license='Expat License',
author='Steven Myint',
url='https://github.com/myint/autoflake',
classifiers=['Intended Audience :: Developers',
'Environment :: Console',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License'],
keywords='clean,automatic,unused,import',
py_modules=['autoflake'],
scripts=['autoflake'],
install_requires=['pyflakes>=0.6.1'],
test_suite='test_autoflake')