-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
63 lines (53 loc) · 1.73 KB
/
setup.py
File metadata and controls
63 lines (53 loc) · 1.73 KB
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
"""Packaging."""
from codecs import open
from os.path import abspath, dirname, join
from subprocess import call
from setuptools import Command, find_packages, setup
this_dir = abspath(dirname(__file__))
with open(join(this_dir, "README.md"), encoding="utf-8") as file:
long_description = file.read()
class RunTests(Command):
"""Run all tests."""
description = "run tests"
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
"""Run all tests!"""
errno = call(["py.test", "--cov=pyyt", "--cov-report=term-missing"])
raise SystemExit(errno)
setup(
name="pyyt-cli",
version="0.2.2",
description=(
"Python script to download videos as audio from a given YouTube playlist/video"
),
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/patillacode/pyyt",
author="Patilla Code",
author_email="patillacode@gmail.com",
license="Apache 2.0",
classifiers=[
"Intended Audience :: Developers",
"Topic :: Utilities",
"License :: Public Domain",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.11",
],
keywords="converter, audio, youtube, download, mp3",
packages=find_packages(exclude=["docs", "tests*", "downloads", "examples"]),
install_requires=["pyfiglet", "simple-term-menu", "yt-dlp", "termcolor"],
extras_require={
"test": ["coverage", "pytest", "pytest-cov", "mock"],
},
entry_points={
"console_scripts": [
"pyyt=src.pyyt:main",
],
},
cmdclass={"test": RunTests},
)