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.

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