-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
executable file
·47 lines (40 loc) · 1.7 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
#!/usr/bin/env python3
"""Setup for pyformat."""
import ast
from setuptools import setup
def version():
"""Return version string."""
with open('pyformat.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='pyformat',
version=version(),
description='Formats Python code to follow a consistent style.',
long_description=readme.read(),
license='Expat License',
author='Steven Myint',
url='https://github.com/myint/pyformat',
classifiers=[
'Intended Audience :: Developers',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Quality Assurance'],
keywords='beautify, code, format, formatter, reformat, style',
py_modules=['pyformat'],
zip_safe=False,
install_requires=['autoflake>=0.6.6',
'autopep8>=1.2.2',
'docformatter==0.7',
'unify>=0.2'],
entry_points={
'console_scripts': ['pyformat = pyformat:main']},
test_suite='test_pyformat')