__init__.py 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # coding: utf-8
  2. from __future__ import print_function, absolute_import, division, unicode_literals
  3. if False: # MYPY
  4. from typing import Dict, Any # NOQA
  5. _package_data = dict(
  6. full_package_name='ruamel.yaml',
  7. version_info=(0, 16, 13),
  8. __version__='0.16.13',
  9. author='Anthon van der Neut',
  10. author_email='a.van.der.neut@ruamel.eu',
  11. description='ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order', # NOQA
  12. entry_points=None,
  13. since=2014,
  14. extras_require={
  15. ':platform_python_implementation=="CPython" and python_version<="2.7"': ['ruamel.ordereddict'], # NOQA
  16. ':platform_python_implementation=="CPython" and python_version<"3.10"': ['ruamel.yaml.clib>=0.1.2'], # NOQA
  17. 'jinja2': ['ruamel.yaml.jinja2>=0.2'],
  18. 'docs': ['ryd'],
  19. },
  20. classifiers=[
  21. 'Programming Language :: Python :: 2.7',
  22. 'Programming Language :: Python :: 3.5',
  23. 'Programming Language :: Python :: 3.6',
  24. 'Programming Language :: Python :: 3.7',
  25. 'Programming Language :: Python :: 3.8',
  26. 'Programming Language :: Python :: Implementation :: CPython',
  27. 'Programming Language :: Python :: Implementation :: PyPy',
  28. 'Programming Language :: Python :: Implementation :: Jython',
  29. 'Topic :: Software Development :: Libraries :: Python Modules',
  30. 'Topic :: Text Processing :: Markup',
  31. 'Typing :: Typed',
  32. ],
  33. keywords='yaml 1.2 parser round-trip preserve quotes order config',
  34. read_the_docs='yaml',
  35. supported=[(2, 7), (3, 5)], # minimum
  36. tox=dict(
  37. env='*', # remove 'pn', no longer test narrow Python 2.7 for unicode patterns and PyPy
  38. deps='ruamel.std.pathlib',
  39. fl8excl='_test/lib',
  40. ),
  41. universal=True,
  42. rtfd='yaml',
  43. ) # type: Dict[Any, Any]
  44. version_info = _package_data['version_info']
  45. __version__ = _package_data['__version__']
  46. try:
  47. from .cyaml import * # NOQA
  48. __with_libyaml__ = True
  49. except (ImportError, ValueError): # for Jython
  50. __with_libyaml__ = False
  51. from ruamel.yaml.main import * # NOQA