nficano commited on
Commit
d00a353
·
1 Parent(s): 5978020

updated description/how files are read

Browse files
Files changed (1) hide show
  1. setup.py +8 -11
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
- def open_file(fname):
15
- return open(os.path.join(os.path.dirname(__file__), fname))
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
- url="http://pytube.nickficano.com",
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 package for downloading "
44
- "YouTube videos.",
45
- long_description=open_file('README.rst').read(),
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
  )