Taylor Fox Dahlin
Jürgen Gmach
commited on
Updated setup.py to reflect current state of the project. (#740)
Browse files* Updated setup.py to reflect current state of the project.
Co-authored-by: Jürgen Gmach <[email protected]>
- pytube/cipher.py +1 -1
- setup.py +7 -5
pytube/cipher.py
CHANGED
@@ -108,7 +108,7 @@ def get_initial_function_name(js: str) -> str:
|
|
108 |
function_patterns = [
|
109 |
r"\b[cs]\s*&&\s*[adf]\.set\([^,]+\s*,\s*encodeURIComponent\s*\(\s*(?P<sig>[a-zA-Z0-9$]+)\(", # noqa: E501
|
110 |
r"\b[a-zA-Z0-9]+\s*&&\s*[a-zA-Z0-9]+\.set\([^,]+\s*,\s*encodeURIComponent\s*\(\s*(?P<sig>[a-zA-Z0-9$]+)\(", # noqa: E501
|
111 |
-
r'(?:\b|[^a-zA-Z0-9$])(?P<sig>[a-zA-Z0-9$]{2})\s*=\s*function\(\s*a\s*\)\s*{\s*a\s*=\s*a\.split\(\s*""\s*\)',
|
112 |
r'(?P<sig>[a-zA-Z0-9$]+)\s*=\s*function\(\s*a\s*\)\s*{\s*a\s*=\s*a\.split\(\s*""\s*\)', # noqa: E501
|
113 |
r'(["\'])signature\1\s*,\s*(?P<sig>[a-zA-Z0-9$]+)\(',
|
114 |
r"\.sig\|\|(?P<sig>[a-zA-Z0-9$]+)\(",
|
|
|
108 |
function_patterns = [
|
109 |
r"\b[cs]\s*&&\s*[adf]\.set\([^,]+\s*,\s*encodeURIComponent\s*\(\s*(?P<sig>[a-zA-Z0-9$]+)\(", # noqa: E501
|
110 |
r"\b[a-zA-Z0-9]+\s*&&\s*[a-zA-Z0-9]+\.set\([^,]+\s*,\s*encodeURIComponent\s*\(\s*(?P<sig>[a-zA-Z0-9$]+)\(", # noqa: E501
|
111 |
+
r'(?:\b|[^a-zA-Z0-9$])(?P<sig>[a-zA-Z0-9$]{2})\s*=\s*function\(\s*a\s*\)\s*{\s*a\s*=\s*a\.split\(\s*""\s*\)', # noqa: E501
|
112 |
r'(?P<sig>[a-zA-Z0-9$]+)\s*=\s*function\(\s*a\s*\)\s*{\s*a\s*=\s*a\.split\(\s*""\s*\)', # noqa: E501
|
113 |
r'(["\'])signature\1\s*,\s*(?P<sig>[a-zA-Z0-9$]+)\(',
|
114 |
r"\.sig\|\|(?P<sig>[a-zA-Z0-9$]+)\(",
|
setup.py
CHANGED
@@ -15,15 +15,17 @@ with open(os.path.join(here, "pytube", "version.py")) as fp:
|
|
15 |
exec(fp.read())
|
16 |
|
17 |
setup(
|
18 |
-
name="
|
19 |
version=__version__, # noqa: F821
|
20 |
author="Nick Ficano, Harold Martin",
|
21 |
author_email="[email protected], [email protected]",
|
22 |
packages=["pytube", "pytube.contrib"],
|
23 |
package_data={"": ["LICENSE"],},
|
24 |
-
url="https://github.com/
|
25 |
license="MIT",
|
26 |
-
entry_points={
|
|
|
|
|
27 |
install_requires=["typing_extensions"],
|
28 |
classifiers=[
|
29 |
"Development Status :: 5 - Production/Stable",
|
@@ -52,8 +54,8 @@ setup(
|
|
52 |
zip_safe=True,
|
53 |
python_requires=">=3.6",
|
54 |
project_urls={
|
55 |
-
"Bug Reports": "https://github.com/
|
56 |
-
"Read the Docs": "https://
|
57 |
},
|
58 |
keywords=["youtube", "download", "video", "stream",],
|
59 |
)
|
|
|
15 |
exec(fp.read())
|
16 |
|
17 |
setup(
|
18 |
+
name="pytube",
|
19 |
version=__version__, # noqa: F821
|
20 |
author="Nick Ficano, Harold Martin",
|
21 |
author_email="[email protected], [email protected]",
|
22 |
packages=["pytube", "pytube.contrib"],
|
23 |
package_data={"": ["LICENSE"],},
|
24 |
+
url="https://github.com/nficano/pytube",
|
25 |
license="MIT",
|
26 |
+
entry_points={
|
27 |
+
"console_scripts": [
|
28 |
+
"pytube = pytube.cli:main", "pytube3 = pytube.cli:main"],},
|
29 |
install_requires=["typing_extensions"],
|
30 |
classifiers=[
|
31 |
"Development Status :: 5 - Production/Stable",
|
|
|
54 |
zip_safe=True,
|
55 |
python_requires=">=3.6",
|
56 |
project_urls={
|
57 |
+
"Bug Reports": "https://github.com/nficano/pytube/issues",
|
58 |
+
"Read the Docs": "https://python-pytube.readthedocs.io/en/latest",
|
59 |
},
|
60 |
keywords=["youtube", "download", "video", "stream",],
|
61 |
)
|