forked from weakish/kwplayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·61 lines (51 loc) · 1.91 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
#!/usr/bin/env python3
# Copyright (C) 2013-2014 LiuLang <gsushzhsosgsu@gmail.com>
# Use of this source code is governed by GPLv3 license that can be found
# in the LICENSE file.
from distutils.core import setup
from distutils.core import Command
from distutils.command.clean import clean as distutils_clean
from distutils.command.sdist import sdist as distutils_sdist
import glob
import os
import shutil
import kuwo
def build_data_files():
data_files = []
for dir, dirs, files in os.walk('share'):
target = dir
if files:
files = [os.path.join(dir, f) for f in files]
data_files.append((target, files))
return data_files
# kwplayer will be installed to /usr/local/bin
scripts = ['kwplayer', ]
if __name__ == '__main__':
setup(
name = 'kwplayer',
description = 'Music player for linux users',
version = kuwo.__version__,
license = 'GPLv3',
url = 'https://github.com/LiuLang/kwplayer',
author = 'LiuLang',
author_email = 'gsushzhsosgsu@gmail.com',
packages = ['kuwo', ],
scripts = scripts,
data_files = build_data_files(),
long_description = kuwo.__doc__,
platforms = 'any',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: X11 Applications :: GTK',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Natural Language :: Chinese (Simplified)',
'Natural Language :: Chinese (Traditional)',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Multimedia :: Sound/Audio :: Players',
],
)