-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
29 lines (23 loc) · 802 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
def parse_requirements(filename):
with open(filename, 'r') as f:
lines = f.readlines()
requirements = []
dependency_links = []
for line in lines:
line = line.strip()
if line.startswith('-f'):
dependency_links.append(line.replace('-f ', ''))
elif line and not line.startswith('#'):
requirements.append(line)
return requirements, dependency_links
requirements, dependency_links = parse_requirements('requirements.txt')
setup(
name="hyperagent",
version="0.0.1",
packages=find_packages(exclude=["scripts", "experiments", "atari_results"]),
install_requires=requirements,
dependency_links=dependency_links,
)