hbmartin commited on
Commit
9fe4c0a
·
1 Parent(s): a56e3db

add black, remove setup.cfg

Browse files
Files changed (4) hide show
  1. Pipfile +1 -0
  2. Pipfile.lock +56 -1
  3. README.md +3 -2
  4. setup.cfg +0 -21
Pipfile CHANGED
@@ -18,6 +18,7 @@ bumpversion = "*"
18
  coveralls = "*"
19
  sphinx_rtd_theme = "*"
20
  mypy = "*"
 
21
 
22
  [requires]
23
  python_version = "3.5"
 
18
  coveralls = "*"
19
  sphinx_rtd_theme = "*"
20
  mypy = "*"
21
+ black = "==19.10b0"
22
 
23
  [requires]
24
  python_version = "3.5"
Pipfile.lock CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "_meta": {
3
  "hash": {
4
- "sha256": "4b426f22218375a7e2ac5af6e6749d2f677e3116d3a9b754637dc187985a2971"
5
  },
6
  "pipfile-spec": 6,
7
  "requires": {
@@ -24,6 +24,13 @@
24
  ],
25
  "version": "==0.7.12"
26
  },
 
 
 
 
 
 
 
27
  "aspy.yaml": {
28
  "hashes": [
29
  "sha256:463372c043f70160a9ec950c3f1e4c3a82db5fca01d334b6bc89c7164d744bdc",
@@ -45,6 +52,14 @@
45
  ],
46
  "version": "==2.8.0"
47
  },
 
 
 
 
 
 
 
 
48
  "bumpversion": {
49
  "hashes": [
50
  "sha256:6744c873dd7aafc24453d8b6a1a0d6d109faf63cd0cd19cb78fd46e74932c77e",
@@ -74,6 +89,13 @@
74
  ],
75
  "version": "==3.0.4"
76
  },
 
 
 
 
 
 
 
