-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
50 lines (47 loc) · 1.69 KB
/
setup.py
File metadata and controls
50 lines (47 loc) · 1.69 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
import sys
import setuptools
import re
install_requires = list()
dependency_links = list()
uninstalled_pkgs = list()
with open("requirements.txt", "r", encoding='utf-8') as f:
for line in f:
if re.match("^[\w_-]*(==(\d+\.)*\d+){0,1}$", line.strip()):
install_requires.append(line.strip())
elif line.strip() and not line.strip().startswith("#"):
uninstalled_pkgs.append(line.strip())
for i, pkg in enumerate(uninstalled_pkgs):
if pkg.startswith("-e "):
dependency_links.append(pkg.lstrip("-e").strip())
del uninstalled_pkgs[i]
setuptools.setup(name='dagflow',
version='0.0.14',
description='DAG Task Schedule Service',
long_description='DAG Task Schedule Service',
author='GodQ',
author_email='quchuanhao@gmail.com',
url='https://github.com/godq/dagflow',
keywords=['dag', 'flow', 'mq', 'task', "schedule", "dagflow"],
classifiers=[
'Environment :: Console',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Topic :: Utilities',
'Topic :: System :: Monitoring',
],
packages=setuptools.find_packages(exclude=['tests*']),
license='Apache License, Version 2.0',
install_requires=install_requires,
dependency_links=dependency_links,
include_package_data=True,
zip_safe=True,
entry_points={
'console_scripts': [
'dagflow = dagflow.manage:main',
],
},
)