-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
48 lines (43 loc) · 1.96 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
"""Setup script for setuptools-antlr."""
import sys
import setuptools
# need to guard script here due to reentrance while testing multiprocessing:
if __name__ == '__main__':
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner_opt = ['pytest-runner>=2.0,<3dev'] if needs_pytest else []
needs_pylint = {'lint'}.intersection(sys.argv)
setuptools_lint_opt = ['setuptools-lint>=0.4,<0.5dev'] if needs_pylint else []
needs_flake8 = {'flake8'}.intersection(sys.argv)
flake8_opt = ['flake8>=2.0,<3dev', 'flake8-import-order>=0.9,<0.10dev',
'flake8-todo>=0.5,<0.6dev', 'pep8-naming>=0.3,<0.4dev'] if needs_flake8 else []
setuptools.setup(
name='setuptools-antlr',
version='0.4.0',
packages=setuptools.find_packages(),
package_data={'setuptools_antlr': ['lib/antlr-4.7.1-complete.jar', 'lib/LICENSE.txt']},
entry_points={
'distutils.commands': [
'antlr = setuptools_antlr.command:AntlrCommand'
]
},
python_requires='>=3.5',
tests_require=['pytest>=3.6'],
setup_requires=pytest_runner_opt + setuptools_lint_opt + flake8_opt,
url='https://github.com/ferraith/setuptools-antlr',
license='MIT',
author='Andreas Schmidl',
author_email='Andreas.Schmidl@gmail.com',
description='Setuptools command for generating ANTLR based parsers.',
long_description=open('README.rst').read(),
platforms=['any'],
keywords='antlr setuptools dsl',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Software Development',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
]
)