-
Notifications
You must be signed in to change notification settings - Fork 390
/
setup.py
66 lines (61 loc) · 2.02 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
62
63
64
65
66
"""
This is a setup.py script
"""
import os
import sys
from setuptools import setup, find_packages
VERSION = "0.0.0"
with open('macast/.version', 'r') as f:
VERSION = f.read().strip()
LONG_DESCRIPTION = ""
with open('README.md', 'r', encoding='utf-8') as f:
LONG_DESCRIPTION = f.read()
OPTIONS = {}
INSTALL = ["requests", "appdirs", "cherrypy", "lxml", "netifaces"]
PACKAGES = find_packages()
if sys.platform == 'darwin':
INSTALL += ["rumps",
"pyperclip"]
elif sys.platform == 'win32':
INSTALL += ["pillow",
"pyperclip",
"pystray"]
else:
INSTALL += ["pillow",
"pystray @ git+https://github.com/xfangfang/pystray.git",
"pyperclip @ git+https://github.com/xfangfang/pyperclip.git"]
setup(
name="macast",
version=VERSION,
author="xfangfang",
author_email="[email protected]",
description="a DLNA Media Renderer",
license="GPL3",
url="https://github.com/xfangfang/Macast",
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
classifiers=["Topic :: Multimedia :: Sound/Audio",
"Topic :: Multimedia :: Video",
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows :: Windows NT/2000',
'Operating System :: POSIX',
],
platforms=["MacOS X", "Windows", "POSIX"],
keywords=["mpv", "dlna", "renderer"],
options=OPTIONS,
install_requires=INSTALL,
packages=PACKAGES,
include_package_data=True,
entry_points={
'console_scripts': [
'macast-cli = macast.macast:cli',
'macast-gui = macast.macast:gui'
]
},
python_requires=">=3.6",
)