-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
55 lines (51 loc) · 2.1 KB
/
setup.py
File metadata and controls
55 lines (51 loc) · 2.1 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
49
50
51
52
53
54
55
#!/usr/bin/env python3
from setuptools import setup
import os,sys
#read from requirements.txt
f = open('requirements.txt','r')
dep_list = []
for item in f.readlines():
item = item.rstrip('\n')
dep_list.append(item)
f.close()
added_files = []
if 'linux' in sys.platform or 'freebsd' in sys.platform or 'openbsd' in sys.platform:
## TODO: uncomment these when the manpage and GUI is written
#added_files.append(('share/wwh/' , ['wwh-qt.ui']))
#added_files.append(('share/applications/', ['desktop/wireplumber_w31rd_hax.desktop']))
#added_files.append(('share/man/man1/' , ['man/wwh-cli.1']))
#added_files.append(('share/bash-completion/completions/', ['bash-completion/wwh-cli.py']))
configs = os.listdir('configs')
added_files.append(('share/wireplumber-w31rd-hax/',configs))
else:
message_line = "%s: unsupported platform." % sys.platform
sys.exit(2)
setup(name='wireplumber-w31rd-hax',
version='0.1.0',
description='Collection of assorted workarounds and hacks for wireplumber, as well tools for enabling or disabling them',
author='GI Jack',
author_email='GI_Jack@hackermail.com',
url='https://github.com/GIJack/wireplumber-w31rd-hax',
packages=['wwh'],
license='GPLv3',
scripts=['wwh-cli.py'],
#scripts=['wwh-cli.py', 'wwh-gui.py'],
data_files=added_files,
classifiers=[
'Development Status :: 3 - Alpha ',
'Environment :: Console',
#'Environment :: X11 Applications :: Qt',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: POSIX :: Linux',
'Operating System :: POSIX :: BSD :: FreeBSD',
'Operating System :: POSIX :: BSD :: OpenBSD',
#'Operating System :: MacOS :: MacOS X',
#'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python :: 3',
'Topic :: Utilities',
'Topic :: System :: Networking',
],
install_requires = dep_list
)