github-backup 0.44.1__tar.gz → 0.45.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,540 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
- 0.44.1 (2023-12-09)
4
+ 0.45.1 (2024-03-17)
5
5
  -------------------
6
6
  ------------------------
7
+ - Remove trailing whitespaces. [dale-primer-e]
8
+
9
+ That are triggering flake.
10
+ - Fix error with as_app flag. [dale-primer-e]
11
+ - Fix error downloading assets. [dale-primer-e]
12
+
13
+ When downloading assets using a fine grained token you will get a "can't
14
+ concat str to bytes" error. This is due to the fine grained token being
15
+ concatenated onto bytes in the line:
16
+
17
+ `request.add_header("Authorization", "Basic ".encode("ascii") + auth)`
18
+
19
+ This is better handled in the function `_construct_request` so I changed
20
+ the lines that construct the request in `download_file` to use the
21
+ function `_construct_request` and updated the function signature to
22
+ reflect that.
23
+ - Chore(deps): bump the python-packages group with 1 update.
24
+ [dependabot[bot]]
25
+
26
+ Bumps the python-packages group with 1 update: [zipp](https://github.com/jaraco/zipp).
27
+
28
+
29
+ Updates `zipp` from 3.18.0 to 3.18.1
30
+ - [Release notes](https://github.com/jaraco/zipp/releases)
31
+ - [Changelog](https://github.com/jaraco/zipp/blob/main/NEWS.rst)
32
+ - [Commits](https://github.com/jaraco/zipp/compare/v3.18.0...v3.18.1)
33
+
34
+ ---
35
+ updated-dependencies:
36
+ - dependency-name: zipp
37
+ dependency-type: direct:production
38
+ update-type: version-update:semver-patch
39
+ dependency-group: python-packages
40
+ ...
41
+ - Chore(deps): bump the python-packages group with 1 update.
42
+ [dependabot[bot]]
43
+
44
+ Bumps the python-packages group with 1 update: [zipp](https://github.com/jaraco/zipp).
45
+
46
+
47
+ Updates `zipp` from 3.17.0 to 3.18.0
48
+ - [Release notes](https://github.com/jaraco/zipp/releases)
49
+ - [Changelog](https://github.com/jaraco/zipp/blob/main/NEWS.rst)
50
+ - [Commits](https://github.com/jaraco/zipp/compare/v3.17.0...v3.18.0)
51
+
52
+ ---
53
+ updated-dependencies:
54
+ - dependency-name: zipp
55
+ dependency-type: direct:production
56
+ update-type: version-update:semver-minor
57
+ dependency-group: python-packages
58
+ ...
59
+ - Chore(deps): bump the python-packages group with 2 updates.
60
+ [dependabot[bot]]
61
+
62
+ Bumps the python-packages group with 2 updates: [importlib-metadata](https://github.com/python/importlib_metadata) and [packaging](https://github.com/pypa/packaging).
63
+
64
+
65
+ Updates `importlib-metadata` from 7.0.1 to 7.0.2
66
+ - [Release notes](https://github.com/python/importlib_metadata/releases)
67
+ - [Changelog](https://github.com/python/importlib_metadata/blob/main/NEWS.rst)
68
+ - [Commits](https://github.com/python/importlib_metadata/compare/v7.0.1...v7.0.2)
69
+
70
+ Updates `packaging` from 23.2 to 24.0
71
+ - [Release notes](https://github.com/pypa/packaging/releases)
72
+ - [Changelog](https://github.com/pypa/packaging/blob/main/CHANGELOG.rst)
73
+ - [Commits](https://github.com/pypa/packaging/compare/23.2...24.0)
74
+
75
+ ---
76
+ updated-dependencies:
77
+ - dependency-name: importlib-metadata
78
+ dependency-type: direct:production
79
+ update-type: version-update:semver-patch
80
+ dependency-group: python-packages
81
+ - dependency-name: packaging
82
+ dependency-type: direct:production
83
+ update-type: version-update:semver-major
84
+ dependency-group: python-packages
85
+ ...
86
+ - Chore(deps): bump the python-packages group with 2 updates.
87
+ [dependabot[bot]]
88
+
89
+ Bumps the python-packages group with 2 updates: [pkginfo](https://code.launchpad.net/~tseaver/pkginfo/trunk) and [rich](https://github.com/Textualize/rich).
90
+
91
+
92
+ Updates `pkginfo` from 1.9.6 to 1.10.0
93
+
94
+ Updates `rich` from 13.7.0 to 13.7.1
95
+ - [Release notes](https://github.com/Textualize/rich/releases)
96
+ - [Changelog](https://github.com/Textualize/rich/blob/master/CHANGELOG.md)
97
+ - [Commits](https://github.com/Textualize/rich/compare/v13.7.0...v13.7.1)
98
+
99
+ ---
100
+ updated-dependencies:
101
+ - dependency-name: pkginfo
102
+ dependency-type: direct:production
103
+ update-type: version-update:semver-minor
104
+ dependency-group: python-packages
105
+ - dependency-name: rich
106
+ dependency-type: direct:production
107
+ update-type: version-update:semver-patch
108
+ dependency-group: python-packages
109
+ ...
110
+ - Chore(deps): bump the python-packages group with 1 update.
111
+ [dependabot[bot]]
112
+
113
+ Bumps the python-packages group with 1 update: [keyring](https://github.com/jaraco/keyring).
114
+
115
+
116
+ Updates `keyring` from 24.3.0 to 24.3.1
117
+ - [Release notes](https://github.com/jaraco/keyring/releases)
118
+ - [Changelog](https://github.com/jaraco/keyring/blob/main/NEWS.rst)
119
+ - [Commits](https://github.com/jaraco/keyring/compare/v24.3.0...v24.3.1)
120
+
121
+ ---
122
+ updated-dependencies:
123
+ - dependency-name: keyring
124
+ dependency-type: direct:production
125
+ update-type: version-update:semver-patch
126
+ dependency-group: python-packages
127
+ ...
128
+ - Chore(deps): bump the python-packages group with 1 update.
129
+ [dependabot[bot]]
130
+
131
+ Bumps the python-packages group with 1 update: [readme-renderer](https://github.com/pypa/readme_renderer).
132
+
133
+
134
+ Updates `readme-renderer` from 42.0 to 43.0
135
+ - [Release notes](https://github.com/pypa/readme_renderer/releases)
136
+ - [Changelog](https://github.com/pypa/readme_renderer/blob/main/CHANGES.rst)
137
+ - [Commits](https://github.com/pypa/readme_renderer/compare/42.0...43.0)
138
+
139
+ ---
140
+ updated-dependencies:
141
+ - dependency-name: readme-renderer
142
+ dependency-type: direct:production
143
+ update-type: version-update:semver-major
144
+ dependency-group: python-packages
145
+ ...
146
+ - Chore(deps): bump the python-packages group with 1 update.
147
+ [dependabot[bot]]
148
+
149
+ Bumps the python-packages group with 1 update: [urllib3](https://github.com/urllib3/urllib3).
150
+
151
+
152
+ Updates `urllib3` from 2.2.0 to 2.2.1
153
+ - [Release notes](https://github.com/urllib3/urllib3/releases)
154
+ - [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
155
+ - [Commits](https://github.com/urllib3/urllib3/compare/2.2.0...2.2.1)
156
+
157
+ ---
158
+ updated-dependencies:
159
+ - dependency-name: urllib3
160
+ dependency-type: direct:production
161
+ update-type: version-update:semver-patch
162
+ dependency-group: python-packages
163
+ ...
164
+ - Chore(deps): bump the python-packages group with 1 update.
165
+ [dependabot[bot]]
166
+
167
+ Bumps the python-packages group with 1 update: [black](https://github.com/psf/black).
168
+
169
+
170
+ Updates `black` from 24.1.1 to 24.2.0
171
+ - [Release notes](https://github.com/psf/black/releases)
172
+ - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
173
+ - [Commits](https://github.com/psf/black/compare/24.1.1...24.2.0)
174
+
175
+ ---
176
+ updated-dependencies:
177
+ - dependency-name: black
178
+ dependency-type: direct:production
179
+ update-type: version-update:semver-minor
180
+ dependency-group: python-packages
181
+ ...
182
+ - Chore(deps): bump the python-packages group with 2 updates.
183
+ [dependabot[bot]]
184
+
185
+ Bumps the python-packages group with 2 updates: [tqdm](https://github.com/tqdm/tqdm) and [twine](https://github.com/pypa/twine).
186
+
187
+
188
+ Updates `tqdm` from 4.66.1 to 4.66.2
189
+ - [Release notes](https://github.com/tqdm/tqdm/releases)
190
+ - [Commits](https://github.com/tqdm/tqdm/compare/v4.66.1...v4.66.2)
191
+
192
+ Updates `twine` from 4.0.2 to 5.0.0
193
+ - [Release notes](https://github.com/pypa/twine/releases)
194
+ - [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst)
195
+ - [Commits](https://github.com/pypa/twine/compare/4.0.2...5.0.0)
196
+
197
+ ---
198
+ updated-dependencies:
199
+ - dependency-name: tqdm
200
+ dependency-type: direct:production
201
+ update-type: version-update:semver-patch
202
+ dependency-group: python-packages
203
+ - dependency-name: twine
204
+ dependency-type: direct:production
205
+ update-type: version-update:semver-major
206
+ dependency-group: python-packages
207
+ ...
208
+ - Chore(deps): bump the python-packages group with 1 update.
209
+ [dependabot[bot]]
210
+
211
+ Bumps the python-packages group with 1 update: [jaraco-classes](https://github.com/jaraco/jaraco.classes).
212
+
213
+
214
+ Updates `jaraco-classes` from 3.3.0 to 3.3.1
215
+ - [Release notes](https://github.com/jaraco/jaraco.classes/releases)
216
+ - [Changelog](https://github.com/jaraco/jaraco.classes/blob/main/NEWS.rst)
217
+ - [Commits](https://github.com/jaraco/jaraco.classes/compare/v3.3.0...v3.3.1)
218
+
219
+ ---
220
+ updated-dependencies:
221
+ - dependency-name: jaraco-classes
222
+ dependency-type: direct:production
223
+ update-type: version-update:semver-patch
224
+ dependency-group: python-packages
225
+ ...
226
+ - Chore(deps): bump the python-packages group with 1 update.
227
+ [dependabot[bot]]
228
+
229
+ Bumps the python-packages group with 1 update: [certifi](https://github.com/certifi/python-certifi).
230
+
231
+
232
+ Updates `certifi` from 2023.11.17 to 2024.2.2
233
+ - [Commits](https://github.com/certifi/python-certifi/compare/2023.11.17...2024.02.02)
234
+
235
+ ---
236
+ updated-dependencies:
237
+ - dependency-name: certifi
238
+ dependency-type: direct:production
239
+ update-type: version-update:semver-major
240
+ dependency-group: python-packages
241
+ ...
242
+ - Chore(deps): bump the python-packages group with 2 updates.
243
+ [dependabot[bot]]
244
+
245
+ Bumps the python-packages group with 2 updates: [platformdirs](https://github.com/platformdirs/platformdirs) and [urllib3](https://github.com/urllib3/urllib3).
246
+
247
+
248
+ Updates `platformdirs` from 4.1.0 to 4.2.0
249
+ - [Release notes](https://github.com/platformdirs/platformdirs/releases)
250
+ - [Changelog](https://github.com/platformdirs/platformdirs/blob/main/CHANGES.rst)
251
+ - [Commits](https://github.com/platformdirs/platformdirs/compare/4.1.0...4.2.0)
252
+
253
+ Updates `urllib3` from 2.1.0 to 2.2.0
254
+ - [Release notes](https://github.com/urllib3/urllib3/releases)
255
+ - [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
256
+ - [Commits](https://github.com/urllib3/urllib3/compare/2.1.0...2.2.0)
257
+
258
+ ---
259
+ updated-dependencies:
260
+ - dependency-name: platformdirs
261
+ dependency-type: direct:production
262
+ update-type: version-update:semver-minor
263
+ dependency-group: python-packages
264
+ - dependency-name: urllib3
265
+ dependency-type: direct:production
266
+ update-type: version-update:semver-minor
267
+ dependency-group: python-packages
268
+ ...
269
+ - Chore(deps): bump the python-packages group with 1 update.
270
+ [dependabot[bot]]
271
+
272
+ Bumps the python-packages group with 1 update: [black](https://github.com/psf/black).
273
+
274
+
275
+ Updates `black` from 24.1.0 to 24.1.1
276
+ - [Release notes](https://github.com/psf/black/releases)
277
+ - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
278
+ - [Commits](https://github.com/psf/black/compare/24.1.0...24.1.1)
279
+
280
+ ---
281
+ updated-dependencies:
282
+ - dependency-name: black
283
+ dependency-type: direct:production
284
+ update-type: version-update:semver-patch
285
+ dependency-group: python-packages
286
+ ...
287
+
288
+
289
+ 0.45.0 (2024-01-29)
290
+ -------------------
291
+
292
+ Fix
293
+ ~~~
294
+ - Catch 404s for non-existing hooks. Fixes #176. [Moritz Federspiel]
295
+ - Ensure wheel is installed. [Jose Diaz-Gonzalez]
296
+
297
+ Other
298
+ ~~~~~
299
+ - Fix code style. [BrOleg5]
300
+ - Add option to skip prerelease versions. [BrOleg5]
301
+
302
+ Replace release sorting by tag with release sorting by creation date.
303
+ - Add option to include certain number of the latest releases. [BrOleg5]
304
+ - Auto docker build. [8cH9azbsFifZ]
305
+ - Vs code. [8cH9azbsFifZ]
306
+ - Chore(deps): bump the python-packages group with 6 updates.
307
+ [dependabot[bot]]
308
+
309
+ Bumps the python-packages group with 6 updates:
310
+
311
+ | Package | From | To |
312
+ | --- | --- | --- |
313
+ | [black](https://github.com/psf/black) | `23.11.0` | `24.1.0` |
314
+ | [flake8](https://github.com/pycqa/flake8) | `6.1.0` | `7.0.0` |
315
+ | [importlib-metadata](https://github.com/python/importlib_metadata) | `7.0.0` | `7.0.1` |
316
+ | [more-itertools](https://github.com/more-itertools/more-itertools) | `10.1.0` | `10.2.0` |
317
+ | [pathspec](https://github.com/cpburnz/python-pathspec) | `0.11.2` | `0.12.1` |
318
+ | [pyflakes](https://github.com/PyCQA/pyflakes) | `3.1.0` | `3.2.0` |
319
+
320
+
321
+ Updates `black` from 23.11.0 to 24.1.0
322
+ - [Release notes](https://github.com/psf/black/releases)
323
+ - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
324
+ - [Commits](https://github.com/psf/black/compare/23.11.0...24.1.0)
325
+
326
+ Updates `flake8` from 6.1.0 to 7.0.0
327
+ - [Commits](https://github.com/pycqa/flake8/compare/6.1.0...7.0.0)
328
+
329
+ Updates `importlib-metadata` from 7.0.0 to 7.0.1
330
+ - [Release notes](https://github.com/python/importlib_metadata/releases)
331
+ - [Changelog](https://github.com/python/importlib_metadata/blob/main/NEWS.rst)
332
+ - [Commits](https://github.com/python/importlib_metadata/compare/v7.0.0...v7.0.1)
333
+
334
+ Updates `more-itertools` from 10.1.0 to 10.2.0
335
+ - [Release notes](https://github.com/more-itertools/more-itertools/releases)
336
+ - [Commits](https://github.com/more-itertools/more-itertools/compare/v10.1.0...v10.2.0)
337
+
338
+ Updates `pathspec` from 0.11.2 to 0.12.1
339
+ - [Release notes](https://github.com/cpburnz/python-pathspec/releases)
340
+ - [Changelog](https://github.com/cpburnz/python-pathspec/blob/master/CHANGES.rst)
341
+ - [Commits](https://github.com/cpburnz/python-pathspec/compare/v0.11.2...v0.12.1)
342
+
343
+ Updates `pyflakes` from 3.1.0 to 3.2.0
344
+ - [Changelog](https://github.com/PyCQA/pyflakes/blob/main/NEWS.rst)
345
+ - [Commits](https://github.com/PyCQA/pyflakes/compare/3.1.0...3.2.0)
346
+
347
+ ---
348
+ updated-dependencies:
349
+ - dependency-name: black
350
+ dependency-type: direct:production
351
+ update-type: version-update:semver-major
352
+ dependency-group: python-packages
353
+ - dependency-name: flake8
354
+ dependency-type: direct:production
355
+ update-type: version-update:semver-major
356
+ dependency-group: python-packages
357
+ - dependency-name: importlib-metadata
358
+ dependency-type: direct:production
359
+ update-type: version-update:semver-patch
360
+ dependency-group: python-packages
361
+ - dependency-name: more-itertools
362
+ dependency-type: direct:production
363
+ update-type: version-update:semver-minor
364
+ dependency-group: python-packages
365
+ - dependency-name: pathspec
366
+ dependency-type: direct:production
367
+ update-type: version-update:semver-minor
368
+ dependency-group: python-packages
369
+ - dependency-name: pyflakes
370
+ dependency-type: direct:production
371
+ update-type: version-update:semver-minor
372
+ dependency-group: python-packages
373
+ ...
374
+ - Chore(deps): bump the python-packages group with 15 updates.
375
+ [dependabot[bot]]
376
+
377
+ Bumps the python-packages group with 15 updates:
378
+
379
+ | Package | From | To |
380
+ | --- | --- | --- |
381
+ | [bleach](https://github.com/mozilla/bleach) | `6.0.0` | `6.1.0` |
382
+ | [certifi](https://github.com/certifi/python-certifi) | `2023.7.22` | `2023.11.17` |
383
+ | [charset-normalizer](https://github.com/Ousret/charset_normalizer) | `3.1.0` | `3.3.2` |
384
+ | [idna](https://github.com/kjd/idna) | `3.4` | `3.6` |
385
+ | [importlib-metadata](https://github.com/python/importlib_metadata) | `6.6.0` | `7.0.0` |
386
+ | [jaraco-classes](https://github.com/jaraco/jaraco.classes) | `3.2.3` | `3.3.0` |
387
+ | [keyring](https://github.com/jaraco/keyring) | `23.13.1` | `24.3.0` |
388
+ | [markdown-it-py](https://github.com/executablebooks/markdown-it-py) | `2.2.0` | `3.0.0` |
389
+ | [more-itertools](https://github.com/more-itertools/more-itertools) | `9.1.0` | `10.1.0` |
390
+ | [pygments](https://github.com/pygments/pygments) | `2.15.1` | `2.17.2` |
391
+ | [readme-renderer](https://github.com/pypa/readme_renderer) | `37.3` | `42.0` |
392
+ | [rich](https://github.com/Textualize/rich) | `13.3.5` | `13.7.0` |
393
+ | [tqdm](https://github.com/tqdm/tqdm) | `4.65.0` | `4.66.1` |
394
+ | [urllib3](https://github.com/urllib3/urllib3) | `2.0.7` | `2.1.0` |
395
+ | [zipp](https://github.com/jaraco/zipp) | `3.15.0` | `3.17.0` |
396
+
397
+
398
+ Updates `bleach` from 6.0.0 to 6.1.0
399
+ - [Changelog](https://github.com/mozilla/bleach/blob/main/CHANGES)
400
+ - [Commits](https://github.com/mozilla/bleach/compare/v6.0.0...v6.1.0)
401
+
402
+ Updates `certifi` from 2023.7.22 to 2023.11.17
403
+ - [Commits](https://github.com/certifi/python-certifi/compare/2023.07.22...2023.11.17)
404
+
405
+ Updates `charset-normalizer` from 3.1.0 to 3.3.2
406
+ - [Release notes](https://github.com/Ousret/charset_normalizer/releases)
407
+ - [Changelog](https://github.com/Ousret/charset_normalizer/blob/master/CHANGELOG.md)
408
+ - [Commits](https://github.com/Ousret/charset_normalizer/compare/3.1.0...3.3.2)
409
+
410
+ Updates `idna` from 3.4 to 3.6
411
+ - [Changelog](https://github.com/kjd/idna/blob/master/HISTORY.rst)
412
+ - [Commits](https://github.com/kjd/idna/compare/v3.4...v3.6)
413
+
414
+ Updates `importlib-metadata` from 6.6.0 to 7.0.0
415
+ - [Release notes](https://github.com/python/importlib_metadata/releases)
416
+ - [Changelog](https://github.com/python/importlib_metadata/blob/main/NEWS.rst)
417
+ - [Commits](https://github.com/python/importlib_metadata/compare/v6.6.0...v7.0.0)
418
+
419
+ Updates `jaraco-classes` from 3.2.3 to 3.3.0
420
+ - [Release notes](https://github.com/jaraco/jaraco.classes/releases)
421
+ - [Changelog](https://github.com/jaraco/jaraco.classes/blob/main/NEWS.rst)
422
+ - [Commits](https://github.com/jaraco/jaraco.classes/compare/v3.2.3...v3.3.0)
423
+
424
+ Updates `keyring` from 23.13.1 to 24.3.0
425
+ - [Release notes](https://github.com/jaraco/keyring/releases)
426
+ - [Changelog](https://github.com/jaraco/keyring/blob/main/NEWS.rst)
427
+ - [Commits](https://github.com/jaraco/keyring/compare/v23.13.1...v24.3.0)
428
+
429
+ Updates `markdown-it-py` from 2.2.0 to 3.0.0
430
+ - [Release notes](https://github.com/executablebooks/markdown-it-py/releases)
431
+ - [Changelog](https://github.com/executablebooks/markdown-it-py/blob/master/CHANGELOG.md)
432
+ - [Commits](https://github.com/executablebooks/markdown-it-py/compare/v2.2.0...v3.0.0)
433
+
434
+ Updates `more-itertools` from 9.1.0 to 10.1.0
435
+ - [Release notes](https://github.com/more-itertools/more-itertools/releases)
436
+ - [Commits](https://github.com/more-itertools/more-itertools/compare/v9.1.0...v10.1.0)
437
+
438
+ Updates `pygments` from 2.15.1 to 2.17.2
439
+ - [Release notes](https://github.com/pygments/pygments/releases)
440
+ - [Changelog](https://github.com/pygments/pygments/blob/master/CHANGES)
441
+ - [Commits](https://github.com/pygments/pygments/compare/2.15.1...2.17.2)
442
+
443
+ Updates `readme-renderer` from 37.3 to 42.0
444
+ - [Release notes](https://github.com/pypa/readme_renderer/releases)
445
+ - [Changelog](https://github.com/pypa/readme_renderer/blob/main/CHANGES.rst)
446
+ - [Commits](https://github.com/pypa/readme_renderer/compare/37.3...42.0)
447
+
448
+ Updates `rich` from 13.3.5 to 13.7.0
449
+ - [Release notes](https://github.com/Textualize/rich/releases)
450
+ - [Changelog](https://github.com/Textualize/rich/blob/master/CHANGELOG.md)
451
+ - [Commits](https://github.com/Textualize/rich/compare/v13.3.5...v13.7.0)
452
+
453
+ Updates `tqdm` from 4.65.0 to 4.66.1
454
+ - [Release notes](https://github.com/tqdm/tqdm/releases)
455
+ - [Commits](https://github.com/tqdm/tqdm/compare/v4.65.0...v4.66.1)
456
+
457
+ Updates `urllib3` from 2.0.7 to 2.1.0
458
+ - [Release notes](https://github.com/urllib3/urllib3/releases)
459
+ - [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
460
+ - [Commits](https://github.com/urllib3/urllib3/compare/2.0.7...2.1.0)
461
+
462
+ Updates `zipp` from 3.15.0 to 3.17.0
463
+ - [Release notes](https://github.com/jaraco/zipp/releases)
464
+ - [Changelog](https://github.com/jaraco/zipp/blob/main/NEWS.rst)
465
+ - [Commits](https://github.com/jaraco/zipp/compare/v3.15.0...v3.17.0)
466
+
467
+ ---
468
+ updated-dependencies:
469
+ - dependency-name: bleach
470
+ dependency-type: direct:production
471
+ update-type: version-update:semver-minor
472
+ dependency-group: python-packages
473
+ - dependency-name: certifi
474
+ dependency-type: direct:production
475
+ update-type: version-update:semver-minor
476
+ dependency-group: python-packages
477
+ - dependency-name: charset-normalizer
478
+ dependency-type: direct:production
479
+ update-type: version-update:semver-minor
480
+ dependency-group: python-packages
481
+ - dependency-name: idna
482
+ dependency-type: direct:production
483
+ update-type: version-update:semver-minor
484
+ dependency-group: python-packages
485
+ - dependency-name: importlib-metadata
486
+ dependency-type: direct:production
487
+ update-type: version-update:semver-major
488
+ dependency-group: python-packages
489
+ - dependency-name: jaraco-classes
490
+ dependency-type: direct:production
491
+ update-type: version-update:semver-minor
492
+ dependency-group: python-packages
493
+ - dependency-name: keyring
494
+ dependency-type: direct:production
495
+ update-type: version-update:semver-major
496
+ dependency-group: python-packages
497
+ - dependency-name: markdown-it-py
498
+ dependency-type: direct:production
499
+ update-type: version-update:semver-major
500
+ dependency-group: python-packages
501
+ - dependency-name: more-itertools
502
+ dependency-type: direct:production
503
+ update-type: version-update:semver-major
504
+ dependency-group: python-packages
505
+ - dependency-name: pygments
506
+ dependency-type: direct:production
507
+ update-type: version-update:semver-minor
508
+ dependency-group: python-packages
509
+ - dependency-name: readme-renderer
510
+ dependency-type: direct:production
511
+ update-type: version-update:semver-major
512
+ dependency-group: python-packages
513
+ - dependency-name: rich
514
+ dependency-type: direct:production
515
+ update-type: version-update:semver-minor
516
+ dependency-group: python-packages
517
+ - dependency-name: tqdm
518
+ dependency-type: direct:production
519
+ update-type: version-update:semver-minor
520
+ dependency-group: python-packages
521
+ - dependency-name: urllib3
522
+ dependency-type: direct:production
523
+ update-type: version-update:semver-minor
524
+ dependency-group: python-packages
525
+ - dependency-name: zipp
526
+ dependency-type: direct:production
527
+ update-type: version-update:semver-minor
528
+ dependency-group: python-packages
529
+ ...
530
+ - Chore: format python code. [Jose Diaz-Gonzalez]
531
+ - Chore: format yaml. [Jose Diaz-Gonzalez]
532
+ - Chore: update gitignore. [Jose Diaz-Gonzalez]
533
+ - Feat: add dependabot config to repository. [Jose Diaz-Gonzalez]
534
+
535
+
536
+ 0.44.1 (2023-12-09)
537
+ -------------------
7
538
 
8
539
  Fix
9
540
  ~~~
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: github-backup
3
- Version: 0.44.1
3
+ Version: 0.45.1
4
4
  Summary: backup a github user or organization
5
5
  Home-page: http://github.com/josegonzalez/python-github-backup
6
6
  Author: Jose Diaz-Gonzalez
@@ -57,7 +57,9 @@ Description: =============
57
57
  [-P] [-F] [--prefer-ssh] [-v]
58
58
  [--keychain-name OSX_KEYCHAIN_ITEM_NAME]
59
59
  [--keychain-account OSX_KEYCHAIN_ITEM_ACCOUNT]
60
- [--releases] [--assets] [--exclude [REPOSITORY [REPOSITORY ...]]
60
+ [--releases] [--latest-releases NUMBER_OF_LATEST_RELEASES]
61
+ [--skip-prerelease] [--assets]
62
+ [--exclude [REPOSITORY [REPOSITORY ...]]
61
63
  [--throttle-limit THROTTLE_LIMIT] [--throttle-pause THROTTLE_PAUSE]
62
64
  USER
63
65
 
@@ -132,6 +134,10 @@ Description: =============
132
134
  keychain that holds the personal access or OAuth token
133
135
  --releases include release information, not including assets or
134
136
  binaries
137
+ --latest-releases NUMBER_OF_LATEST_RELEASES
138
+ include certain number of the latest releases;
139
+ only applies if including releases
140
+ --skip-prerelease skip prerelease and draft versions; only applies if including releases
135
141
  --assets include assets alongside release information; only
136
142
  applies if including releases
137
143
  --exclude [REPOSITORY [REPOSITORY ...]]
@@ -49,7 +49,9 @@ CLI Help output::
49
49
  [-P] [-F] [--prefer-ssh] [-v]
50
50
  [--keychain-name OSX_KEYCHAIN_ITEM_NAME]
51
51
  [--keychain-account OSX_KEYCHAIN_ITEM_ACCOUNT]
52
- [--releases] [--assets] [--exclude [REPOSITORY [REPOSITORY ...]]
52
+ [--releases] [--latest-releases NUMBER_OF_LATEST_RELEASES]
53
+ [--skip-prerelease] [--assets]
54
+ [--exclude [REPOSITORY [REPOSITORY ...]]
53
55
  [--throttle-limit THROTTLE_LIMIT] [--throttle-pause THROTTLE_PAUSE]
54
56
  USER
55
57
 
@@ -124,6 +126,10 @@ CLI Help output::
124
126
  keychain that holds the personal access or OAuth token
125
127
  --releases include release information, not including assets or
126
128
  binaries
129
+ --latest-releases NUMBER_OF_LATEST_RELEASES
130
+ include certain number of the latest releases;
131
+ only applies if including releases
132
+ --skip-prerelease skip prerelease and draft versions; only applies if including releases
127
133
  --assets include assets alongside release information; only
128
134
  applies if including releases
129
135
  --exclude [REPOSITORY [REPOSITORY ...]]
@@ -49,7 +49,9 @@ CLI Help output::
49
49
  [-P] [-F] [--prefer-ssh] [-v]
50
50
  [--keychain-name OSX_KEYCHAIN_ITEM_NAME]
51
51
  [--keychain-account OSX_KEYCHAIN_ITEM_ACCOUNT]
52
- [--releases] [--assets] [--exclude [REPOSITORY [REPOSITORY ...]]
52
+ [--releases] [--latest-releases NUMBER_OF_LATEST_RELEASES]
53
+ [--skip-prerelease] [--assets]
54
+ [--exclude [REPOSITORY [REPOSITORY ...]]
53
55
  [--throttle-limit THROTTLE_LIMIT] [--throttle-pause THROTTLE_PAUSE]
54
56
  USER
55
57
 
@@ -124,6 +126,10 @@ CLI Help output::
124
126
  keychain that holds the personal access or OAuth token
125
127
  --releases include release information, not including assets or
126
128
  binaries
129
+ --latest-releases NUMBER_OF_LATEST_RELEASES
130
+ include certain number of the latest releases;
131
+ only applies if including releases
132
+ --skip-prerelease skip prerelease and draft versions; only applies if including releases
127
133
  --assets include assets alongside release information; only
128
134
  applies if including releases
129
135
  --exclude [REPOSITORY [REPOSITORY ...]]
@@ -1,12 +1,8 @@
1
1
  #!/usr/bin/env python
2
2
 
3
- import os, sys, logging
4
-
5
- logging.basicConfig(
6
- format='%(asctime)s.%(msecs)03d: %(message)s',
7
- datefmt='%Y-%m-%dT%H:%M:%S',
8
- level=logging.INFO
9
- )
3
+ import logging
4
+ import os
5
+ import sys
10
6
 
11
7
  from github_backup.github_backup import (
12
8
  backup_account,
@@ -20,6 +16,12 @@ from github_backup.github_backup import (
20
16
  retrieve_repositories,
21
17
  )
22
18
 
19
+ logging.basicConfig(
20
+ format="%(asctime)s.%(msecs)03d: %(message)s",
21
+ datefmt="%Y-%m-%dT%H:%M:%S",
22
+ level=logging.INFO,
23
+ )
24
+
23
25
 
24
26
  def main():
25
27
  args = parse_args()
@@ -29,7 +31,7 @@ def main():
29
31
 
30
32
  output_directory = os.path.realpath(args.output_directory)
31
33
  if not os.path.isdir(output_directory):
32
- logger.info('Create output directory {0}'.format(output_directory))
34
+ logger.info("Create output directory {0}".format(output_directory))
33
35
  mkdir_p(output_directory)
34
36
 
35
37
  if args.lfs_clone:
@@ -41,10 +43,10 @@ def main():
41
43
  logger.root.setLevel(log_level)
42
44
 
43
45
  if not args.as_app:
44
- logger.info('Backing up user {0} to {1}'.format(args.user, output_directory))
46
+ logger.info("Backing up user {0} to {1}".format(args.user, output_directory))
45
47
  authenticated_user = get_authenticated_user(args)
46
48
  else:
47
- authenticated_user = {'login': None}
49
+ authenticated_user = {"login": None}
48
50
 
49
51
  repositories = retrieve_repositories(args, authenticated_user)
50
52
  repositories = filter_repositories(args, repositories)
@@ -52,7 +54,7 @@ def main():
52
54
  backup_account(args, output_directory)
53
55
 
54
56
 
55
- if __name__ == '__main__':
57
+ if __name__ == "__main__":
56
58
  try:
57
59
  main()
58
60
  except Exception as e:
@@ -0,0 +1 @@
1
+ __version__ = "0.45.1"
@@ -23,6 +23,7 @@ from urllib.error import HTTPError, URLError
23
23
  from urllib.parse import quote as urlquote
24
24
  from urllib.parse import urlencode, urlparse
25
25
  from urllib.request import HTTPRedirectHandler, Request, build_opener, urlopen
26
+ from datetime import datetime
26
27
 
27
28
  try:
28
29
  from . import __version__
@@ -376,6 +377,19 @@ def parse_args(args=None):
376
377
  dest="include_releases",
377
378
  help="include release information, not including assets or binaries",
378
379
  )
380
+ parser.add_argument(
381
+ "--latest-releases",
382
+ type=int,
383
+ default=0,
384
+ dest="number_of_latest_releases",
385
+ help="include certain number of the latest releases; only applies if including releases",
386
+ )
387
+ parser.add_argument(
388
+ "--skip-prerelease",
389
+ action="store_true",
390
+ dest="skip_prerelease",
391
+ help="skip prerelease and draft versions; only applies if including releases",
392
+ )
379
393
  parser.add_argument(
380
394
  "--assets",
381
395
  action="store_true",
@@ -497,7 +511,7 @@ def get_github_host(args):
497
511
 
498
512
 
499
513
  def read_file_contents(file_uri):
500
- return open(file_uri[len(FILE_URI_PREFIX) :], "rt").readline().strip()
514
+ return open(file_uri[len(FILE_URI_PREFIX):], "rt").readline().strip()
501
515
 
502
516
 
503
517
  def get_github_repo_url(args, repository):
@@ -763,14 +777,19 @@ class S3HTTPRedirectHandler(HTTPRedirectHandler):
763
777
  return request
764
778
 
765
779
 
766
- def download_file(url, path, auth):
780
+ def download_file(url, path, auth, as_app=False, fine=False):
767
781
  # Skip downloading release assets if they already exist on disk so we don't redownload on every sync
768
782
  if os.path.exists(path):
769
783
  return
770
784
 
771
- request = Request(url)
785
+ request = _construct_request(per_page=100,
786
+ page=1,
787
+ query_args={},
788
+ template=url,
789
+ auth=auth,
790
+ as_app=as_app,
791
+ fine=fine)
772
792
  request.add_header("Accept", "application/octet-stream")
773
- request.add_header("Authorization", "Basic ".encode("ascii") + auth)
774
793
  opener = build_opener(S3HTTPRedirectHandler)
775
794
 
776
795
  try:
@@ -1189,8 +1208,11 @@ def backup_hooks(args, repo_cwd, repository, repos_template):
1189
1208
  template = "{0}/{1}/hooks".format(repos_template, repository["full_name"])
1190
1209
  try:
1191
1210
  _backup_data(args, "hooks", template, output_file, hook_cwd)
1192
- except SystemExit:
1193
- logger.info("Unable to read hooks, skipping")
1211
+ except Exception as e:
1212
+ if "404" in str(e):
1213
+ logger.info("Unable to read hooks, skipping")
1214
+ else:
1215
+ raise e
1194
1216
 
1195
1217
 
1196
1218
  def backup_releases(args, repo_cwd, repository, repos_template, include_assets=False):
@@ -1206,8 +1228,18 @@ def backup_releases(args, repo_cwd, repository, repos_template, include_assets=F
1206
1228
  release_template = "{0}/{1}/releases".format(repos_template, repository_fullname)
1207
1229
  releases = retrieve_data(args, release_template, query_args=query_args)
1208
1230
 
1231
+ if args.skip_prerelease:
1232
+ releases = [r for r in releases if not r["prerelease"] and not r["draft"]]
1233
+
1234
+ if args.number_of_latest_releases and args.number_of_latest_releases < len(releases):
1235
+ releases.sort(key=lambda item: datetime.strptime(item["created_at"], "%Y-%m-%dT%H:%M:%SZ"),
1236
+ reverse=True)
1237
+ releases = releases[:args.number_of_latest_releases]
1238
+ logger.info("Saving the latest {0} releases to disk".format(len(releases)))
1239
+ else:
1240
+ logger.info("Saving {0} releases to disk".format(len(releases)))
1241
+
1209
1242
  # for each release, store it
1210
- logger.info("Saving {0} releases to disk".format(len(releases)))
1211
1243
  for release in releases:
1212
1244
  release_name = release["tag_name"]
1213
1245
  release_name_safe = release_name.replace("/", "__")
@@ -1228,6 +1260,8 @@ def backup_releases(args, repo_cwd, repository, repos_template, include_assets=F
1228
1260
  asset["url"],
1229
1261
  os.path.join(release_assets_cwd, asset["name"]),
1230
1262
  get_auth(args),
1263
+ as_app=args.as_app,
1264
+ fine=True if args.token_fine is not None else False
1231
1265
  )
1232
1266
 
1233
1267
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: github-backup
3
- Version: 0.44.1
3
+ Version: 0.45.1
4
4
  Summary: backup a github user or organization
5
5
  Home-page: http://github.com/josegonzalez/python-github-backup
6
6
  Author: Jose Diaz-Gonzalez
@@ -57,7 +57,9 @@ Description: =============
57
57
  [-P] [-F] [--prefer-ssh] [-v]
58
58
  [--keychain-name OSX_KEYCHAIN_ITEM_NAME]
59
59
  [--keychain-account OSX_KEYCHAIN_ITEM_ACCOUNT]
60
- [--releases] [--assets] [--exclude [REPOSITORY [REPOSITORY ...]]
60
+ [--releases] [--latest-releases NUMBER_OF_LATEST_RELEASES]
61
+ [--skip-prerelease] [--assets]
62
+ [--exclude [REPOSITORY [REPOSITORY ...]]
61
63
  [--throttle-limit THROTTLE_LIMIT] [--throttle-pause THROTTLE_PAUSE]
62
64
  USER
63
65
 
@@ -132,6 +134,10 @@ Description: =============
132
134
  keychain that holds the personal access or OAuth token
133
135
  --releases include release information, not including assets or
134
136
  binaries
137
+ --latest-releases NUMBER_OF_LATEST_RELEASES
138
+ include certain number of the latest releases;
139
+ only applies if including releases
140
+ --skip-prerelease skip prerelease and draft versions; only applies if including releases
135
141
  --assets include assets alongside release information; only
136
142
  applies if including releases
137
143
  --exclude [REPOSITORY [REPOSITORY ...]]
@@ -0,0 +1,38 @@
1
+ autopep8==2.0.4
2
+ black==24.2.0
3
+ bleach==6.1.0
4
+ certifi==2024.2.2
5
+ charset-normalizer==3.3.2
6
+ click==8.1.7
7
+ colorama==0.4.6
8
+ docutils==0.20.1
9
+ flake8==7.0.0
10
+ gitchangelog==3.0.4
11
+ idna==3.6
12
+ importlib-metadata==7.0.2
13
+ jaraco.classes==3.3.1
14
+ keyring==24.3.1
15
+ markdown-it-py==3.0.0
16
+ mccabe==0.7.0
17
+ mdurl==0.1.2
18
+ more-itertools==10.2.0
19
+ mypy-extensions==1.0.0
20
+ packaging==24.0
21
+ pathspec==0.12.1
22
+ pkginfo==1.10.0
23
+ platformdirs==4.2.0
24
+ pycodestyle==2.11.1
25
+ pyflakes==3.2.0
26
+ Pygments==2.17.2
27
+ readme-renderer==43.0
28
+ requests==2.31.0
29
+ requests-toolbelt==1.0.0
30
+ restructuredtext-lint==1.4.0
31
+ rfc3986==2.0.0
32
+ rich==13.7.1
33
+ six==1.16.0
34
+ tqdm==4.66.2
35
+ twine==5.0.0
36
+ urllib3==2.2.1
37
+ webencodings==0.5.1
38
+ zipp==3.18.1
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env python
2
2
  # -*- coding: utf-8 -*-
3
3
  import os
4
+
4
5
  from github_backup import __version__
5
6
 
6
7
  try:
@@ -1 +0,0 @@
1
- __version__ = "0.44.1"
@@ -1,38 +0,0 @@
1
- autopep8==2.0.4
2
- black==23.11.0
3
- bleach==6.0.0
4
- certifi==2023.7.22
5
- charset-normalizer==3.1.0
6
- click==8.1.7
7
- colorama==0.4.6
8
- docutils==0.20.1
9
- flake8==6.1.0
10
- gitchangelog==3.0.4
11
- idna==3.4
12
- importlib-metadata==6.6.0
13
- jaraco.classes==3.2.3
14
- keyring==23.13.1
15
- markdown-it-py==2.2.0
16
- mccabe==0.7.0
17
- mdurl==0.1.2
18
- more-itertools==9.1.0
19
- mypy-extensions==1.0.0
20
- packaging==23.2
21
- pathspec==0.11.2
22
- pkginfo==1.9.6
23
- platformdirs==4.1.0
24
- pycodestyle==2.11.1
25
- pyflakes==3.1.0
26
- Pygments==2.15.1
27
- readme-renderer==37.3
28
- requests==2.31.0
29
- requests-toolbelt==1.0.0
30
- restructuredtext-lint==1.4.0
31
- rfc3986==2.0.0
32
- rich==13.3.5
33
- six==1.16.0
34
- tqdm==4.65.0
35
- twine==4.0.2
36
- urllib3==2.0.7
37
- webencodings==0.5.1
38
- zipp==3.15.0
File without changes