github-backup 0.45.0__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,293 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
- 0.45.0 (2024-01-29)
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
+ -------------------
7
291
 
8
292
  Fix
9
293
  ~~~
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: github-backup
3
- Version: 0.45.0
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
@@ -0,0 +1 @@
1
+ __version__ = "0.45.1"
@@ -777,14 +777,19 @@ class S3HTTPRedirectHandler(HTTPRedirectHandler):
777
777
  return request
778
778
 
779
779
 
780
- def download_file(url, path, auth):
780
+ def download_file(url, path, auth, as_app=False, fine=False):
781
781
  # Skip downloading release assets if they already exist on disk so we don't redownload on every sync
782
782
  if os.path.exists(path):
783
783
  return
784
784
 
785
- 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)
786
792
  request.add_header("Accept", "application/octet-stream")
787
- request.add_header("Authorization", "Basic ".encode("ascii") + auth)
788
793
  opener = build_opener(S3HTTPRedirectHandler)
789
794
 
790
795
  try:
@@ -1255,6 +1260,8 @@ def backup_releases(args, repo_cwd, repository, repos_template, include_assets=F
1255
1260
  asset["url"],
1256
1261
  os.path.join(release_assets_cwd, asset["name"]),
1257
1262
  get_auth(args),
1263
+ as_app=args.as_app,
1264
+ fine=True if args.token_fine is not None else False
1258
1265
  )
1259
1266
 
1260
1267
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: github-backup
3
- Version: 0.45.0
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
@@ -1,7 +1,7 @@
1
1
  autopep8==2.0.4
2
- black==24.1.0
2
+ black==24.2.0
3
3
  bleach==6.1.0
4
- certifi==2023.11.17
4
+ certifi==2024.2.2
5
5
  charset-normalizer==3.3.2
6
6
  click==8.1.7
7
7
  colorama==0.4.6
@@ -9,30 +9,30 @@ docutils==0.20.1
9
9
  flake8==7.0.0
10
10
  gitchangelog==3.0.4
11
11
  idna==3.6
12
- importlib-metadata==7.0.1
13
- jaraco.classes==3.3.0
14
- keyring==24.3.0
12
+ importlib-metadata==7.0.2
13
+ jaraco.classes==3.3.1
14
+ keyring==24.3.1
15
15
  markdown-it-py==3.0.0
16
16
  mccabe==0.7.0
17
17
  mdurl==0.1.2
18
18
  more-itertools==10.2.0
19
19
  mypy-extensions==1.0.0
20
- packaging==23.2
20
+ packaging==24.0
21
21
  pathspec==0.12.1
22
- pkginfo==1.9.6
23
- platformdirs==4.1.0
22
+ pkginfo==1.10.0
23
+ platformdirs==4.2.0
24
24
  pycodestyle==2.11.1
25
25
  pyflakes==3.2.0
26
26
  Pygments==2.17.2
27
- readme-renderer==42.0
27
+ readme-renderer==43.0
28
28
  requests==2.31.0
29
29
  requests-toolbelt==1.0.0
30
30
  restructuredtext-lint==1.4.0
31
31
  rfc3986==2.0.0
32
- rich==13.7.0
32
+ rich==13.7.1
33
33
  six==1.16.0
34
- tqdm==4.66.1
35
- twine==4.0.2
36
- urllib3==2.1.0
34
+ tqdm==4.66.2
35
+ twine==5.0.0
36
+ urllib3==2.2.1
37
37
  webencodings==0.5.1
38
- zipp==3.17.0
38
+ zipp==3.18.1
@@ -1 +0,0 @@
1
- __version__ = "0.45.0"
File without changes
File without changes
File without changes