-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
31 lines (25 loc) · 972 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
#!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
def parse_requirements(filename):
with open(filename, "r") as file:
lines = (line.strip() for line in file)
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_rhythm",
version="0.1",
description="BeesBook rhythmicity, interaction, and behavior analysis",
author="Julia Mellert, Weronika Klos",
author_email="[email protected]",
url="https://github.com/BioroboticsLab/bb_rhythm/",
install_requires=reqs,
dependency_links=dep_links,
packages=find_packages(),
package_dir={"bb_rhythm": "bb_rhythm"},
)