diff options
Diffstat (limited to '__init__.py')
-rw-r--r-- | __init__.py | 70 |
1 files changed, 39 insertions, 31 deletions
diff --git a/__init__.py b/__init__.py index e5363cc..c675a8e 100644 --- a/__init__.py +++ b/__init__.py @@ -7,24 +7,33 @@ if False: # MYPY _package_data = dict( full_package_name='ruamel.yaml', - version_info=(0, 15, 47), - __version__='0.15.47', + version_info=(0, 15, 48), + __version__='0.15.48', author='Anthon van der Neut', author_email='a.van.der.neut@ruamel.eu', description='ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order', # NOQA entry_points=None, since=2014, - extras_require={':platform_python_implementation=="CPython" and python_version<="2.7"': [ - 'ruamel.ordereddict', - ], 'jinja2': ['ruamel.yaml.jinja2>=0.2'], 'docs': ['ryd']}, - ext_modules=[dict( + extras_require={ + ':platform_python_implementation=="CPython" and python_version<="2.7"': [ + 'ruamel.ordereddict' + ], + 'jinja2': ['ruamel.yaml.jinja2>=0.2'], + 'docs': ['ryd'], + }, + ext_modules=[ + dict( name='_ruamel_yaml', - src=['ext/_ruamel_yaml.c', 'ext/api.c', 'ext/writer.c', 'ext/dumper.c', - 'ext/loader.c', - 'ext/reader.c', - 'ext/scanner.c', - 'ext/parser.c', - 'ext/emitter.c', + src=[ + 'ext/_ruamel_yaml.c', + 'ext/api.c', + 'ext/writer.c', + 'ext/dumper.c', + 'ext/loader.c', + 'ext/reader.c', + 'ext/scanner.c', + 'ext/parser.c', + 'ext/emitter.c', ], lib=[], test=""" @@ -34,20 +43,21 @@ _package_data = dict( return 0; } """, - )], - # NOQA - # test='#include "ext/yaml.h"\n\nint main(int argc, char* argv[])\n{\nyaml_parser_t parser;\nparser = parser; /* prevent warning */\nreturn 0;\n}\n', # NOQA + ) + ], + # NOQA + # test='#include "ext/yaml.h"\n\nint main(int argc, char* argv[])\n{\nyaml_parser_t parser;\nparser = parser; /* prevent warning */\nreturn 0;\n}\n', # NOQA classifiers=[ - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: Implementation :: CPython', - 'Programming Language :: Python :: Implementation :: PyPy', - 'Programming Language :: Python :: Implementation :: Jython', - 'Topic :: Software Development :: Libraries :: Python Modules', - 'Topic :: Text Processing :: Markup', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: Implementation :: CPython', + 'Programming Language :: Python :: Implementation :: PyPy', + 'Programming Language :: Python :: Implementation :: Jython', + 'Topic :: Software Development :: Libraries :: Python Modules', + 'Topic :: Text Processing :: Markup', ], keywords='yaml 1.2 parser round-trip preserve quotes order config', windows_wheels=True, @@ -55,12 +65,9 @@ _package_data = dict( many_linux='libyaml-devel', supported=[(2, 7), (3, 4)], # minimum tox=dict( - flake8=dict( - version='==2.5.5', - ), - env='*pn', # also test narrow 2.7.15 - deps='ruamel.std.pathlib', - fl8excl='_test/lib', + env=u'*pn', # also test narrow 2.7.15 + deps=u'ruamel.std.pathlib', + fl8excl=u'_test/lib', ), rtfd=47359, ) # type: Dict[Any, Any] @@ -71,6 +78,7 @@ __version__ = _package_data['__version__'] try: from .cyaml import * # NOQA + __with_libyaml__ = True except (ImportError, ValueError): # for Jython __with_libyaml__ = False |