-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.py
54 lines (45 loc) · 1.58 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
#!/usr/bin/env python
import sys
from setuptools import setup
if sys.version_info < (3, 8, 0):
sys.stderr.write("ERROR: You need Python 3.8 or later to use com2ann.\n")
exit(1)
version = '0.3.0'
description = 'Tool to translate type comments to annotations.'
long_description = '''
com2ann
=======
Tool for translation of type comments to type annotations in Python.
This tool requires Python 3.8 to run. But the supported target code version
is Python 3.4+ (can be specified with ``--python-minor-version``).
Currently, the tool translates function and assignment type comments to
type annotations.
The philosophy of of the tool is too minimally invasive, and preserve original
formatting as much as possible. This is why the tool doesn't use un-parse.
'''.lstrip()
classifiers = [
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.8',
'Topic :: Software Development',
]
setup(
name='com2ann',
version=version,
description=description,
long_description=long_description,
author='Ivan Levkivskyi',
author_email='[email protected]',
url='https://github.com/ilevkivskyi/com2ann',
license='MIT',
keywords='typing function annotations type hints '
'type comments variable annotations',
python_requires=">=3.8",
package_dir={'': 'src'},
py_modules=['com2ann'],
entry_points={'console_scripts': ['com2ann=com2ann:main']},
classifiers=classifiers,
)