forked from blockdiag/blockdiag
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
116 lines (104 loc) · 3.72 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# -*- coding: utf-8 -*-
import os
from setuptools import find_packages, setup
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Software Development",
"Topic :: Software Development :: Documentation",
"Topic :: Text Processing :: Markup",
]
def get_version():
"""Get version number of the package from version.py without importing core module."""
package_dir = os.path.abspath(os.path.dirname(__file__))
version_file = os.path.join(package_dir, 'src/blockdiag/__init__.py')
namespace = {}
with open(version_file, 'r') as f:
exec(f.read(), namespace)
return namespace['__version__']
setup(
name='blockdiag',
version=get_version(),
description='blockdiag generates block-diagram image from text',
long_description=open("README.rst").read(),
long_description_content_type='text/x-rst',
classifiers=classifiers,
keywords=['diagram', 'generator'],
author='Takeshi Komiya',
author_email='i.tkomiya@gmail.com',
url='http://blockdiag.com/',
download_url='http://pypi.python.org/pypi/blockdiag',
project_urls={
"Code": "https://github.com/blockdiag/blockdiag",
"Issue tracker": "https://github.com/blockdiag/blockdiag/issues",
},
license='Apache License 2.0',
py_modules=['blockdiag_sphinxhelper'],
packages=find_packages('src'),
package_dir={'': 'src'},
include_package_data=True,
python_requires=">=3.5",
install_requires=[
'setuptools',
'funcparserlib',
'Pillow > 3.0',
'webcolors',
],
extras_require={
'pdf': [
'reportlab'
],
'rst': [
'docutils'
],
'testing': [
'nose',
'flake8',
'flake8-coding',
'flake8-copyright',
'flake8-isort',
'reportlab',
'docutils',
],
},
test_suite='nose.collector',
entry_points="""
[console_scripts]
blockdiag = blockdiag.command:main
[blockdiag_noderenderer]
box = blockdiag.noderenderer.box
square = blockdiag.noderenderer.square
roundedbox = blockdiag.noderenderer.roundedbox
diamond = blockdiag.noderenderer.diamond
minidiamond = blockdiag.noderenderer.minidiamond
mail = blockdiag.noderenderer.mail
note = blockdiag.noderenderer.note
cloud = blockdiag.noderenderer.cloud
circle = blockdiag.noderenderer.circle
ellipse = blockdiag.noderenderer.ellipse
beginpoint = blockdiag.noderenderer.beginpoint
endpoint = blockdiag.noderenderer.endpoint
actor = blockdiag.noderenderer.actor
flowchart.database = blockdiag.noderenderer.flowchart.database
flowchart.input = blockdiag.noderenderer.flowchart.input
flowchart.loopin = blockdiag.noderenderer.flowchart.loopin
flowchart.loopout = blockdiag.noderenderer.flowchart.loopout
flowchart.terminator = blockdiag.noderenderer.flowchart.terminator
textbox = blockdiag.noderenderer.textbox
dots = blockdiag.noderenderer.dots
none = blockdiag.noderenderer.none
[blockdiag_plugins]
attributes = blockdiag.plugins.attributes
autoclass = blockdiag.plugins.autoclass
[blockdiag_imagedrawers]
imagedraw_png = blockdiag.imagedraw.png
imagedraw_svg = blockdiag.imagedraw.svg
imagedraw_pdf = blockdiag.imagedraw.pdf
""",
)