77
  "coverage": {
78
  "hashes": [
79
  "sha256:15cf13a6896048d6d947bf7d222f36e4809ab926894beb748fc9caa14605d9c3",
@@ -285,6 +307,13 @@
285
  "index": "pypi",
286
  "version": "==2.3.5"
287
  },
 
 
 
 
 
 
 
288
  "pluggy": {
289
  "hashes": [
290
  "sha256:15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0",
@@ -382,6 +411,32 @@
382
  ],
383
  "version": "==5.3"
384
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
385
  "requests": {
386
  "hashes": [
387
  "sha256:11e007a8a2aa0323f5a921e9e6a2d7e4e67d9877e85773fba9ba6419025cbeb4",
 
1
  {
2
  "_meta": {
3
  "hash": {
4
+ "sha256": "23147cd51fd9a54a33733030a1efd11285d8e1912ca240fa83f2ec2a6e5e88c2"
5
  },
6
  "pipfile-spec": 6,
7
  "requires": {
 
24
  ],
25
  "version": "==0.7.12"
26
  },
27
+ "appdirs": {
28
+ "hashes": [
29
+ "sha256:9e5896d1372858f8dd3344faf4e5014d21849c756c8d5701f78f8a103b372d92",
30
+ "sha256:d8b24664561d0d34ddfaec54636d502d7cea6e29c3eaf68f3df6180863e2166e"
31
+ ],
32
+ "version": "==1.4.3"
33
+ },
34
  "aspy.yaml": {
35
  "hashes": [
36
  "sha256:463372c043f70160a9ec950c3f1e4c3a82db5fca01d334b6bc89c7164d744bdc",
 
52
  ],
53
  "version": "==2.8.0"
54
  },
55
+ "black": {
56
+ "hashes": [
57
+ "sha256:1b30e59be925fafc1ee4565e5e08abef6b03fe455102883820fe5ee2e4734e0b",
58
+ "sha256:c2edb73a08e9e0e6f65a0e6af18b059b8b1cdd5bef997d7a0b181df93dc81539"
59
+ ],
60
+ "index": "pypi",
61
+ "version": "==19.10b0"
62
+ },
63
  "bumpversion": {
64
  "hashes": [
65
  "sha256:6744c873dd7aafc24453d8b6a1a0d6d109faf63cd0cd19cb78fd46e74932c77e",
 
89
  ],
90
  "version": "==3.0.4"
91
  },
92
+ "click": {
93
+ "hashes": [
94
+ "sha256:2335065e6395b9e67ca716de5f7526736bfa6ceead690adf616d925bdc622b13",
95
+ "sha256:5b94b49521f6456670fdb30cd82a4eca9412788a93fa6dd6df72c94d5a8ff2d7"
96
+ ],
97
+ "version": "==7.0"
98
+ },
99
  "coverage": {
100
  "hashes": [
101
  "sha256:15cf13a6896048d6d947bf7d222f36e4809ab926894beb748fc9caa14605d9c3",
 
307
  "index": "pypi",
308
  "version": "==2.3.5"
309
  },
310
+ "pathspec": {
311
+ "hashes": [
312
+ "sha256:163b0632d4e31cef212976cf57b43d9fd6b0bac6e67c26015d611a647d5e7424",
313
+ "sha256:562aa70af2e0d434367d9790ad37aed893de47f1693e4201fd1d3dca15d19b96"
314
+ ],
315
+ "version": "==0.7.0"
316
+ },
317
  "pluggy": {
318
  "hashes": [
319
  "sha256:15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0",
 
411
  ],
412
  "version": "==5.3"
413
  },
414
+ "regex": {
415
+ "hashes": [
416
+ "sha256:07b39bf943d3d2fe63d46281d8504f8df0ff3fe4c57e13d1656737950e53e525",
417
+ "sha256:0932941cdfb3afcbc26cc3bcf7c3f3d73d5a9b9c56955d432dbf8bbc147d4c5b",
418
+ "sha256:0e182d2f097ea8549a249040922fa2b92ae28be4be4895933e369a525ba36576",
419
+ "sha256:10671601ee06cf4dc1bc0b4805309040bb34c9af423c12c379c83d7895622bb5",
420
+ "sha256:23e2c2c0ff50f44877f64780b815b8fd2e003cda9ce817a7fd00dea5600c84a0",
421
+ "sha256:26ff99c980f53b3191d8931b199b29d6787c059f2e029b2b0c694343b1708c35",
422
+ "sha256:27429b8d74ba683484a06b260b7bb00f312e7c757792628ea251afdbf1434003",
423
+ "sha256:3e77409b678b21a056415da3a56abfd7c3ad03da71f3051bbcdb68cf44d3c34d",
424
+ "sha256:4e8f02d3d72ca94efc8396f8036c0d3bcc812aefc28ec70f35bb888c74a25161",
425
+ "sha256:4eae742636aec40cf7ab98171ab9400393360b97e8f9da67b1867a9ee0889b26",
426
+ "sha256:6a6ae17bf8f2d82d1e8858a47757ce389b880083c4ff2498dba17c56e6c103b9",
427
+ "sha256:6a6ba91b94427cd49cd27764679024b14a96874e0dc638ae6bdd4b1a3ce97be1",
428
+ "sha256:7bcd322935377abcc79bfe5b63c44abd0b29387f267791d566bbb566edfdd146",
429
+ "sha256:98b8ed7bb2155e2cbb8b76f627b2fd12cf4b22ab6e14873e8641f266e0fb6d8f",
430
+ "sha256:bd25bb7980917e4e70ccccd7e3b5740614f1c408a642c245019cff9d7d1b6149",
431
+ "sha256:d0f424328f9822b0323b3b6f2e4b9c90960b24743d220763c7f07071e0778351",
432
+ "sha256:d58e4606da2a41659c84baeb3cfa2e4c87a74cec89a1e7c56bee4b956f9d7461",
433
+ "sha256:e3cd21cc2840ca67de0bbe4071f79f031c81418deb544ceda93ad75ca1ee9f7b",
434
+ "sha256:e6c02171d62ed6972ca8631f6f34fa3281d51db8b326ee397b9c83093a6b7242",
435
+ "sha256:e7c7661f7276507bce416eaae22040fd91ca471b5b33c13f8ff21137ed6f248c",
436
+ "sha256:ecc6de77df3ef68fee966bb8cb4e067e84d4d1f397d0ef6fce46913663540d77"
437
+ ],
438
+ "version": "==2020.1.8"
439
+ },
440
  "requests": {
441
  "hashes": [
442
  "sha256:11e007a8a2aa0323f5a921e9e6a2d7e4e67d9877e85773fba9ba6419025cbeb4",
README.md CHANGED
@@ -22,6 +22,7 @@ Finally *pytube* also includes a command-line utility, allowing you to quickly d
22
  ### Behold, a perfect balance of simplicity versus flexibility:
23
 
24
  ```python
 
25
  >>> YouTube('https://youtu.be/9bZkp7q19f0').streams.first().download()
26
  >>> yt = YouTube('http://youtube.com/watch?v=9bZkp7q19f0')
27
  >>> yt.streams
@@ -218,12 +219,12 @@ pytube also ships with a tiny cli interface for downloading and probing videos.
218
  Let's start with downloading:
219
 
220
  ```bash
221
- $ pytube http://youtube.com/watch?v=9bZkp7q19f0 --itag=22
222
  ```
223
  To view available streams:
224
 
225
  ```bash
226
- $ pytube http://youtube.com/watch?v=9bZkp7q19f0 --list
227
  ```
228
 
229
  Finally, if you're filing a bug report, the cli contains a switch called ``--build-playback-report``, which bundles up the state, allowing others to easily replay your issue.
 
22
  ### Behold, a perfect balance of simplicity versus flexibility:
23
 
24
  ```python
25
+ >>> from pytube import YouTube
26
  >>> YouTube('https://youtu.be/9bZkp7q19f0').streams.first().download()
27
  >>> yt = YouTube('http://youtube.com/watch?v=9bZkp7q19f0')
28
  >>> yt.streams
 
219
  Let's start with downloading:
220
 
221
  ```bash
222
+ $ pytube3 http://youtube.com/watch?v=9bZkp7q19f0 --itag=22
223
  ```
224
  To view available streams:
225
 
226
  ```bash
227
+ $ pytube3 http://youtube.com/watch?v=9bZkp7q19f0 --list
228
  ```
229
 
230
  Finally, if you're filing a bug report, the cli contains a switch called ``--build-playback-report``, which bundles up the state, allowing others to easily replay your issue.
setup.cfg DELETED
@@ -1,21 +0,0 @@
1
- [bumpversion]
2
- commit = True
3
- tag = True
4
- current_version = 9.5.5
5
- parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+))?
6
- serialize =
7
- {major}.{minor}.{patch}
8
-
9
- [metadata]
10
- description-file = README.md
11
-
12
- [bumpversion:file:setup.py]
13
-
14
- [bumpversion:file:pytube/__init__.py]
15
-
16
- [coverage:run]
17
- source = pytube
18
-
19
- [flake8]
20
- ignore = W605
21
-