-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
68 lines (59 loc) · 2.21 KB
/
setup.py
File metadata and controls
68 lines (59 loc) · 2.21 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
from datetime import datetime
from setuptools import find_packages, setup
with open("README.md", "r") as fh:
long_description = fh.read()
_now = datetime.now()
_version = '%s.%02d%02d.%02d%02d' % (_now.year, _now.month, _now.day, _now.hour, _now.minute)
with open('./aloha/_version.py', 'wt') as fp:
fp.write('__version__ = "%s"\n' % _version)
dict_extra_requires = {
'build': ['Cython'],
'service': ['requests', 'tornado', 'psutil', 'pyjwt', 'fastapi', 'httpx'],
'db': ['sqlalchemy', 'psycopg[binary]', 'pymysql', 'elasticsearch', 'pymongo', 'redis'],
'stream': ['confluent_kafka'],
'data': ['pandas'],
'report': ['openpyxl>=3', 'XlsxWriter'],
'test': ['pytest-cov'],
'docs': ['mkdocs', 'mkdocstrings[python]', 'markdown-include', 'mkdocs-material'],
}
setup(
name='aloha',
version=_version,
author='QPod',
license='Apache Software License',
url='https://github.com/QPod/aloha',
project_urls={
'Source': 'https://github.com/QPod/aloha',
'CI Pipeline': 'https://github.com/QPod/aloha/actions',
'Documentation': 'https://aloha-python.readthedocs.io/',
},
packages=find_packages(where=".", exclude=("app_common*",)),
include_package_data=True,
package_data={},
platforms='Linux, Mac OS X, Windows',
zip_safe=False,
install_requires=['attrdict3', 'pyhocon', 'pycryptodome', 'packaging'],
extras_require={
**dict_extra_requires,
'all': sorted(y for x in dict_extra_requires.values() for y in x),
},
python_requires='>=3.6',
entry_points={
'console_scripts': [
'aloha = aloha.script.base:main'
]
},
data_files=[],
description='Aloha - a versatile Python utility package for building services',
long_description=long_description,
long_description_content_type="text/markdown",
classifiers=[
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Intended Audience :: Science/Research',
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
]
)