This repo contains code to mirror other repos. It also contains the code that is getting mirrored.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.2 KiB

  1. try:
  2. import regex as re
  3. except ImportError:
  4. import re
  5. from setuptools import find_packages, setup
  6. __version__ ,= re.findall('__version__ = "(.*)"', open('lark/__init__.py').read())
  7. setup(
  8. name = "lark-parser",
  9. version = __version__,
  10. packages = ['lark', 'lark.parsers', 'lark.tools', 'lark.grammars', 'lark.__pyinstaller', 'lark-stubs'],
  11. requires = [],
  12. install_requires = [],
  13. extras_require = {
  14. "regex": ["regex"]
  15. },
  16. package_data = {'': ['*.md', '*.lark'], 'lark-stubs': ['*.pyi']},
  17. test_suite = 'tests.__main__',
  18. # metadata for upload to PyPI
  19. author = "Erez Shinan",
  20. author_email = "erezshin@gmail.com",
  21. description = "a modern parsing library",
  22. license = "MIT",
  23. keywords = "Earley LALR parser parsing ast",
  24. url = "https://github.com/erezsh/lark",
  25. download_url = "https://github.com/erezsh/lark/tarball/master",
  26. long_description='''
  27. Lark is a modern general-purpose parsing library for Python.
  28. With Lark, you can parse any context-free grammar, efficiently, with very little code.
  29. Main Features:
  30. - Builds a parse-tree (AST) automagically, based on the structure of the grammar
  31. - Earley parser
  32. - Can parse all context-free grammars
  33. - Full support for ambiguous grammars
  34. - LALR(1) parser
  35. - Fast and light, competitive with PLY
  36. - Can generate a stand-alone parser
  37. - CYK parser, for highly ambiguous grammars
  38. - EBNF grammar
  39. - Unicode fully supported
  40. - Python 2 & 3 compatible
  41. - Automatic line & column tracking
  42. - Standard library of terminals (strings, numbers, names, etc.)
  43. - Import grammars from Nearley.js
  44. - Extensive test suite
  45. - And much more!
  46. ''',
  47. classifiers=[
  48. "Development Status :: 5 - Production/Stable",
  49. "Intended Audience :: Developers",
  50. "Programming Language :: Python :: 2.7",
  51. "Programming Language :: Python :: 3",
  52. "Topic :: Software Development :: Libraries :: Python Modules",
  53. "Topic :: Text Processing :: General",
  54. "Topic :: Text Processing :: Linguistic",
  55. "License :: OSI Approved :: MIT License",
  56. ],
  57. entry_points = {
  58. 'pyinstaller40': [
  59. 'hook-dirs = lark.__pyinstaller:get_hook_dirs'
  60. ]
  61. },
  62. )