-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathsetup.py
65 lines (54 loc) · 1.95 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
# -*- coding: utf-8 -*-
# Author : Jin Kim
# e-mail : jin.kim@seculayer.com
# Powered by Seculayer © 2021 AI Service Model Team, R&D Center.
# ----------------------------------------------------------------------------------------------
# AutoML - XAI(Explainable Artificial Intelligence) Setup Script
# ----------------------------------------------------------------------------------------------
from typing import List
from setuptools import setup, find_packages
class APEPythonSetup(object):
def __init__(self):
self.module_nm = "xai"
self.version = "1.0.0"
@staticmethod
def get_require_packages() -> List[str]:
f = open("./requirements.txt", "r")
require_packages = f.readlines()
f.close()
return require_packages
@staticmethod
def get_packages() -> List[str]:
return find_packages(
exclude=[
"build", "tests", "scripts", "dists"
],
)
def setup(self) -> None:
setup(
name=self.module_nm,
version=self.version,
description="SecuLayer Inc. AutoML Project \n"
"Module : XAI(Explainable Artificial Intelligence)",
author="Jin Kim",
author_email="jin.kim@seculayer.com",
packages=self.get_packages(),
package_dir={
"conf": "conf",
"resources": "resources"
},
python_requires='>3.7',
package_data={
# self.module_nm: FILE_LIST
},
install_requires=self.get_require_packages(),
zip_safe=False,
)
if __name__ == '__main__':
print(" __ ______ ____ _____")
print(" / |/ / | / __ \/ ___/")
print(" / /|_/ / /| | / /_/ /\__ \ ")
print(" / / / / ___ |/ _, _/___/ / ")
print("/_/ /_/_/ |_/_/ |_|/____/ ")
print(" ")
APEPythonSetup().setup()