githubtakeout 0.1.24__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: githubtakeout
3
- Version: 0.1.24
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,7 +19,7 @@ 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.46
22
+ Requires-Dist: GitPython==3.1.50
23
23
  Requires-Dist: PyGithub==2.9.1
24
24
  Requires-Dist: python-dotenv==1.2.2
25
25
  Requires-Dist: rich==15.0.0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "githubtakeout"
7
- version = "0.1.24"
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,7 +23,7 @@ classifiers = [
23
23
  "Programming Language :: Python :: 3.14",
24
24
  ]
25
25
  dependencies = [
26
- "GitPython==3.1.46",
26
+ "GitPython==3.1.50",
27
27
  "PyGithub==2.9.1",
28
28
  "python-dotenv==1.2.2",
29
29
  "rich==15.0.0",
@@ -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
- "packaging",
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.ini_options]
61
- addopts = "-vv" # extra verbose
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
- fixable = ["ALL"]
77
- select = [
78
- "D", "E", "F", "I", "N", "FURB", "PT",
79
- "RUF", "TID", "UP", "W"
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.24
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,7 +19,7 @@ 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.46
22
+ Requires-Dist: GitPython==3.1.50
23
23
  Requires-Dist: PyGithub==2.9.1
24
24
  Requires-Dist: python-dotenv==1.2.2
25
25
  Requires-Dist: rich==15.0.0
@@ -1,4 +1,4 @@
1
- GitPython==3.1.46
1
+ GitPython==3.1.50
2
2
  PyGithub==2.9.1
3
3
  python-dotenv==1.2.2
4
4
  rich==15.0.0
@@ -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
- os.chmod(path, stat.S_IREAD)
134
+ Path.chmod(path, stat.S_IREAD)
134
135
  # give write permissions
135
- os.chmod(path, stat.S_IWRITE)
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 e
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 e
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
  """Progress bar for cloning Git repos."""
5
6
 
@@ -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