-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
31 lines (26 loc) · 840 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
# (from: https://github.com/masaponto/Python-MLP/blob/master/setup.py)
# (from: https://qiita.com/masashi127/items/5bfcba5cad8e82958844)
# (from: https://qiita.com/hotoku/items/4789533f5e497f3dc6e0)
from setuptools import setup, find_packages
import sys
import toml
def name_ver_join(name, ver):
if ver == "*":
return name
else:
return name + ver
with open("Pipfile") as f:
pipfile_dict = toml.load(f)
install_requires = [name_ver_join(name, ver) for name, ver in pipfile_dict['packages'].items()]
sys.path.append('./tests')
setup(
name='multi_svr',
version='0.1.2',
description='SVR for multidimensional label',
author='Ryo Ota',
author_email='[email protected]',
install_requires=install_requires,
py_modules=["multi_svr"],
packages=find_packages(),
test_suite='tests'
)