-
Notifications
You must be signed in to change notification settings - Fork 74
/
setup.py
40 lines (35 loc) · 1.1 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
#!/usr/bin/env python
import os
from setuptools import find_packages, setup
version = '0.7.5'
PATH_ROOT = os.path.dirname(__file__)
def load_requirements(path_dir=PATH_ROOT, comment_char='#'):
with open(os.path.join(path_dir, 'requirements.txt'), 'r') as file:
lines = [ln.strip() for ln in file.readlines()]
reqs = []
for ln in lines:
# filer all comments
if comment_char in ln:
ln = ln[:ln.index(comment_char)]
if ln: # if requirement is not empty
reqs.append(ln)
return reqs
setup(
name='test_tube',
packages=find_packages(),
version=version,
description='Experiment logger and visualizer',
author='William Falcon',
install_requires=load_requirements(PATH_ROOT),
author_email='[email protected]',
url='https://github.com/williamFalcon/test_tube',
download_url='https://github.com/williamFalcon/test_tube/archive/{}.tar.gz'.format(version),
keywords=[
'testing',
'machine learning',
'deep learning',
'prototyping',
'experimenting',
'modeling',
],
)