mirror of
https://github.com/daknuett/licor
synced 2024-07-20 12:15:24 +00:00
fixed setup.py
This commit is contained in:
parent
9e57e20449
commit
2430c79f9a
|
@ -100,7 +100,7 @@ def get_template_meta(name, modifiers = []):
|
||||||
get_template_meta("AGPL", modifiers = ["single-file"])
|
get_template_meta("AGPL", modifiers = ["single-file"])
|
||||||
"""
|
"""
|
||||||
|
|
||||||
templates_avail = json.loads(get_resource_string("licenses_avail.json"))
|
templates_avail = get_templates_available()
|
||||||
|
|
||||||
if( not name in templates_avail):
|
if( not name in templates_avail):
|
||||||
raise TemplateException("Unknown license: {}".format(name))
|
raise TemplateException("Unknown license: {}".format(name))
|
||||||
|
@ -117,7 +117,7 @@ def get_template_meta(name, modifiers = []):
|
||||||
else:
|
else:
|
||||||
meta_name = ".".join((name, "meta"))
|
meta_name = ".".join((name, "meta"))
|
||||||
try:
|
try:
|
||||||
meta = json.loads(get_resource_string(meta_name, True))
|
meta = json.loads(get_resource_string(meta_name, False))
|
||||||
except:
|
except:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -4,7 +4,7 @@ setup(
|
||||||
name = "licor",
|
name = "licor",
|
||||||
version = "0.0.1",
|
version = "0.0.1",
|
||||||
packages = find_packages(),
|
packages = find_packages(),
|
||||||
package_data = {"licor": ["templates/*"]},
|
package_data = {"licor": ["templates/*", "templates/*/*"]},
|
||||||
author = "Daniel Knüttel",
|
author = "Daniel Knüttel",
|
||||||
author_email = "daniel.knuettel@daknuett.eu",
|
author_email = "daniel.knuettel@daknuett.eu",
|
||||||
install_requires = ["docopt"],
|
install_requires = ["docopt"],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user