forked from plastex/plastex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
95 lines (91 loc) · 3.93 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
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/usr/bin/env python3
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open("README.md", "r") as fh:
long_description = fh.read()
templates = ['*.html','*.htm','*.xml','*.zpt','*.zpts','*.jinja2','*.jinja2s']
images = ['*.gif','*.png','*.jpg','*.jpeg','*.js','*.htc','*.svg']
styles = ['*.css']
javascript = ['*.js']
setup(name="plasTeX",
description="LaTeX document processing framework",
long_description = long_description,
long_description_content_type="text/markdown",
version="2.1",
author="Kevin D. Smith",
author_email="[email protected]",
url="https://github.com/plastex/plastex",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.5',
packages = [
'plasTeX',
'plasTeX.Base',
'plasTeX.Base.LaTeX',
'plasTeX.Base.TeX',
'plasTeX.DOM',
'plasTeX.Imagers',
'plasTeX.Packages',
'plasTeX.Renderers',
'plasTeX.Renderers.XHTML',
'plasTeX.Renderers.XHTML.Themes',
'plasTeX.Renderers.XHTML.Themes.default',
'plasTeX.Renderers.XHTML.Themes.default.icons',
'plasTeX.Renderers.XHTML.Themes.default.styles',
'plasTeX.Renderers.XHTML.Themes.python',
'plasTeX.Renderers.XHTML.Themes.python.icons',
'plasTeX.Renderers.XHTML.Themes.plain',
'plasTeX.Renderers.XHTML.Themes.minimal',
'plasTeX.Renderers.HTML5',
'plasTeX.Renderers.HTML5.Themes',
'plasTeX.Renderers.HTML5.Themes.default',
'plasTeX.Renderers.HTML5.Themes.minimal',
'plasTeX.Renderers.HTML5.Themes.default.styles',
'plasTeX.Renderers.HTML5.Themes.default.js',
'plasTeX.Renderers.DocBook',
'plasTeX.Renderers.DocBook.Themes',
'plasTeX.Renderers.DocBook.Themes.default',
'plasTeX.Renderers.DocBook.Themes.book',
'plasTeX.Renderers.DocBook.Themes.article',
'plasTeX.Renderers.ManPage',
'plasTeX.Renderers.Text',
'plasTeX.Renderers.PageTemplate',
'plasTeX.Renderers.PageTemplate.simpletal',
'plasTeX.Renderers.S5',
'plasTeX.Renderers.S5.Themes',
'plasTeX.Renderers.S5.Themes.default',
'plasTeX.Renderers.S5.Themes.default.ui',
'plasTeX.Renderers.S5.Themes.default.ui.default',
],
package_data = {
'plasTeX': ['*.xml', 'plasTeXrc'],
'plasTeX.Base.LaTeX': ['*.xml','*.txt'],
'plasTeX.Renderers.DocBook': templates,
'plasTeX.Renderers.DocBook.Themes.default': templates,
'plasTeX.Renderers.DocBook.Themes.book': templates,
'plasTeX.Renderers.DocBook.Themes.article': templates,
'plasTeX.Renderers.XHTML': templates,
'plasTeX.Renderers.XHTML.Themes.default': templates,
'plasTeX.Renderers.XHTML.Themes.default.icons': images,
'plasTeX.Renderers.XHTML.Themes.default.styles': styles,
'plasTeX.Renderers.XHTML.Themes.minimal': templates,
'plasTeX.Renderers.XHTML.Themes.python': templates+styles,
'plasTeX.Renderers.XHTML.Themes.python.icons': images,
'plasTeX.Renderers.XHTML.Themes.plain': templates,
'plasTeX.Renderers.HTML5': templates,
'plasTeX.Renderers.HTML5.Themes.default': templates+images,
'plasTeX.Renderers.HTML5.Themes.minimal': templates,
'plasTeX.Renderers.HTML5.Themes.default.styles': styles,
'plasTeX.Renderers.HTML5.Themes.default.js': javascript,
'plasTeX.Renderers.S5': templates,
'plasTeX.Renderers.S5.Themes.default': templates,
'plasTeX.Renderers.S5.Themes.default.ui.default': templates+styles+images,
},
scripts=['plasTeX/plastex'],
install_requires=['Jinja2>=2.10.1', 'Unidecode>=0.4.21', 'Pillow>=7', 'typing-extensions>=3.7']
)