-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
executable file
·48 lines (45 loc) · 1.28 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
#!/usr/bin/python3
import re
from os import path
from setuptools import find_packages, setup
__version__ = '0.0.0'
current_dir = path.abspath(path.dirname(__file__))
with open(path.join(current_dir, 'CHANGELOG.rst'), 'r') as f:
for line in f:
m = re.search(r'`(\d+\.\d+\.\d+)`_', line)
if m:
__version__ = m.group(1)
break
setup(
name='doker',
version=__version__,
packages=find_packages(),
author='Shamil Yakupov',
description="Rich PDF documents creating tool",
url='https://github.com/doker-project/doker',
long_description=open('README.rst').read(),
entry_points={
'console_scripts': [
'doker = doker.main:main',
]},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
package_data={
'': ['CHANGELOG.rst', 'LICENSE'],
'doker': ['rst2pdf/styles/*.json', 'rst2pdf/styles/*.style', 'rst2pdf/images/*.png', 'rst2pdf/images/*.jpg', 'rst2pdf/templates/*.tmpl'],
},
install_requires = [
'docutils',
'Jinja2',
'pdfrw',
'pillow',
'pygments',
'pyyaml',
'reportlab',
'six',
'smartypants',
],
)