githubtakeout 0.1.23__tar.gz → 0.1.25__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.
- {githubtakeout-0.1.23/src/githubtakeout.egg-info → githubtakeout-0.1.25}/PKG-INFO +4 -4
- {githubtakeout-0.1.23 → githubtakeout-0.1.25}/pyproject.toml +15 -28
- {githubtakeout-0.1.23 → githubtakeout-0.1.25/src/githubtakeout.egg-info}/PKG-INFO +4 -4
- githubtakeout-0.1.25/src/githubtakeout.egg-info/requires.txt +4 -0
- {githubtakeout-0.1.23 → githubtakeout-0.1.25}/src/githubtakeout.py +7 -9
- {githubtakeout-0.1.23 → githubtakeout-0.1.25}/src/progress.py +2 -1
- {githubtakeout-0.1.23 → githubtakeout-0.1.25}/tests/test_githubtakeout.py +3 -5
- githubtakeout-0.1.23/src/githubtakeout.egg-info/requires.txt +0 -4
- {githubtakeout-0.1.23 → githubtakeout-0.1.25}/LICENSE +0 -0
- {githubtakeout-0.1.23 → githubtakeout-0.1.25}/README.md +0 -0
- {githubtakeout-0.1.23 → githubtakeout-0.1.25}/setup.cfg +0 -0
- {githubtakeout-0.1.23 → githubtakeout-0.1.25}/src/githubtakeout.egg-info/SOURCES.txt +0 -0
- {githubtakeout-0.1.23 → githubtakeout-0.1.25}/src/githubtakeout.egg-info/dependency_links.txt +0 -0
- {githubtakeout-0.1.23 → githubtakeout-0.1.25}/src/githubtakeout.egg-info/entry_points.txt +0 -0
- {githubtakeout-0.1.23 → githubtakeout-0.1.25}/src/githubtakeout.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: githubtakeout
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.25
|
|
4
4
|
Summary: Backup and archive Git Repos and Gists from GitHub
|
|
5
5
|
Author: Corey Goldberg
|
|
6
6
|
Maintainer: Corey Goldberg
|
|
@@ -19,10 +19,10 @@ Classifier: Programming Language :: Python :: 3.14
|
|
|
19
19
|
Requires-Python: >=3.12
|
|
20
20
|
Description-Content-Type: text/markdown
|
|
21
21
|
License-File: LICENSE
|
|
22
|
-
Requires-Dist: GitPython==3.1.
|
|
23
|
-
Requires-Dist: PyGithub==2.9.
|
|
22
|
+
Requires-Dist: GitPython==3.1.50
|
|
23
|
+
Requires-Dist: PyGithub==2.9.1
|
|
24
24
|
Requires-Dist: python-dotenv==1.2.2
|
|
25
|
-
Requires-Dist: rich==
|
|
25
|
+
Requires-Dist: rich==15.0.0
|
|
26
26
|
Dynamic: license-file
|
|
27
27
|
|
|
28
28
|
# githubtakeout
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "githubtakeout"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.25"
|
|
8
8
|
description = "Backup and archive Git Repos and Gists from GitHub"
|
|
9
9
|
license = "MIT"
|
|
10
10
|
license-files = ["LICENSE"]
|
|
@@ -23,10 +23,10 @@ classifiers = [
|
|
|
23
23
|
"Programming Language :: Python :: 3.14",
|
|
24
24
|
]
|
|
25
25
|
dependencies = [
|
|
26
|
-
"GitPython==3.1.
|
|
27
|
-
"PyGithub==2.9.
|
|
26
|
+
"GitPython==3.1.50",
|
|
27
|
+
"PyGithub==2.9.1",
|
|
28
28
|
"python-dotenv==1.2.2",
|
|
29
|
-
"rich==
|
|
29
|
+
"rich==15.0.0",
|
|
30
30
|
]
|
|
31
31
|
|
|
32
32
|
[project.scripts]
|
|
@@ -42,51 +42,38 @@ dev = [
|
|
|
42
42
|
"tox",
|
|
43
43
|
]
|
|
44
44
|
lint = [
|
|
45
|
-
"black",
|
|
46
|
-
"refurb",
|
|
47
45
|
"ruff",
|
|
48
46
|
]
|
|
49
47
|
test = [
|
|
50
48
|
"pytest",
|
|
51
49
|
]
|
|
52
50
|
validate = [
|
|
53
|
-
"
|
|
54
|
-
"validate-pyproject",
|
|
51
|
+
"validate-pyproject[all]",
|
|
55
52
|
]
|
|
56
53
|
|
|
57
54
|
[tool.setuptools]
|
|
58
55
|
package-dir = {"" = "src"}
|
|
59
56
|
|
|
60
|
-
[tool.pytest
|
|
61
|
-
addopts = "-vv"
|
|
57
|
+
[tool.pytest]
|
|
58
|
+
addopts = ["-vv"]
|
|
62
59
|
tmp_path_retention_policy = "none"
|
|
63
60
|
|
|
64
|
-
[tool.black]
|
|
65
|
-
line-length = 88
|
|
66
|
-
target-version = [
|
|
67
|
-
"py312", "py313", "py314"
|
|
68
|
-
]
|
|
69
|
-
|
|
70
61
|
[tool.ruff]
|
|
71
62
|
line-length = 88
|
|
72
63
|
respect-gitignore = true
|
|
73
64
|
target-version = "py312"
|
|
74
65
|
|
|
75
66
|
[tool.ruff.lint]
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
]
|
|
81
|
-
extend-ignore = [
|
|
82
|
-
"D100", "D101", "D102", "D103", "D105",
|
|
83
|
-
"D107", "D203", "D213", "RUF012"
|
|
67
|
+
select = ["ALL"]
|
|
68
|
+
ignore = [
|
|
69
|
+
"ANN", "COM812", "D", "EM102", "G004", "PLR0913",
|
|
70
|
+
"RUF012", "S101", "SIM102", "TRY003", "TRY400",
|
|
84
71
|
]
|
|
72
|
+
fixable = ["ALL"]
|
|
73
|
+
|
|
74
|
+
[tool.ruff.lint.per-file-ignores]
|
|
75
|
+
"**/test_*.py" = ["ARG001", "INP001"]
|
|
85
76
|
|
|
86
77
|
[tool.ruff.format]
|
|
87
78
|
docstring-code-format = true
|
|
88
79
|
docstring-code-line-length = 88
|
|
89
|
-
|
|
90
|
-
[tool.refurb]
|
|
91
|
-
python_version = "3.12"
|
|
92
|
-
enable_all = true
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: githubtakeout
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.25
|
|
4
4
|
Summary: Backup and archive Git Repos and Gists from GitHub
|
|
5
5
|
Author: Corey Goldberg
|
|
6
6
|
Maintainer: Corey Goldberg
|
|
@@ -19,10 +19,10 @@ Classifier: Programming Language :: Python :: 3.14
|
|
|
19
19
|
Requires-Python: >=3.12
|
|
20
20
|
Description-Content-Type: text/markdown
|
|
21
21
|
License-File: LICENSE
|
|
22
|
-
Requires-Dist: GitPython==3.1.
|
|
23
|
-
Requires-Dist: PyGithub==2.9.
|
|
22
|
+
Requires-Dist: GitPython==3.1.50
|
|
23
|
+
Requires-Dist: PyGithub==2.9.1
|
|
24
24
|
Requires-Dist: python-dotenv==1.2.2
|
|
25
|
-
Requires-Dist: rich==
|
|
25
|
+
Requires-Dist: rich==15.0.0
|
|
26
26
|
Dynamic: license-file
|
|
27
27
|
|
|
28
28
|
# githubtakeout
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# Copyright (c) 2015-2026 Corey Goldberg
|
|
2
|
-
# License: MIT
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
|
|
3
4
|
|
|
4
5
|
"""Backup and archive Git Repos and Gists from GitHub."""
|
|
5
6
|
|
|
@@ -130,9 +131,9 @@ def get_and_archive_repo(
|
|
|
130
131
|
# and and reattempt removal.
|
|
131
132
|
#
|
|
132
133
|
# give read permissions
|
|
133
|
-
|
|
134
|
+
Path.chmod(path, stat.S_IREAD)
|
|
134
135
|
# give write permissions
|
|
135
|
-
|
|
136
|
+
Path.chmod(path, stat.S_IWRITE)
|
|
136
137
|
# try again
|
|
137
138
|
func(path)
|
|
138
139
|
|
|
@@ -194,7 +195,7 @@ def get_repos(username, token, include_gists):
|
|
|
194
195
|
if e.data["status"] == "401":
|
|
195
196
|
sys.exit(f"error: invalid auth token for user '{username}'")
|
|
196
197
|
else:
|
|
197
|
-
raise
|
|
198
|
+
raise
|
|
198
199
|
else:
|
|
199
200
|
gh = github.Github()
|
|
200
201
|
try:
|
|
@@ -203,12 +204,9 @@ def get_repos(username, token, include_gists):
|
|
|
203
204
|
if e.data["status"] == "404":
|
|
204
205
|
sys.exit(f"error: user '{username}' not found")
|
|
205
206
|
else:
|
|
206
|
-
raise
|
|
207
|
+
raise
|
|
207
208
|
repos = user.get_repos()
|
|
208
|
-
if include_gists
|
|
209
|
-
gists = user.get_gists()
|
|
210
|
-
else:
|
|
211
|
-
gists = []
|
|
209
|
+
gists = user.get_gists() if include_gists else []
|
|
212
210
|
return repos, gists
|
|
213
211
|
|
|
214
212
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# Copyright (c) 2015-2026 Corey Goldberg
|
|
2
|
-
# License: MIT
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
|
|
3
4
|
|
|
4
5
|
"""Tests for githubtakeout."""
|
|
5
6
|
|
|
@@ -142,10 +143,7 @@ def test_run_archive_1_match(archive_format, tmp_path, caplog):
|
|
|
142
143
|
assert "deleting repo" in caplog.text
|
|
143
144
|
assert f"successfully backed up '{repo}' repo" in caplog.text
|
|
144
145
|
assert not Path(tmp_path / backup_dir / repo).exists()
|
|
145
|
-
if archive_format == "tar"
|
|
146
|
-
extension = "tar.gz"
|
|
147
|
-
else:
|
|
148
|
-
extension = archive_format
|
|
146
|
+
extension = "tar.gz" if archive_format == "tar" else archive_format
|
|
149
147
|
assert Path(tmp_path / backup_dir / f"{repo}.{extension}").exists()
|
|
150
148
|
|
|
151
149
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{githubtakeout-0.1.23 → githubtakeout-0.1.25}/src/githubtakeout.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|