-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
59 lines (57 loc) · 1.74 KB
/
setup.py
File metadata and controls
59 lines (57 loc) · 1.74 KB
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
# -*- coding: utf-8 -*-
import io
import setuptools
import grako
try:
from Cython.Build import cythonize
except ImportError:
CYTHON = False
else:
CYTHON = True
setuptools.setup(
zip_safe=False,
name='grako',
version=grako.__version__,
url='http://bitbucket.org/apalala/grako',
author='Juancarlo Añez',
author_email='apalala@gmail.com',
description='A generator of PEG/Packrat parsers from EBNF grammars.',
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 :: Implementation :: PyPy',
'Topic :: Software Development :: Code Generators',
'Topic :: Software Development :: Compilers',
'Topic :: Software Development :: Interpreters',
'Topic :: Text Processing :: General'
],
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 [],
)