pylinting setup.py

This commit is contained in:
L3D 2023-03-07 22:17:14 +01:00
parent cb289f659b
commit 0cea6f3cfa
Signed by: l3d
GPG key ID: CD08445BFF4313D1

View file

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
""" Initialize Plugin """
import ast
import io
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>.*)')
with open('lektor_render_template.py', 'rb') as f:
description = str(ast.literal_eval(_description_re.search(
f.read().decode('utf-8')).group(1)))
with open('lektor_render_template.py', 'rb') as readfile:
DESCRIPTION = str(ast.literal_eval(_description_re.search(
readfile.read().decode('utf-8')).group(1)))
setup(
author='l3d',
author_email='l3d@c3woc.de',
description=description,
description=DESCRIPTION,
keywords='Lektor plugin',
license='MIT',
long_description=readme,