pylinting setup.py
This commit is contained in:
parent
cb289f659b
commit
0cea6f3cfa
1 changed files with 5 additions and 4 deletions
9
setup.py
9
setup.py
|
@ -1,4 +1,5 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
""" Initialize Plugin """
|
||||||
import ast
|
import ast
|
||||||
import io
|
import io
|
||||||
import re
|
import re
|
||||||
|
@ -10,14 +11,14 @@ with io.open('README.md', 'rt', encoding="utf8") as f:
|
||||||
|
|
||||||
_description_re = re.compile(r'description\s+=\s+(?P<description>.*)')
|
_description_re = re.compile(r'description\s+=\s+(?P<description>.*)')
|
||||||
|
|
||||||
with open('lektor_render_template.py', 'rb') as f:
|
with open('lektor_render_template.py', 'rb') as readfile:
|
||||||
description = str(ast.literal_eval(_description_re.search(
|
DESCRIPTION = str(ast.literal_eval(_description_re.search(
|
||||||
f.read().decode('utf-8')).group(1)))
|
readfile.read().decode('utf-8')).group(1)))
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
author='l3d',
|
author='l3d',
|
||||||
author_email='l3d@c3woc.de',
|
author_email='l3d@c3woc.de',
|
||||||
description=description,
|
description=DESCRIPTION,
|
||||||
keywords='Lektor plugin',
|
keywords='Lektor plugin',
|
||||||
license='MIT',
|
license='MIT',
|
||||||
long_description=readme,
|
long_description=readme,
|
||||||
|
|
Loading…
Reference in a new issue