updated description/how files are read
Browse files
setup.py
CHANGED
@@ -1,19 +1,17 @@
|
|
1 |
#!/usr/bin/env python
|
2 |
# -*- coding: utf-8 -*-
|
3 |
-
|
4 |
from pytube import __version__
|
5 |
-
import os
|
6 |
-
|
7 |
|
8 |
try:
|
9 |
from setuptools import setup
|
10 |
except ImportError:
|
11 |
from distutils.core import setup
|
12 |
|
|
|
|
|
13 |
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
|
18 |
setup(
|
19 |
name="pytube",
|
@@ -21,8 +19,7 @@ setup(
|
|
21 |
author="Nick Ficano",
|
22 |
author_email="[email protected]",
|
23 |
packages=['pytube'],
|
24 |
-
|
25 |
-
license=open_file('LICENSE.txt').read(),
|
26 |
scripts=['scripts/pytube'],
|
27 |
classifiers=[
|
28 |
"Development Status :: 4 - Beta",
|
@@ -40,8 +37,8 @@ setup(
|
|
40 |
"Topic :: Internet",
|
41 |
"Topic :: Multimedia :: Video"
|
42 |
],
|
43 |
-
description="A simple, yet versatile
|
44 |
-
|
45 |
-
long_description=
|
46 |
zip_safe=True,
|
47 |
)
|
|
|
1 |
#!/usr/bin/env python
|
2 |
# -*- coding: utf-8 -*-
|
|
|
3 |
from pytube import __version__
|
|
|
|
|
4 |
|
5 |
try:
|
6 |
from setuptools import setup
|
7 |
except ImportError:
|
8 |
from distutils.core import setup
|
9 |
|
10 |
+
with open('README.rst') as readme_file:
|
11 |
+
readme = readme_file.read()
|
12 |
|
13 |
+
with open('LICENSE.txt') as readme_file:
|
14 |
+
license = readme_file.read()
|
|
|
15 |
|
16 |
setup(
|
17 |
name="pytube",
|
|
|
19 |
author="Nick Ficano",
|
20 |
author_email="[email protected]",
|
21 |
packages=['pytube'],
|
22 |
+
license=license,
|
|
|
23 |
scripts=['scripts/pytube'],
|
24 |
classifiers=[
|
25 |
"Development Status :: 4 - Beta",
|
|
|
37 |
"Topic :: Internet",
|
38 |
"Topic :: Multimedia :: Video"
|
39 |
],
|
40 |
+
description=("A simple, yet versatile Python library (and command-line) "
|
41 |
+
"for downloading YouTube videos."),
|
42 |
+
long_description=readme,
|
43 |
zip_safe=True,
|
44 |
)
|