nficano commited on
Commit
e82fe42
·
1 Parent(s): 0f9dd11

easier pypi updates

Browse files
Files changed (3) hide show
  1. README.rst +22 -11
  2. setup.cfg +13 -0
  3. setup.py +1 -3
README.rst CHANGED
@@ -152,28 +152,28 @@ Same thing for specifying a resolution:
152
  .. code:: bash
153
 
154
  $ pytube -r 720p http://www.youtube.com/watch?v=Ik-RsDGPI5Y
155
-
156
  When run without a resolution or extension, it shows a list of available formats to download
157
 
158
  .. code:: bash
159
 
160
  $ pytube http://www.youtube.com/watch?v=Ik-RsDGPI5Y
161
- Resolution Extension
162
- ----------------------------
163
- 0 3gp 144p
164
- 1 3gp 240p
165
- 2 mp4 360p
166
- 3 mp4 720p
167
- 4 webm 360p
168
- Enter choice:
169
-
170
 
171
  You can see a list of available formats by passing the ``-s`` (or ``--show-available``) flag
172
 
173
  .. code:: bash
174
 
175
  $ pytube -s http://www.youtube.com/watch?v=Ik-RsDGPI5Y
176
-
177
 
178
 
179
  You can also specify a download file path (``-p`` or ``--path=``):
@@ -193,3 +193,14 @@ You can also specify a resolution or desired filetype:
193
  .. code:: bash
194
 
195
  $ pytube -e mp4 -r 720p http://www.youtube.com/watch?v=Ik-RsDGPI5Y
 
 
 
 
 
 
 
 
 
 
 
 
152
  .. code:: bash
153
 
154
  $ pytube -r 720p http://www.youtube.com/watch?v=Ik-RsDGPI5Y
155
+
156
  When run without a resolution or extension, it shows a list of available formats to download
157
 
158
  .. code:: bash
159
 
160
  $ pytube http://www.youtube.com/watch?v=Ik-RsDGPI5Y
161
+ Resolution Extension
162
+ ----------------------------
163
+ 0 3gp 144p
164
+ 1 3gp 240p
165
+ 2 mp4 360p
166
+ 3 mp4 720p
167
+ 4 webm 360p
168
+ Enter choice:
169
+
170
 
171
  You can see a list of available formats by passing the ``-s`` (or ``--show-available``) flag
172
 
173
  .. code:: bash
174
 
175
  $ pytube -s http://www.youtube.com/watch?v=Ik-RsDGPI5Y
176
+
177
 
178
 
179
  You can also specify a download file path (``-p`` or ``--path=``):
 
193
  .. code:: bash
194
 
195
  $ pytube -e mp4 -r 720p http://www.youtube.com/watch?v=Ik-RsDGPI5Y
196
+
197
+ How to release
198
+ ==============
199
+
200
+ .. code:: bash
201
+
202
+ $ git checkout master
203
+ $ bumpversion [major|minor|patch]
204
+ $ python setup.py sdist bdist_wheel upload
205
+ $ bumpversion --no-tag patch
206
+ $ git push origin master --tags
setup.cfg CHANGED
@@ -9,3 +9,16 @@ cover-package=pytube
9
  debug=nose.loader
10
  pdb=0
11
  pdb-failures=0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  debug=nose.loader
10
  pdb=0
11
  pdb-failures=0
12
+
13
+ [bumpversion]
14
+ commit = True
15
+ tag = True
16
+ current_version = 6.2.2
17
+ parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+))?
18
+ serialize =
19
+ {major}.{minor}.{patch}
20
+
21
+ [bumpversion:file:setup.py]
22
+
23
+ [bumpversion:file:pytube/__init__.py]
24
+
setup.py CHANGED
@@ -1,7 +1,5 @@
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:
@@ -15,7 +13,7 @@ with open('LICENSE.txt') as readme_file:
15
 
16
  setup(
17
  name="pytube",
18
- version=__version__,
19
  author="Nick Ficano",
20
  author_email="nficano@gmail.com",
21
  packages=['pytube'],
 
1
  #!/usr/bin/env python
2
  # -*- coding: utf-8 -*-
 
 
3
  try:
4
  from setuptools import setup
5
  except ImportError:
 
13
 
14
  setup(
15
  name="pytube",
16
+ version="6.2.2",
17
  author="Nick Ficano",
18
  author_email="nficano@gmail.com",
19
  packages=['pytube'],