githubtakeout 0.1.13__tar.gz → 0.1.14__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.13
3
+ Version: 0.1.14
4
4
  Summary: Backup and archive Git Repos and Gists from GitHub
5
5
  Author: Corey Goldberg
6
6
  Maintainer: Corey Goldberg
@@ -15,12 +15,13 @@ Classifier: Programming Language :: Python
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.12
17
17
  Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Programming Language :: Python :: 3.14
18
19
  Requires-Python: >=3.12
19
20
  Description-Content-Type: text/markdown
20
21
  License-File: LICENSE
21
22
  Requires-Dist: GitPython==3.1.45
22
23
  Requires-Dist: PyGithub==2.8.1
23
- Requires-Dist: rich==14.1.0
24
+ Requires-Dist: rich==14.2.0
24
25
  Dynamic: license-file
25
26
 
26
27
  # githubtakeout
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "githubtakeout"
7
- version = "0.1.13"
7
+ version = "0.1.14"
8
8
  description = "Backup and archive Git Repos and Gists from GitHub"
9
9
  license = "MIT"
10
10
  license-files = ["LICENSE"]
@@ -20,11 +20,12 @@ classifiers = [
20
20
  "Programming Language :: Python :: 3",
21
21
  "Programming Language :: Python :: 3.12",
22
22
  "Programming Language :: Python :: 3.13",
23
+ "Programming Language :: Python :: 3.14",
23
24
  ]
24
25
  dependencies = [
25
26
  "GitPython==3.1.45",
26
27
  "PyGithub==2.8.1",
27
- "rich==14.1.0",
28
+ "rich==14.2.0",
28
29
  ]
29
30
 
30
31
  [project.scripts]
@@ -55,7 +56,7 @@ package-dir = {"" = "src"}
55
56
  [tool.black]
56
57
  line-length = 120
57
58
  target-version = [
58
- "py312", "py313"
59
+ "py312", "py313", "py314"
59
60
  ]
60
61
 
61
62
  [tool.ruff]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: githubtakeout
3
- Version: 0.1.13
3
+ Version: 0.1.14
4
4
  Summary: Backup and archive Git Repos and Gists from GitHub
5
5
  Author: Corey Goldberg
6
6
  Maintainer: Corey Goldberg
@@ -15,12 +15,13 @@ Classifier: Programming Language :: Python
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.12
17
17
  Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Programming Language :: Python :: 3.14
18
19
  Requires-Python: >=3.12
19
20
  Description-Content-Type: text/markdown
20
21
  License-File: LICENSE
21
22
  Requires-Dist: GitPython==3.1.45
22
23
  Requires-Dist: PyGithub==2.8.1
23
- Requires-Dist: rich==14.1.0
24
+ Requires-Dist: rich==14.2.0
24
25
  Dynamic: license-file
25
26
 
26
27
  # githubtakeout
@@ -1,3 +1,3 @@
1
1
  GitPython==3.1.45
2
2
  PyGithub==2.8.1
3
- rich==14.1.0
3
+ rich==14.2.0
@@ -89,7 +89,7 @@ def clone(repo_url, local_repo_dir, include_history):
89
89
  repo = git.Repo.clone_from(
90
90
  url=repo_url,
91
91
  to_path=local_repo_dir,
92
- multi_options=["--depth=1"],
92
+ multi_options=["--single-branch", "--depth=1"],
93
93
  progress=GitProgress(),
94
94
  )
95
95
  except git.GitCommandError as e:
@@ -208,25 +208,25 @@ def run(
208
208
  num_repos = len([repo for repo in repos if re.match(pattern, repo.name)])
209
209
  if not list_only:
210
210
  logger.info(f"creating archives in: {working_dir}\n")
211
- logger.info(f"found {num_repos} repos for user '{username}'\n")
211
+ logger.info(f"found {num_repos} repos for user '{username}':\n")
212
212
  for repo in repos:
213
213
  if re.match(pattern, repo.name):
214
214
  local_repo_dir = os.path.join(working_dir, repo.name)
215
215
  url = add_creds(repo.clone_url, username, token)
216
216
  if list_only:
217
- logger.info(url)
217
+ logger.info(f"{username}/{repo.name}")
218
218
  else:
219
219
  clone_and_archive_repo(url, local_repo_dir, archive_format, include_history)
220
220
  if gists is not None:
221
221
  num_gists = len([gist for gist in gists if re.match(pattern, gist.id)])
222
222
  logger.info("")
223
- logger.info(f"found {num_gists} gists for user '{username}'\n")
223
+ logger.info(f"found {num_gists} gists for user '{username}':\n")
224
224
  for gist in gists:
225
225
  if re.match(pattern, gist.id):
226
226
  local_repo_dir = os.path.join(working_dir, gist.id)
227
227
  url = add_creds(gist.git_pull_url, username, token)
228
228
  if list_only:
229
- logger.info(url)
229
+ logger.info(f"{username}/{gist.id}\n - {gist.description}")
230
230
  else:
231
231
  clone_and_archive_repo(url, local_repo_dir, archive_format, include_history, is_gist=True)
232
232
 
File without changes
File without changes
File without changes