-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
47 lines (35 loc) · 961 Bytes
/
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
import os
import re
from setuptools import find_packages, setup
REGEXP = re.compile(r"^__version__\W*=\W*'([\d.abrc]+)'")
def read_version():
init_py = os.path.join(
os.path.dirname(__file__), 'delivery_pdf', '__init__.py'
)
with open(init_py) as f:
for line in f:
match = REGEXP.match(line)
if match is not None:
return match.group(1)
else:
msg = f'Cannot find version in ${init_py}'
raise RuntimeError(msg)
install_requires = [
'aiohttp==3.5.4',
'python-dotenv',
'toml',
'requests',
'gunicorn',
]
setup(
name='delivery_pdf',
version=read_version(),
description='Async server for convert pdf from athena',
platforms=['POSIX'],
author="Sergey Ivanov",
author_email="djapy@yandex.ru",
packages=find_packages(),
include_package_data=True,
install_requires=install_requires,
zip_safe=False,
)