Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
77 lines (66 loc) · 2.08 KB

File metadata and controls

77 lines (66 loc) · 2.08 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import os
import re
import sys
from setuptools import setup
# To register onto Pypi :
# python setup.py sdist bdist_wheel upload
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"
)
def get_version(pkg):
path = os.path.join(os.path.dirname(__file__), pkg, "__init__.py")
if sys.version_info >= (3, 0):
fh = open(path, encoding="utf-8") # required to read utf-8 file on windows
else:
fh = open(path) # encoding parameter does not exist in python 2
with fh:
m = re.search(r'^__version__\s*=\s*[\'"]([^\'"]+)[\'"]', fh.read(), re.M)
if m:
return m.group(1)
raise RuntimeError("Unable to find __version__ string in %s." % path)
setup(
name="docxtpl",
version=get_version("docxtpl"),
description="Python docx template engine",
long_description=long_description,
long_description_content_type="text/x-rst",
classifiers=[
"Intended Audience :: Developers",
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
],
keywords="jinja2",
url="https://github.com/elapouya/python-docx-template",
author="Eric Lapouyade",
license="LGPL-2.1-only",
license_files=[],
packages=["docxtpl"],
install_requires=["python-docx>=1.1.1", "jinja2", "lxml"],
extras_require={"docs": ["Sphinx", "sphinxcontrib-napoleon"], "subdoc": ["docxcompose"]},
eager_resources=["docs"],
zip_safe=False,
)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.