-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
57 lines (53 loc) · 1.47 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import os
import sys
from setuptools import setup, find_packages
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'revive'))
from version import __version__
assert sys.version_info.major == 3, \
"This repo is designed to work with Python 3." \
+ "Please install it before proceeding."
setup(
name='revive',
author='Polixir Technologies Co., Ltd.',
py_modules=['revive'],
packages=find_packages(),
version=__version__,
install_requires=[
'torch==1.13.1',
'pyro-ppl==1.8.4',
'ray[default]==2.1.0',
'bayesian-optimization',
'loguru',
'tabulate',
'tensorboardX',
'numpy',
'pyarrow',
'scipy',
'matplotlib',
'tensorboard',
'gym==0.25.0',
'tqdm',
'pot',
'pandas',
'zoopt==0.4.2',
'h5py',
'pytest',
'CairoSVG==2.5.2',
'dtreeviz==1.4.0',
'PyPDF2==1.26.0',
'pyarmor==7.3.0',
'prometheus_client==0.13.1',
'prettytable',
'wurlitzer',
'causal-learn==0.1.3.0',
'pydantic==1.10.13',
],
url="https://agit.ai/Polixir/revive"
)
config_folder = os.path.join(os.path.expanduser('~'),".revive")
if not os.path.exists(config_folder):
os.makedirs(config_folder)
with open(os.path.join(config_folder,'config.yaml'), 'w', encoding='utf-8') as f:
lines = []
lines.append("accesskey: xxxxxxxxx"+"\n")
f.writelines(lines)