-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
78 lines (73 loc) · 2.32 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# -*- coding: utf-8 -*-
# Copyright (C) 2017 by Juancarlo Añez
# Copyright (C) 2012-2016 by Juancarlo Añez and Thomas Bragg
import sys
import io
import setuptools
import grako
SHORT_DESCRIPTION = (
'{toolname} takes a grammar'
' in a variation of EBNF as input, and outputs a memoizing'
' PEG/Packrat parser in Python.'
).format(toolname=grako.__toolname__)
try:
from Cython.Build import cythonize
except ImportError:
CYTHON = False
else:
CYTHON = 'bdist_wheel' not in sys.argv
setuptools.setup(
zip_safe=False,
name='grako',
version=grako.__version__,
url='https://bitbucket.org/neogeny/{package}'.format(
package=grako.__toolname__.lower(),
),
author='Juancarlo Añez',
author_email='apalala@gmail.com',
description=SHORT_DESCRIPTION,
long_description=io.open('README.rst', encoding='utf-8').read(),
license='BSD License',
packages=setuptools.find_packages(),
include_package_data=True,
entry_points={
'console_scripts': [
'grako = grako:main'
]
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Environment :: Console',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: PyPy',
'Programming Language :: Cython',
'Topic :: Software Development :: Code Generators',
'Topic :: Software Development :: Compilers',
'Topic :: Software Development :: Interpreters',
'Topic :: Text Processing :: General'
],
install_requires=[],
setup_requires=['pytest-runner'],
tests_require=['pytest'],
extras_require={
'future-regex': ['regex']
},
ext_modules=cythonize(
"grako/**/*.py",
exclude=[
'grako/__main__.py',
'grako/__init__.py',
'grako/codegen/__init__.py',
'grako/test/__main__.py',
'grako/test/*.py'
]
) if CYTHON else [],
)