-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
46 lines (44 loc) · 1.69 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
import fastentrypoints # noqa: F401
import sys
from setuptools import setup
from setuptools import find_packages
required = []
dependency_links = []
EGG_MARK = '#egg='
with open('requirements.txt') as reqs:
for line in reqs.read().split('\n'):
if line.startswith('-e git:') or line.startswith('-e git+') or \
line.startswith('git:') or line.startswith('git+'):
if EGG_MARK in line:
package_name = line[line.find(EGG_MARK) + len(EGG_MARK):]
required.append(package_name)
dependency_links.append(line)
else:
print('Dependency to a git repository should have the format:')
print('git+ssh://[email protected]/xxxxx/xxxxxx#egg=package_name')
sys.exit(1)
else:
required.append(line)
setup(
name='acquisition',
packages=find_packages(),
install_requires=required,
include_package_data=True,
dependency_links=dependency_links,
zip_safe=False,
url="https://github.com/metwork-framework/acquisition",
entry_points={
"console_scripts": [
"inject_file = acquisition.inject_file:main",
"reinject_step = acquisition.reinject_step:main",
"switch_step = acquisition.switch_step:main",
"archive_step = acquisition.archive_step:main",
"copy_step = acquisition.copy_step:main",
"move_step = acquisition.move_step:main",
"fork_step = acquisition.fork_step:main",
"delete_step = acquisition.delete_step:main",
"ungzip_step = acquisition.ungzip_step:main",
"unbzip2_step = acquisition.unbzip2_step:main",
]
}
)