-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
36 lines (29 loc) · 828 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
32
33
34
35
36
import os
import yaml
from setuptools import setup
def get_requirements():
"""Get requirements from an environment.yml file.
"""
with open('environment.yml') as f:
yam = yaml.load(f)
# Do some processing of the dependencies
dep_list = []
for dep in yam['dependencies']:
if 'python' in dep:
continue
if isinstance(dep, dict):
for nested_dep in dep.values():
dep_list += nested_dep
continue
dep_list.append(dep)
return dep_list
setup(
name='cs663_project',
version='0.1.0',
description='Unsupervised domain mapping',
author='Matt Amodio',
author_email='[email protected]',
packages=['cs663_project'],
install_requires=get_requirements(),
scripts=['bin/download_data', 'bin/train']
)