forked from brechtm/rinohtype
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·96 lines (85 loc) · 3.2 KB
/
Copy pathsetup.py
File metadata and controls
executable file
·96 lines (85 loc) · 3.2 KB
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
96
#!/usr/bin/env python
"""
Setup script for rinohtype
"""
import sys
from setuptools import setup, find_packages
if sys.version_info < (3, 3):
print('rinohtype requires Python 3.3 or higher')
sys.exit(1)
def long_description():
import os
base_path = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(base_path, 'README.rst')) as readme:
result = readme.read()
result += '\n\n'
with open(os.path.join(base_path, 'CHANGES.rst')) as changes:
result += changes.read()
return result
setup(
name='rinohtype',
version='0.3.1.dev',
packages=find_packages('src'),
package_dir={'': 'src'},
include_package_data=True,
python_requires='>= 3.3',
install_requires=['setuptools', 'pip', 'docutils', 'purepng>=0.2.0',
'recommonmark',
'rinoh-typeface-texgyrecursor>=0.1.1',
'rinoh-typeface-texgyreheros>=0.1.1',
'rinoh-typeface-texgyrepagella>=0.1.1',
'rinoh-typeface-dejavuserif'],
extras_require = {'bitmap': ['Pillow']},
entry_points={
'console_scripts': [
'rinoh = rinoh.tool:main',
],
'rinoh.frontends': [
'CommonMark = rinoh.frontend.commonmark:CommonMarkReader',
'reStructuredText = rinoh.frontend.rst:ReStructuredTextReader',
],
'rinoh.templates': [
'article = rinoh.templates:Article',
'book = rinoh.templates:Book',
],
'rinoh.stylesheets': [
'sphinx = rinoh.stylesheets:sphinx',
'sphinx_article = rinoh.stylesheets:sphinx_article',
'sphinx_base14 = rinoh.stylesheets:sphinx_base14',
],
'rinoh.typefaces': [
'courier = rinoh.fonts.adobe14:courier',
'helvetica = rinoh.fonts.adobe14:helvetica',
'symbol = rinoh.fonts.adobe14:symbol',
'times = rinoh.fonts.adobe14:times',
'itc zapfdingbats = rinoh.fonts.adobe14:zapfdingbats',
]
},
tests_require=['pytest>=2.0.0', 'pytest-assume'],
author='Brecht Machiels',
author_email='brecht@mos6581.org',
description='The Python document processor',
long_description=long_description(),
url='https://github.com/brechtm/rinohtype',
keywords='rst xml pdf opentype',
classifiers = [
'Environment :: Console',
'Environment :: Other Environment',
'Environment :: Web Environment',
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Printing',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing :: Fonts',
'Topic :: Text Processing :: Markup',
'Topic :: Text Processing :: Markup :: XML'
]
)