forked from kubetoolsca/krs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
89 lines (79 loc) · 2.77 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# import os
# from setuptools import setup, find_packages
# # Read the requirements.txt file for dependencies
# with open('krs/requirements.txt') as f:
# requirements = f.read().splitlines()
# # Read the README file for long description
# with open('README.md') as f:
# long_description = f.read()
# setup(
# name='krs',
# version='0.1.0',
# description='Kubernetes Recommendation Service with LLM integration',
# long_description=long_description,
# long_description_content_type='text/markdown',
# author='Abhijeet Mazumdar, Karan Singh, Adesoji Alu & Ajeet Singh Raina',
# author_email='abhijeet@kubetools.ca, karan@kubetools.ca, ajeet@kubetools.ca',
# url='https://github.com/KrsGPTs/krs',
# packages=find_packages(),
# include_package_data=True,
# install_requires=requirements,
# entry_points={
# 'console_scripts': [
# 'krs=krs.krs:app', # Adjust the module and function path as needed
# ],
# },
# classifiers=[
# 'Programming Language :: Python :: 3',
# 'License :: OSI Approved :: MIT License',
# 'Operating System :: OS Independent',
# ],
# python_requires='>=3.6',
# package_data={
# 'krs': [
# 'data/*.json',
# 'data/*.yml',
# 'data/*.pkl',
# 'requirements.sh',
# 'requirements.bat',
# # Add other patterns as needed
# ],
# },
# )
from setuptools import setup, find_packages
import os
import sys
from subprocess import check_call
# Read the requirements.txt file for dependencies
with open('krs/requirements.txt') as f:
requirements = f.read().splitlines()
# Define a function to install OS-specific dependencies
def install_os_specific_requirements():
if sys.platform.startswith('linux'):
check_call(['bash', 'krs/requirements.sh'])
elif sys.platform.startswith('win'):
check_call(['cmd', '/c', 'krs/requirements.bat'])
# Call the function to install OS-specific dependencies
install_os_specific_requirements()
setup(
name='krs',
version='0.1.0',
description='Kubernetes Recommendation Service with LLM integration',
author='Abhijeet Mazumdar , Karan Singh & Ajeet Singh Raina',
author_email='abhijeet@kubetools.ca, karan@kubetools.ca, ajeet@kubetools.ca',
url='https://github.com/KrsGPTs/krs',
packages=find_packages(),
include_package_data=True,
install_requires=requirements,
entry_points={
'console_scripts': [
'krs=krs.krs:app', # Adjust the module and function path as needed
],
},
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
],
python_requires='>=3.6',
)