Jose Diaz-Gonzalez
commited on
Commit
·
620e826
1
Parent(s):
b476880
Cleanup setup.py
Browse files
setup.py
CHANGED
@@ -1,23 +1,28 @@
|
|
1 |
#!/usr/bin/env python
|
|
|
2 |
|
3 |
-
from
|
4 |
-
import
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
-
packages = [
|
7 |
-
'pytube'
|
8 |
-
]
|
9 |
|
10 |
setup(
|
11 |
name="pytube",
|
12 |
-
version=
|
13 |
-
description="A simple, yet versatile package for downloading "
|
14 |
-
"YouTube videos.",
|
15 |
author="Nick Ficano",
|
16 |
author_email="nficano@gmail.com",
|
|
|
17 |
url="http://pytube.nickficano.com",
|
18 |
-
|
19 |
-
download_url="https://github.com/NFicano/pytube/tarball/0.1.16",
|
20 |
-
license="MIT License",
|
21 |
scripts=['scripts/pytubectl'],
|
22 |
classifiers=[
|
23 |
"Development Status :: 4 - Beta",
|
@@ -34,4 +39,8 @@ setup(
|
|
34 |
"Topic :: Internet",
|
35 |
"Topic :: Multimedia :: Video"
|
36 |
],
|
|
|
|
|
|
|
|
|
37 |
)
|
|
|
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 |
+
def open_file(fname):
|
15 |
+
return open(os.path.join(os.path.dirname(__file__), fname))
|
16 |
|
|
|
|
|
|
|
17 |
|
18 |
setup(
|
19 |
name="pytube",
|
20 |
+
version=__version__,
|
|
|
|
|
21 |
author="Nick Ficano",
|
22 |
author_email="nficano@gmail.com",
|
23 |
+
packages=['pytube'],
|
24 |
url="http://pytube.nickficano.com",
|
25 |
+
license=open_file('LICENSE.txt').read(),
|
|
|
|
|
26 |
scripts=['scripts/pytubectl'],
|
27 |
classifiers=[
|
28 |
"Development Status :: 4 - Beta",
|
|
|
39 |
"Topic :: Internet",
|
40 |
"Topic :: Multimedia :: Video"
|
41 |
],
|
42 |
+
description="A simple, yet versatile package for downloading "
|
43 |
+
"YouTube videos.",
|
44 |
+
long_description=open_file('README.rst').read(),
|
45 |
+
zip_safe=True,
|
46 |
)
|