Cache management

This commit is contained in:
Valentin Niess
2025-05-21 23:04:04 +02:00
parent eb05b77a85
commit 2f663acc32
5 changed files with 127 additions and 7 deletions

View File

@@ -34,16 +34,31 @@ def main():
parser.add_argument('-v', '--verbose', help='print extra information',
dest='verbosity', action='store_const', const='DEBUG')
install_parser = subparsers.add_parser('install',
description='Install binary dependencies')
install_parser.add_argument('binary', nargs='+',
choices=binaries, help='one or more binary name')
build_parser = subparsers.add_parser('build',
description='Build a Python appimage')
build_subparsers = build_parser.add_subparsers(title='type',
help='Type of AppImage build', dest='sub_command')
cache_parser = subparsers.add_parser('cache',
description='Manage Python appimage cache')
cache_subparsers = cache_parser.add_subparsers(title='operation',
help='Type of cache operation', dest='sub_command')
cache_clean_parser = cache_subparsers.add_parser('clean',
description='Clean cached image(s)')
cache_clean_parser.add_argument('tags', nargs='*',
help='manylinux image tag(s) (e.g. 2014_x86_64)')
cache_clean_parser.add_argument('-a', '--all', action='store_true',
help='remove all image(s) data')
cache_list_parser = cache_subparsers.add_parser('list',
description='List cached image(s)')
install_parser = subparsers.add_parser('install',
description='Install binary dependencies')
install_parser.add_argument('binary', nargs='+',
choices=binaries, help='one or more binary name')
build_local_parser = build_subparsers.add_parser('local',
description='Bundle a local Python installation')
build_local_parser.add_argument('-d', '--destination',