fix syntax error

This commit is contained in:
Robert Kaussow 2020-04-05 23:19:07 +02:00
parent 12aaab20d7
commit 60da3d818c

View File

@ -15,7 +15,8 @@ def get_property(prop, project):
current_dir = os.path.dirname(os.path.realpath(__file__)) current_dir = os.path.dirname(os.path.realpath(__file__))
result = re.search( result = re.search(
r'{}\s*=\s*[\'"]([^\'"]*)[\'"]'.format(prop), r'{}\s*=\s*[\'"]([^\'"]*)[\'"]'.format(prop),
open(os.path.join(current_dir, project, "__init__.py")).read()) open(os.path.join(current_dir, project, "__init__.py")).read()
)
return result.group(1) return result.group(1)
@ -33,7 +34,7 @@ setup(
keywords="ansible role documentation", keywords="ansible role documentation",
author=get_property("__author__", PACKAGE_NAME), author=get_property("__author__", PACKAGE_NAME),
author_email=get_property("__email__", PACKAGE_NAME), author_email=get_property("__email__", PACKAGE_NAME),
url=get_property("__url__", PACKAGE_NAME) url=get_property("__url__", PACKAGE_NAME),
license=get_property("__license__", PACKAGE_NAME), license=get_property("__license__", PACKAGE_NAME),
long_description=get_readme(), long_description=get_readme(),
long_description_content_type="text/markdown", long_description_content_type="text/markdown",
@ -60,21 +61,9 @@ setup(
"Topic :: Software Development :: Documentation", "Topic :: Software Development :: Documentation",
], ],
install_requires=[ install_requires=[
"ruamel.yaml", "ruamel.yaml", "appdirs", "colorama", "anyconfig", "pathspec", "python-json-logger",
"appdirs", "jsonschema", "jinja2", "environs", "nested-lookup"
"colorama",
"anyconfig",
"pathspec",
"python-json-logger",
"jsonschema",
"jinja2",
"environs",
"nested-lookup"
], ],
entry_points={ entry_points={"console_scripts": ["ansible-doctor = ansibledoctor.__main__:main"]},
"console_scripts": [
"ansible-doctor = ansibledoctor.__main__:main"
]
},
test_suite="tests" test_suite="tests"
) )