-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
46 lines (41 loc) · 1.46 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
#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
def parse_requirements(filename):
""" load requirements from a pip requirements file """
lines = (line.strip() for line in open(filename))
return [line for line in lines if line and not line.startswith("#")]
reqs = parse_requirements("requirements.txt")
dep_links = [url for url in reqs if "http" in url]
reqs = [req for req in reqs if "http" not in req]
reqs += [url.split("egg=")[-1] for url in dep_links if "egg=" in url]
setup(
name='bb_utils',
version='0.1',
description='Beesbook utils',
author='Benjamin Wild',
author_email='[email protected]',
url='https://github.com/BioroboticsLab/bb_utils/',
install_requires=reqs,
dependency_links=dep_links,
packages=['bb_utils'],
package_dir={'bb_utils': 'bb_utils/'},
package_data={'bb_utils': ['data/hatchdates2016.csv',
'data/foragergroups2016.csv',
'data/beenames.csv',
'data/fiducial_marker.npz',
'data/idmapping2019.csv'
]},
entry_points={
'console_scripts': [
'bb_gt_to_hdf5 = bb_utils.scripts.gt_to_hdf5:run',
'shuffle_hdf5 = bb_utils.scripts.shuffle_hdf5:main',
]
},
scripts=[
'scripts/shuffle_all_hdf5.sh',
'scripts/build_gt.sh',
]
)