This repository has been archived by the owner on Jul 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
57 lines (51 loc) · 1.84 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
from importlib import import_module
from pathlib import Path
from setuptools import setup, find_packages
SRC_ROOT = 'src'
BIN_ROOT = 'bin/'
about = import_module(SRC_ROOT + '.hermes_audio_server.about')
with Path('README.md').open('r') as fh:
long_description = fh.read()
with Path('requirements.txt').open('r') as fh:
requirements = fh.read().splitlines()
requirements = [requirement for requirement in requirements
if not requirement.startswith('#')]
binaries = [BIN_ROOT + about.PLAYER, BIN_ROOT + about.RECORDER]
setup(
name=about.PROJECT,
version=about.VERSION,
description=about.DESCRIPTION,
long_description=long_description,
long_description_content_type='text/markdown',
license=about.LICENSE,
author=about.AUTHOR,
author_email=about.EMAIL,
url=about.GITHUB_URL,
project_urls={
'Documentation': about.DOC_URL,
'Source': about.GITHUB_URL,
'Tracker': about.TRACKER_URL,
},
packages=find_packages(SRC_ROOT),
package_dir={'': SRC_ROOT},
install_requires=requirements,
python_requires='>=3',
include_package_data=True,
zip_safe=False,
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX',
'Programming Language :: Python',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Home Automation',
'Topic :: Multimedia :: Sound/Audio :: Capture/Recording',
'Topic :: Multimedia :: Sound/Audio :: Players'
],
keywords=about.KEYWORDS,
scripts=binaries)