github-backup 0.45.2__py3-none-any.whl → 0.46.0__py3-none-any.whl

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.
github_backup/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.45.2"
1
+ __version__ = "0.46.0"
@@ -1259,7 +1259,7 @@ def backup_releases(args, repo_cwd, repository, repos_template, include_assets=F
1259
1259
  download_file(
1260
1260
  asset["url"],
1261
1261
  os.path.join(release_assets_cwd, asset["name"]),
1262
- get_auth(args),
1262
+ get_auth(args, encode=not args.as_app),
1263
1263
  as_app=args.as_app,
1264
1264
  fine=True if args.token_fine is not None else False
1265
1265
  )
@@ -1318,13 +1318,15 @@ def fetch_repository(
1318
1318
  git_command = ["git", "remote", "set-url", "origin", remote_url]
1319
1319
  logging_subprocess(git_command, cwd=local_dir)
1320
1320
 
1321
- if lfs_clone:
1322
- git_command = ["git", "lfs", "fetch", "--all", "--prune"]
1323
- else:
1324
- git_command = ["git", "fetch", "--all", "--force", "--tags", "--prune"]
1321
+ git_command = ["git", "fetch", "--all", "--force", "--tags", "--prune"]
1325
1322
  if no_prune:
1326
1323
  git_command.pop()
1327
1324
  logging_subprocess(git_command, cwd=local_dir)
1325
+ if lfs_clone:
1326
+ git_command = ["git", "lfs", "fetch", "--all", "--prune"]
1327
+ if no_prune:
1328
+ git_command.pop()
1329
+ logging_subprocess(git_command, cwd=local_dir)
1328
1330
  else:
1329
1331
  logger.info(
1330
1332
  "Cloning {0} repository from {1} to {2}".format(
@@ -1,20 +1,21 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: github-backup
3
- Version: 0.45.2
3
+ Version: 0.46.0
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
7
7
  Author-email: github-backup@josediazgonzalez.com
8
8
  License: MIT
9
- Platform: UNKNOWN
10
9
  Classifier: Development Status :: 5 - Production/Stable
11
10
  Classifier: Topic :: System :: Archiving :: Backup
12
11
  Classifier: License :: OSI Approved :: MIT License
13
- Classifier: Programming Language :: Python :: 3.5
14
- Classifier: Programming Language :: Python :: 3.6
15
- Classifier: Programming Language :: Python :: 3.7
16
12
  Classifier: Programming Language :: Python :: 3.8
13
+ Classifier: Programming Language :: Python :: 3.9
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
17
  Description-Content-Type: text/x-rst
18
+ License-File: LICENSE.txt
18
19
 
19
20
  =============
20
21
  github-backup
@@ -40,7 +41,7 @@ Using PIP via PyPI::
40
41
  Using PIP via Github (more likely the latest version)::
41
42
 
42
43
  pip install git+https://github.com/josegonzalez/python-github-backup.git#egg=github-backup
43
-
44
+
44
45
  *Install note for python newcomers:*
45
46
 
46
47
  Python scripts are unlikely to be included in your ``$PATH`` by default, this means it cannot be run directly in terminal with ``$ github-backup ...``, you can either add python's install path to your environments ``$PATH`` or call the script directly e.g. using ``$ ~/.local/bin/github-backup``.*
@@ -321,7 +322,7 @@ Quietly and incrementally backup useful Github user data (public and private rep
321
322
  GH_USER=YOUR-GITHUB-USER
322
323
 
323
324
  github-backup -f $FINE_ACCESS_TOKEN --prefer-ssh -o ~/github-backup/ -l error -P -i --all-starred --starred --watched --followers --following --issues --issue-comments --issue-events --pulls --pull-comments --pull-commits --labels --milestones --repositories --wikis --releases --assets --pull-details --gists --starred-gists $GH_USER
324
-
325
+
325
326
  Debug an error/block or incomplete backup into a temporary directory. Omit "incremental" to fill a previous incomplete backup. ::
326
327
 
327
328
  export FINE_ACCESS_TOKEN=SOME-GITHUB-TOKEN
@@ -358,5 +359,3 @@ This project currently contains no unit tests. To run linting::
358
359
  :target: https://pypi.python.org/pypi/github-backup/
359
360
  .. |Python Versions| image:: https://img.shields.io/pypi/pyversions/github-backup.svg
360
361
  :target: https://github.com/josegonzalez/python-github-backup
361
-
362
-
@@ -0,0 +1,9 @@
1
+ github_backup/__init__.py,sha256=VTDTPpzZ6KwzjCPZhHgalFxPlpuy4ZGRkHB_n3WGwYs,23
2
+ github_backup/github_backup.py,sha256=EVF5gspuh6HZ7DIN4exIBZ4HO4lzBvLyAavlP1luWN4,48176
3
+ github_backup-0.46.0.data/scripts/github-backup,sha256=I79TNA67phytRmI9nm_LlD9h2zauXFOsOn9tYyAy9pU,1546
4
+ github_backup-0.46.0.dist-info/LICENSE.txt,sha256=ML-pLyn1qtAKo_DHMcQ8-p7k3f8cp-IR-mf5B49R2rk,1085
5
+ github_backup-0.46.0.dist-info/METADATA,sha256=2ZUxBjhvUTKFFfjzbtw-ugrUKaMNoWyx28HtcVveymA,19290
6
+ github_backup-0.46.0.dist-info/WHEEL,sha256=mguMlWGMX-VHnMpKOjjQidIo1ssRlCFu4a4mBpz1s2M,91
7
+ github_backup-0.46.0.dist-info/top_level.txt,sha256=Za6fKRAlxZ0b3ZBH_osPqklLe14LetdNAkvAQANT2AA,14
8
+ github_backup-0.46.0.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
9
+ github_backup-0.46.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: setuptools (70.1.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,9 +0,0 @@
1
- github_backup/__init__.py,sha256=tds0V9F1Q9oamCkPJBF1oU5gAI0B2Y0XGkpwE0Axysk,23
2
- github_backup/github_backup.py,sha256=EiYRWJZI5VK-T3QREblmg3YH7dAY74t1zRd5c5yNFsk,48052
3
- github_backup-0.45.2.data/scripts/github-backup,sha256=I79TNA67phytRmI9nm_LlD9h2zauXFOsOn9tYyAy9pU,1546
4
- github_backup-0.45.2.dist-info/LICENSE.txt,sha256=ML-pLyn1qtAKo_DHMcQ8-p7k3f8cp-IR-mf5B49R2rk,1085
5
- github_backup-0.45.2.dist-info/METADATA,sha256=tJ-JWFkNs1X7n5J-ZiDybXdrfTJOhprIP5MFFSrxo_8,19223
6
- github_backup-0.45.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
7
- github_backup-0.45.2.dist-info/top_level.txt,sha256=Za6fKRAlxZ0b3ZBH_osPqklLe14LetdNAkvAQANT2AA,14
8
- github_backup-0.45.2.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
9
- github_backup-0.45.2.dist-info/RECORD,,