-
-
Notifications
You must be signed in to change notification settings - Fork 93
/
setup.py
71 lines (64 loc) · 2.11 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
67
68
69
70
71
from setuptools import setup
import sys
import os
with open("README.md", "r") as fh:
long_description = fh.read()
extras = {
"gui": ["pystray", "pillow"],
"mirror": ["Jinja2", "pywebview>=3.3.1"],
"discord": ["pypresence"],
"all": ["Jinja2", "pywebview>=3.3.1", "pystray", "pypresence", "pillow"],
}
if sys.platform.startswith("win32"):
win_extra = ["pywin32", "clr-loader==0.1.7", "pythonnet==3.0.0a2"]
extras["all"] += win_extra
extras["mirror"] += win_extra
packages = [
"jellyfin_mpv_shim",
"jellyfin_mpv_shim.display_mirror",
]
if not sys.platform.startswith("win32"):
packages.extend(
[
"jellyfin_mpv_shim.messages",
"jellyfin_mpv_shim.default_shader_pack",
"jellyfin_mpv_shim.default_shader_pack.shaders",
"jellyfin_mpv_shim.integration",
]
)
for dir in os.listdir("jellyfin_mpv_shim/messages"):
if os.path.isdir("jellyfin_mpv_shim/messages/" + dir + "/LC_MESSAGES"):
packages.append("jellyfin_mpv_shim.messages." + dir + ".LC_MESSAGES")
setup(
name="jellyfin-mpv-shim",
version="2.8.0",
author="Izzie Walton",
author_email="izzie@iwalton.com",
description="Cast media from Jellyfin Mobile and Web apps to MPV.",
license="GPLv3",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
url="https://github.com/jellyfin/jellyfin-mpv-shim",
packages=packages,
package_data={
"jellyfin_mpv_shim.display_mirror": ["*.css", "*.html"],
"jellyfin_mpv_shim": ["systray.png"],
},
entry_points={
"console_scripts": ["jellyfin-mpv-shim=jellyfin_mpv_shim.mpv_shim:main"]
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
],
extras_require=extras,
python_requires=">=3.6",
install_requires=[
"python-mpv",
"jellyfin-apiclient-python>=1.9.2",
"python-mpv-jsonipc>=1.2.0",
"requests",
],
include_package_data=True,
)