script entry in setup.py done the **Rightway**(TM)
Browse files- scripts/pytube → pytube/__main__.py +3 -3
- setup.py +6 -1
scripts/pytube → pytube/__main__.py
RENAMED
@@ -5,9 +5,9 @@ import sys
|
|
5 |
import os
|
6 |
import argparse
|
7 |
|
8 |
-
from
|
9 |
-
from
|
10 |
-
from
|
11 |
from pprint import pprint
|
12 |
|
13 |
|
|
|
5 |
import os
|
6 |
import argparse
|
7 |
|
8 |
+
from . import YouTube
|
9 |
+
from .utils import print_status, FullPaths
|
10 |
+
from .exceptions import PytubeError
|
11 |
from pprint import pprint
|
12 |
|
13 |
|
setup.py
CHANGED
@@ -21,7 +21,11 @@ setup(
|
|
21 |
packages=['pytube'],
|
22 |
url="https://github.com/nficano/pytube",
|
23 |
license=license,
|
24 |
-
|
|
|
|
|
|
|
|
|
25 |
classifiers=[
|
26 |
"Development Status :: 5 - Production/Stable",
|
27 |
"Environment :: Console",
|
@@ -47,4 +51,5 @@ setup(
|
|
47 |
description=("A Python library for downloading YouTube videos."),
|
48 |
long_description=readme,
|
49 |
zip_safe=True,
|
|
|
50 |
)
|
|
|
21 |
packages=['pytube'],
|
22 |
url="https://github.com/nficano/pytube",
|
23 |
license=license,
|
24 |
+
entry_points={
|
25 |
+
'console_scripts': [
|
26 |
+
'pytube = pytube.__main__:main',
|
27 |
+
],
|
28 |
+
},
|
29 |
classifiers=[
|
30 |
"Development Status :: 5 - Production/Stable",
|
31 |
"Environment :: Console",
|
|
|
51 |
description=("A Python library for downloading YouTube videos."),
|
52 |
long_description=readme,
|
53 |
zip_safe=True,
|
54 |
+
|
55 |
)
|