forked from KrispyCamel4u/SysMonTask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
48 lines (43 loc) · 1.85 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
from setuptools import setup, find_packages
import os
with open("README.md", "r") as fh:
long_description = fh.read()
def get_data_files():
data_files = [('/usr/share/sysmontask/glade_files', ['glade_files/disk.glade','glade_files/diskSidepane.glade','glade_files/gpu.glade',
'glade_files/gpuSidepane.glade','glade_files/net.glade','glade_files/netSidepane.glade','glade_files/sysmontask.glade','glade_files/filter_dialog.glade']),
('/usr/share/sysmontask/icons',['icons/SysMonTask.png']),
('/usr/share/doc/sysmontask',['AUTHORS', 'README.md','LICENSE']),
('/usr/share/applications',['SysMonTask.desktop']),
('/usr/share/glib-2.0/schemas',['com.github.camelneeraj.sysmontask.gschema.xml'])
]
return data_files
setup(
name='sysmontask',
version='1.3.9',
description='System Monitor With UI Like Windows',
url='https://github.com/KrispyCamel4u/SysMonTask',
author='Neeraj Kumar',
author_email='[email protected]',
license='BSD-3',
long_description=long_description,
long_description_content_type="text/markdown",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX :: Linux",
'Topic :: System :: Monitoring',
],
include_package_data=True,
data_files=get_data_files(),
install_requires=['psutil>=5.7.2','PyGObject','pycairo'],
packages=find_packages(),
entry_points=dict(
console_scripts=[
'sysmontask=sysmontask.sysmontask:start',
'sysmontask.set_default=sysmontask.theme_setter:set_theme_default',
'sysmontask.set_light=sysmontask.theme_setter:set_theme_light',
'sysmontask.set_dark=sysmontask.theme_setter:set_theme_dark']
)
)
os.system("sudo glib-compile-schemas /usr/share/glib-2.0/schemas")
print("gschema Compiled")