forked from elapouya/python-docx-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
46 lines (41 loc) · 1.23 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
from setuptools import setup
import os
def read(*names):
values = dict()
for name in names:
filename = name + '.rst'
if os.path.isfile(filename):
fd = open(filename)
value = fd.read()
fd.close()
else:
value = ''
values[name] = value
return values
long_description = """
%(README)s
News
====
%(CHANGES)s
""" % read('README', 'CHANGES')
setup(name='docxtpl',
version='0.1.6',
description='Python docx template engine',
long_description=long_description,
classifiers=[
"Intended Audience :: Developers",
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
],
keywords='jinja2',
url='https://github.com/elapouya/python-docx-template',
author='Eric Lapouyade',
author_email='[email protected]',
license='LGPL 2.1',
packages=['docxtpl'],
install_requires=['six', 'Sphinx<1.3b', 'sphinxcontrib-napoleon', 'python-docx', 'jinja2', 'lxml'],
eager_resources=['docs'],
zip_safe=False)