-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
56 lines (52 loc) · 1.5 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
# Import community modules.
import os
import sys
from setuptools import setup,find_packages
if __name__=='__main__':
# Run only as sudo/root user.
if not os.geteuid()==0:
print('Run this command as sudo/root user.')
sys.exit(1)
# Setup configuration.
setup(
classifiers=[
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent'
],
python_requires='>=3.6',
package_dir={'':'source'},
# packages=['sloopengine'],
packages=find_packages(where='source'),
install_requires=[
'subprocess32==3.5.4',
'requests==2.26.0',
'validators==0.18.2',
'termcolor==1.1.0'
],
entry_points={
'console_scripts':[
'sloopengine=sloopengine:cli'
]
},
# data_files=[
# ('/opt/sloopengine',[]),
# ('/opt/sloopengine/data',[]),
# ('/opt/sloopengine/log',[
# 'source/sloopengine/log/main.log'
# ]),
# ('/opt/sloopengine/conf',[
# 'source/sloopengine/conf/main.conf',
# 'source/sloopengine/conf/credential.conf'
# ])
# ],
url='https://github.com/sloopstash/sloopengine-cli',
project_urls={
'Source':'https://github.com/sloopstash/sloopengine-cli',
'Issues':'https://github.com/sloopstash/sloopengine-cli/issues'
},
zip_safe=True
)