-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
48 lines (40 loc) · 1.02 KB
/
setup.py
File metadata and controls
48 lines (40 loc) · 1.02 KB
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
import os
import sys
try:
from setuptools import setup, find_packages
except ImportError:
print ("setuptools not installed. run apt-get install python3-setuptools")
sys.exit(1)
try:
from distutils.extension import Extension
except ImportError:
print ("distutils not installed. run apt-get install python3-distutils")
sys.exit(1)
def get_long_desc():
with open("README.md", "r") as readme:
desc = readme.read()
return desc
def setup_package():
setup(
name='rackops',
version='0.0.1',
description='Rack operations',
long_description=get_long_desc(),
url='',
license='MIT',
packages=find_packages(),
entry_points = {
'console_scripts': [
'rackops=rackops.__main__:main',
],
},
install_requires=[
'requests',
'slimit',
'pexpect',
'bs4',
'paramiko',
],
)
if __name__ == '__main__':
setup_package()