2023-03-04 05:18:15 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
2023-03-07 22:17:14 +01:00
|
|
|
""" Initialize Plugin """
|
2023-02-05 01:10:09 +01:00
|
|
|
import ast
|
|
|
|
import io
|
|
|
|
import re
|
|
|
|
|
|
|
|
from setuptools import setup, find_packages
|
|
|
|
|
|
|
|
with io.open('README.md', 'rt', encoding="utf8") as f:
|
|
|
|
readme = f.read()
|
|
|
|
|
|
|
|
_description_re = re.compile(r'description\s+=\s+(?P<description>.*)')
|
|
|
|
|
2023-03-07 22:17:14 +01:00
|
|
|
with open('lektor_render_template.py', 'rb') as readfile:
|
|
|
|
DESCRIPTION = str(ast.literal_eval(_description_re.search(
|
|
|
|
readfile.read().decode('utf-8')).group(1)))
|
2023-02-05 01:10:09 +01:00
|
|
|
|
|
|
|
setup(
|
|
|
|
author='l3d',
|
|
|
|
author_email='l3d@c3woc.de',
|
2023-03-07 22:17:14 +01:00
|
|
|
description=DESCRIPTION,
|
2023-02-05 01:10:09 +01:00
|
|
|
keywords='Lektor plugin',
|
|
|
|
license='MIT',
|
|
|
|
long_description=readme,
|
|
|
|
long_description_content_type='text/markdown',
|
|
|
|
name='lektor-render-template',
|
|
|
|
packages=find_packages(),
|
|
|
|
py_modules=['lektor_render_template'],
|
2023-03-21 19:36:28 +01:00
|
|
|
url='https://backwesen.de/l3d/lektor-render-template.git',
|
2023-03-22 00:52:11 +01:00
|
|
|
version='0.7',
|
2023-02-05 01:10:09 +01:00
|
|
|
classifiers=[
|
|
|
|
'Framework :: Lektor',
|
|
|
|
'Environment :: Plugins',
|
|
|
|
],
|
|
|
|
entry_points={
|
|
|
|
'lektor.plugins': [
|
|
|
|
'render-template = lektor_render_template:RenderTemplatePlugin',
|
|
|
|
]
|
2023-03-10 04:19:29 +01:00
|
|
|
},
|
|
|
|
install_requires=['scour']
|
2023-02-05 01:10:09 +01:00
|
|
|
)
|