-
Notifications
You must be signed in to change notification settings - Fork 20
/
setup.py
56 lines (49 loc) · 1.59 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 os
import pathlib
from setuptools import setup
with open('pulsemeeter/settings.py') as f:
for line in f:
if line.startswith('__version__'):
__version__ = line.replace("'", '').split()[2]
break
VERSION = __version__
README = (pathlib.Path(__file__).parent / "README.md").read_text()
DATA_FILES = [('share/licenses/pulsemeeter/', ['LICENSE']), ]
REQUIREMENTS = []
with open('requirements.txt') as file:
for line in file:
REQUIREMENTS.append(line.rstrip())
for directory, _, filenames in os.walk(u'share'):
dest = directory[6:]
if filenames:
files = [os.path.join(directory, filename) for filename in filenames]
DATA_FILES.append((os.path.join('share', dest), files))
setup(
name='pulsemeeter',
version=VERSION,
description='A pulseaudio audio routing application',
long_description=README,
long_description_content_type="text/markdown",
author='Gabriel Carneiro',
author_email='[email protected]',
license="MIT",
license_files='LICENSE',
classifiers=[
"Environment :: X11 Applications",
"License :: OSI Approved :: MIT License",
],
url='https://github.com/theRealCarneiro/pulsemeeter',
packages=['pulsemeeter', 'pulsemeeter.interface', 'pulsemeeter.socket', 'pulsemeeter.backends'],
install_requires=REQUIREMENTS,
data_files=DATA_FILES,
entry_points={
"console_scripts": [
"pulsemeeter = pulsemeeter.__main__:main",
],
},
python_requires=">=3.5",
scripts=[
'scripts/pmctl',
],
include_package_data=True
)