-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
executable file
·69 lines (59 loc) · 1.96 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
58
59
60
61
62
63
64
65
66
67
68
69
from setuptools import setup
from setuptools import find_packages
import io
import os
from env_settting import ROOT_PATH
def readme_description():
with io.open('README.md', 'r', encoding='utf-8') as f:
readme = f.read()
return readme
def folder_init(description='description', default_path=''):
print(description)
path = default_path
print('[Default Path= \'%s\']' % path)
while True:
user_input = input('Yes(Y,y) | No(N,n) : ')
print()
if user_input == 'y' or user_input == 'yes' or user_input == 'Y':
try:
os.makedirs(path)
except FileExistsError:
pass
break
elif user_input == 'n' or user_input == 'no' or user_input == 'N':
path = input('Input path= ')
print('Is path= \'%s\' ?' % path)
else:
print('Abort Setup')
exit()
# init instance folder
# folder_init('Setup Instance Directory', os.path.join(ROOT_PATH, 'instance'))
# init data folder
# folder_init('Setup Data Directory', os.path.join(ROOT_PATH, 'data'))
install_requires_ = [
# 'tensorflow==1.4.1',
# 'tensorflow-gpu==1.4.1',
'requests==2.18.4',
'opencv-python==3.4.13.47',
'scikit-learn==0.19.1',
'scikit-image==0.13.1',
'pillow==5.0.0',
'pandas==0.22.0',
'matplotlib==2.2.5',
]
# ref : https://github.com/stunstunstun/awesome-algorithms
setup(name='ALLGANS',
version='0.1',
description='Unsupervised Learning Model Implementation Project Using Machine Learning Framework',
long_description=readme_description(),
url='https://github.com/demetoir/ALLGANS',
author='demetoir, WKBae, StarG',
author_email='wnsqlehlswk@naver.com, williambae1@gmail.com, psk7142@naver.com',
license='MIT',
packages=find_packages(),
install_requires=install_requires_,
classifiers=[
'Programming Language :: Python :: 3.6',
],
zip_safe=False,
)