-
Notifications
You must be signed in to change notification settings - Fork 124
/
setup.py
81 lines (70 loc) · 2.52 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
72
73
74
75
76
77
78
79
80
81
import os
import platform
import sys
from setuptools import find_packages
if platform.system() == "Windows" and "build_exe" in sys.argv:
from cx_Freeze import setup, Executable
executable = (Executable("bin/svtplay-dl", base=None),)
else:
from setuptools import setup
executable = None
# This is needed for versioneer to be importable when building with PEP 517.
# See <https://github.com/warner/python-versioneer/issues/193> and links
# therein for more information.
sys.path.append(os.path.dirname(__file__))
import versioneer
srcdir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "lib/")
sys.path.insert(0, srcdir)
vi = sys.version_info
if vi < (3, 8):
raise RuntimeError("svtplay-dl requires Python 3.8 or greater")
about = {}
with open(os.path.join(srcdir, "svtplay_dl", "__version__.py")) as f:
exec(f.read(), about)
with open("README.md", encoding="utf-8") as f:
readme = f.read()
deps = []
deps.append("requests>=2.0.0")
deps.append("PySocks")
deps.append("cryptography")
deps.append("pyyaml")
setup(
name="svtplay-dl",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
packages=find_packages("lib", exclude=["tests", "*.tests", "*.tests.*"]),
install_requires=deps,
package_dir={"": "lib"},
entry_points={
"console_scripts": [
"svtplay-dl = svtplay_dl:main",
],
},
author="Johan Andersson",
author_email="[email protected]",
description="Command-line program to download videos from various video on demand sites",
long_description=readme,
long_description_content_type="text/markdown",
license="MIT",
url="https://svtplay-dl.se",
python_requires=">=3.8",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Multimedia :: Sound/Audio",
"Topic :: Multimedia :: Video",
"Topic :: Utilities",
],
# cx_freeze info for Windows builds with Python embedded
options={"build_exe": {"packages": ["cffi", "cryptography", "idna", "queue"], "includes": "_cffi_backend"}},
executables=executable,
)