-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathsetup.py
59 lines (52 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
import re
from pathlib import Path
from setuptools import setup, find_packages
__folder__ = Path(__file__).parent
def read(*path_leaves, **kwargs):
kwargs.setdefault('encoding', "utf-8")
with Path(__folder__, *path_leaves).open(**kwargs) as f:
return f.read()
def find_version(*path_leaves):
version_file = read(*path_leaves)
version_match = re.search(r"^__version__ = (['\"])(.*?)\1", version_file, re.M)
if version_match:
return version_match.group(2)
else:
raise RuntimeError("Unable to find version string.")
setup(
name="discordrp-mpris",
packages=find_packages(exclude=["tests"]),
version=find_version("discordrp_mpris", "__init__.py"),
description="Discord Rich Presence based on mpris2 media players",
long_description=read("README.md"),
url="https://github.com/FichteFoll/discordrp-mpris",
author="FichteFoll",
author_email="[email protected]",
license='MIT',
classifiers=[
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 4 - Beta',
'Environment :: No Input/Output (Daemon)',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: MIT License',
'Operating System :: Unix',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Topic :: Communications :: Chat :: Discord', # not in the list above
# 'Topic :: System',
],
keywords=["discord", "discord rich presence", "mpris2", "media", "dbus", "mpd", "mpv", "vlc"],
entry_points={
'console_scripts': [
"discordrp-mpris=discordrp_mpris.__main__:main",
],
},
package_data={
'discordrp_mpris.config': [
"config.toml",
]
},
install_requires=["dbussy", "pytoml"],
# dependency_links=["https://github.com/ldo/dbussy"],
python_requires=">=3.6",
)