single source version
Browse files- pytube/__init__.py +1 -1
- pytube/version.py +1 -0
- setup.py +5 -1
pytube/__init__.py
CHANGED
@@ -5,7 +5,6 @@
|
|
5 |
Pytube: a very serious Python library for downloading YouTube Videos.
|
6 |
"""
|
7 |
__title__ = "pytube3"
|
8 |
-
__version__ = "9.5.5"
|
9 |
__author__ = "Nick Ficano, Harold Martin"
|
10 |
__license__ = "MIT License"
|
11 |
__copyright__ = "Copyright 2019 Nick Ficano"
|
@@ -17,6 +16,7 @@ from pytube.streams import Stream
|
|
17 |
from pytube.captions import Caption
|
18 |
from pytube.contrib.playlist import Playlist
|
19 |
from pytube.__main__ import YouTube
|
|
|
20 |
|
21 |
logger = create_logger()
|
22 |
logger.info("%s v%s", __title__, __version__)
|
|
|
5 |
Pytube: a very serious Python library for downloading YouTube Videos.
|
6 |
"""
|
7 |
__title__ = "pytube3"
|
|
|
8 |
__author__ = "Nick Ficano, Harold Martin"
|
9 |
__license__ = "MIT License"
|
10 |
__copyright__ = "Copyright 2019 Nick Ficano"
|
|
|
16 |
from pytube.captions import Caption
|
17 |
from pytube.contrib.playlist import Playlist
|
18 |
from pytube.__main__ import YouTube
|
19 |
+
from pytube.version import __version__
|
20 |
|
21 |
logger = create_logger()
|
22 |
logger.info("%s v%s", __title__, __version__)
|
pytube/version.py
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
__version__ = "9.5.6"
|
setup.py
CHANGED
@@ -10,9 +10,12 @@ here = os.path.abspath(os.path.dirname(__file__))
|
|
10 |
with codecs.open(os.path.join(here, "README.md"), encoding="utf-8") as fh:
|
11 |
long_description = "\n" + fh.read()
|
12 |
|
|
|
|
|
|
|
13 |
setup(
|
14 |
name="pytube3",
|
15 |
-
version=
|
16 |
author="Nick Ficano, Harold Martin",
|
17 |
author_email="nficano@gmail.com, harold.martin@gmail.com",
|
18 |
packages=["pytube", "pytube.contrib"],
|
@@ -45,4 +48,5 @@ setup(
|
|
45 |
long_description_content_type="text/markdown",
|
46 |
long_description=long_description,
|
47 |
zip_safe=True,
|
|
|
48 |
)
|
|
|
10 |
with codecs.open(os.path.join(here, "README.md"), encoding="utf-8") as fh:
|
11 |
long_description = "\n" + fh.read()
|
12 |
|
13 |
+
with open(os.path.join(here, "pytube", "version.py")) as fp:
|
14 |
+
exec(fp.read())
|
15 |
+
|
16 |
setup(
|
17 |
name="pytube3",
|
18 |
+
version=__version__,
|
19 |
author="Nick Ficano, Harold Martin",
|
20 |
author_email="nficano@gmail.com, harold.martin@gmail.com",
|
21 |
packages=["pytube", "pytube.contrib"],
|
|
|
48 |
long_description_content_type="text/markdown",
|
49 |
long_description=long_description,
|
50 |
zip_safe=True,
|
51 |
+
python_requires='>=3.5',
|
52 |
)
|