lark/setup.py

74 lines
2.2 KiB
Python
Raw Normal View History

2020-05-14 18:36:55 +00:00
try:
import regex as re
except ImportError:
import re
2020-02-15 04:08:58 +00:00
from setuptools import find_packages, setup
2017-02-11 09:12:15 +00:00
__version__ ,= re.findall('__version__ = "(.*)"', open('lark/__init__.py').read())
setup(
name = "lark-parser",
version = __version__,
2020-04-18 12:23:23 +00:00
packages = ['lark', 'lark.parsers', 'lark.tools', 'lark.grammars', 'lark-stubs'],
2017-02-11 09:12:15 +00:00
requires = [],
install_requires = [],
2020-06-26 15:27:43 +00:00
extras_require = {
"regex": ["regex"]
},
2020-04-18 12:23:23 +00:00
package_data = {'': ['*.md', '*.lark'], 'lark-stubs': ['*.pyi']},
2017-02-11 09:12:15 +00:00
test_suite = 'tests.__main__',
2017-02-11 09:12:15 +00:00
# metadata for upload to PyPI
author = "Erez Shinan",
author_email = "erezshin@gmail.com",
description = "a modern parsing library",
license = "MIT",
keywords = "Earley LALR parser parsing ast",
url = "https://github.com/erezsh/lark",
download_url = "https://github.com/erezsh/lark/tarball/master",
long_description='''
Lark is a modern general-purpose parsing library for Python.
With Lark, you can parse any context-free grammar, efficiently, with very little code.
Main Features:
- Builds a parse-tree (AST) automagically, based on the structure of the grammar
- Earley parser
- Can parse all context-free grammars
- Full support for ambiguous grammars
- LALR(1) parser
- Fast and light, competitive with PLY
- Can generate a stand-alone parser
- CYK parser, for highly ambiguous grammars
- EBNF grammar
- Unicode fully supported
- Python 2 & 3 compatible
- Automatic line & column tracking
- Standard library of terminals (strings, numbers, names, etc.)
- Import grammars from Nearley.js
- Extensive test suite
- And much more!
2017-02-11 09:12:15 +00:00
''',
classifiers=[
"Development Status :: 5 - Production/Stable",
2017-02-11 09:12:15 +00:00
"Intended Audience :: Developers",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: General",
"Topic :: Text Processing :: Linguistic",
2017-02-11 09:12:15 +00:00
"License :: OSI Approved :: MIT License",
],
entry_points = {
'pyinstaller40': [
'hook-dirs = lark.__pyinstaller:get_hook_dirs'
]
},
2017-02-11 09:12:15 +00:00
)