2013-03-10 14:49:31 +01:00
|
|
|
from setuptools import setup, find_packages
|
|
|
|
import sys
|
2013-03-23 15:17:15 +01:00
|
|
|
import os
|
|
|
|
|
|
|
|
srcdir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "lib/")
|
|
|
|
sys.path.insert(0, srcdir)
|
2016-01-07 20:15:08 +01:00
|
|
|
|
2018-05-24 23:50:55 +02:00
|
|
|
vi = sys.version_info
|
|
|
|
if vi < (3, 4):
|
|
|
|
raise RuntimeError('svtplay-dl requires Python 3.4 or greater')
|
|
|
|
|
2018-05-24 23:05:34 +02:00
|
|
|
about = {}
|
|
|
|
with open(os.path.join(srcdir, 'svtplay_dl', '__version__.py'), 'r') as f:
|
|
|
|
exec(f.read(), about)
|
2018-03-12 21:55:03 +01:00
|
|
|
|
2018-05-24 23:05:34 +02:00
|
|
|
deps = []
|
2018-03-12 21:55:03 +01:00
|
|
|
deps.append("requests>=2.0.0")
|
|
|
|
deps.append("PySocks")
|
|
|
|
deps.append("pycryptodome")
|
2018-05-07 00:56:02 +02:00
|
|
|
deps.append("pyyaml")
|
2016-01-07 20:15:08 +01:00
|
|
|
|
2013-03-10 14:49:31 +01:00
|
|
|
setup(
|
2018-01-30 20:11:37 +01:00
|
|
|
name="svtplay-dl",
|
2018-05-24 23:05:34 +02:00
|
|
|
version=about['__version__'],
|
2018-01-30 20:11:37 +01:00
|
|
|
packages=find_packages(
|
2013-03-10 14:49:31 +01:00
|
|
|
'lib',
|
|
|
|
exclude=["tests", "*.tests", "*.tests.*"]),
|
2016-01-07 20:15:08 +01:00
|
|
|
install_requires=deps,
|
2018-01-30 20:11:37 +01:00
|
|
|
package_dir={'': 'lib'},
|
|
|
|
scripts=['bin/svtplay-dl'],
|
2018-05-24 23:05:34 +02:00
|
|
|
author=about["__author__"],
|
|
|
|
author_email=about["__author_email__"],
|
2018-01-30 20:11:37 +01:00
|
|
|
description="Command-line program to download videos from various video on demand sites",
|
2018-05-24 23:05:34 +02:00
|
|
|
license=about["__license__"],
|
|
|
|
url=about["__url__"],
|
2018-05-24 23:30:42 +02:00
|
|
|
python_requires='>=3.4',
|
2015-09-20 23:36:22 +02:00
|
|
|
classifiers=["Development Status :: 5 - Production/Stable",
|
|
|
|
"Environment :: Console",
|
|
|
|
"Operating System :: POSIX",
|
|
|
|
"Operating System :: Microsoft :: Windows",
|
2018-05-24 23:30:42 +02:00
|
|
|
"Programming Language :: Python :: 3",
|
2015-09-20 23:36:22 +02:00
|
|
|
"Programming Language :: Python :: 3.4",
|
2015-10-08 23:03:09 +02:00
|
|
|
"Programming Language :: Python :: 3.5",
|
2018-03-12 21:55:03 +01:00
|
|
|
"Programming Language :: Python :: 3.6",
|
2015-09-20 23:36:22 +02:00
|
|
|
"Topic :: Internet :: WWW/HTTP",
|
|
|
|
"Topic :: Multimedia :: Sound/Audio",
|
|
|
|
"Topic :: Multimedia :: Video",
|
2018-01-30 22:56:34 +01:00
|
|
|
"Topic :: Utilities"],
|
|
|
|
extras_require={"dev": [
|
2018-02-26 00:04:39 +01:00
|
|
|
"flake8>=3.5, <3.6",
|
|
|
|
"tox>=2.3, <3",
|
|
|
|
"rstcheck>=2.2, <4.0"
|
|
|
|
]
|
2018-01-30 22:56:34 +01:00
|
|
|
}
|
2013-03-10 14:49:31 +01:00
|
|
|
)
|