-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
90 lines (67 loc) · 2.04 KB
/
Copy pathsetup.py
File metadata and controls
90 lines (67 loc) · 2.04 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
"""Setup configuration for the pyutube package."""
from pathlib import Path
from setuptools import find_packages, setup
def read_version() -> str:
"""Read the package version without importing runtime dependencies."""
namespace: dict[str, str] = {}
version_file = Path(__file__).parent / "pyutube" / "version.py"
exec(version_file.read_text(encoding="utf-8"), namespace)
return namespace["__version__"]
with open("README.md", "r", encoding="utf-8") as f:
description = f.read()
# Setup configuration
setup(
name="pyutube",
version=read_version(),
author="Ebraheem Alhetari",
author_email="hetari4all@gmail.com",
description="Awesome CLI to download YouTube videos (as video or audio)/shorts/playlists from the terminal",
long_description=description,
long_description_content_type="text/markdown",
keywords=[
"youtube",
"download",
"cli",
"pyutube",
"yt-dlp",
"youtube-dl",
],
license="MIT",
classifiers=[
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
],
include_package_data=True,
python_requires=">=3.6",
install_requires=[
"yt-dlp==2026.03.17",
"inquirer",
"yaspin",
"typer",
"requests",
"rich",
"termcolor",
],
extras_require={
"dev": [
"mypy>=1.8,<2.0",
"types-requests>=2.32.0,<3.0",
"ruff>=0.9,<1.0",
],
},
entry_points={
"console_scripts": [
"pyutube=pyutube.cli:app",
],
},
project_urls={
"Author": "https://github.com/Hetari",
"Homepage": "https://github.com/Hetari/pyutube",
"Bug Tracker": "https://github.com/Hetari/pyutube/issues",
"Source Code": "https://github.com/Hetari/pyutube",
"Documentation": "https://github.com/Hetari/pyutube",
},
platforms=["Linux", "Windows", "MacOS"],
packages=find_packages()
)