chroot-distro 1.5.6__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.
- chroot_distro-1.5.6/.editorconfig +27 -0
- chroot_distro-1.5.6/.github/codeql/codeql-config.yml +8 -0
- chroot_distro-1.5.6/.github/workflows/codeql.yml +43 -0
- chroot_distro-1.5.6/.gitignore +77 -0
- chroot_distro-1.5.6/.python-version +1 -0
- chroot_distro-1.5.6/HARDWARE_ACCESS_PLAN.md +595 -0
- chroot_distro-1.5.6/LICENSE +674 -0
- chroot_distro-1.5.6/MIGRATION.md +77 -0
- chroot_distro-1.5.6/PKG-INFO +1076 -0
- chroot_distro-1.5.6/README.md +1043 -0
- chroot_distro-1.5.6/implementation_plan.md +755 -0
- chroot_distro-1.5.6/pyproject.toml +115 -0
- chroot_distro-1.5.6/src/chroot_distro/__init__.py +6 -0
- chroot_distro-1.5.6/src/chroot_distro/arch.py +135 -0
- chroot_distro-1.5.6/src/chroot_distro/atomic.py +23 -0
- chroot_distro-1.5.6/src/chroot_distro/cli.py +235 -0
- chroot_distro-1.5.6/src/chroot_distro/commands/backup.py +292 -0
- chroot_distro-1.5.6/src/chroot_distro/commands/build.py +316 -0
- chroot_distro-1.5.6/src/chroot_distro/commands/clear_cache.py +61 -0
- chroot_distro-1.5.6/src/chroot_distro/commands/copy.py +96 -0
- chroot_distro-1.5.6/src/chroot_distro/commands/help/__init__.py +109 -0
- chroot_distro-1.5.6/src/chroot_distro/commands/help/pages.py +607 -0
- chroot_distro-1.5.6/src/chroot_distro/commands/help/render.py +276 -0
- chroot_distro-1.5.6/src/chroot_distro/commands/install.py +256 -0
- chroot_distro-1.5.6/src/chroot_distro/commands/install_local.py +213 -0
- chroot_distro-1.5.6/src/chroot_distro/commands/list_cmd.py +34 -0
- chroot_distro-1.5.6/src/chroot_distro/commands/login/__init__.py +610 -0
- chroot_distro-1.5.6/src/chroot_distro/commands/login/bindings.py +442 -0
- chroot_distro-1.5.6/src/chroot_distro/commands/login/chroot_cmd.py +63 -0
- chroot_distro-1.5.6/src/chroot_distro/commands/login/env.py +163 -0
- chroot_distro-1.5.6/src/chroot_distro/commands/login/passwd.py +363 -0
- chroot_distro-1.5.6/src/chroot_distro/commands/push.py +91 -0
- chroot_distro-1.5.6/src/chroot_distro/commands/remove.py +102 -0
- chroot_distro-1.5.6/src/chroot_distro/commands/rename.py +61 -0
- chroot_distro-1.5.6/src/chroot_distro/commands/reset.py +73 -0
- chroot_distro-1.5.6/src/chroot_distro/commands/restore.py +328 -0
- chroot_distro-1.5.6/src/chroot_distro/commands/run.py +64 -0
- chroot_distro-1.5.6/src/chroot_distro/commands/sync.py +414 -0
- chroot_distro-1.5.6/src/chroot_distro/commands/unmount.py +89 -0
- chroot_distro-1.5.6/src/chroot_distro/completions/_chroot-distro +313 -0
- chroot_distro-1.5.6/src/chroot_distro/completions/chroot-distro.bash +330 -0
- chroot_distro-1.5.6/src/chroot_distro/completions/chroot-distro.fish +395 -0
- chroot_distro-1.5.6/src/chroot_distro/constants.py +73 -0
- chroot_distro-1.5.6/src/chroot_distro/elevate.py +97 -0
- chroot_distro-1.5.6/src/chroot_distro/exceptions.py +46 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/__init__.py +1 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/android.py +194 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/build_cache.py +148 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/build_engine/__init__.py +15 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/build_engine/constants.py +61 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/build_engine/copy_step.py +558 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/build_engine/dockerignore.py +58 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/build_engine/engine.py +396 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/build_engine/errors.py +2 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/build_engine/handlers.py +271 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/build_engine/parsing.py +76 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/build_engine/run_step.py +203 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/build_engine/stage.py +42 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/build_engine/users.py +56 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/docker/__init__.py +53 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/docker/cache.py +63 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/docker/layers.py +125 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/docker/media.py +18 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/docker/pull.py +228 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/docker/push.py +347 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/docker/refs.py +52 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/docker/transport.py +163 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/dockerfile.py +472 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/download.py +60 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/layer_diff.py +465 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/mount_manager.py +253 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/namespace.py +409 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/oci_writer.py +267 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/rootfs.py +151 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/session.py +140 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/tar_extract.py +175 -0
- chroot_distro-1.5.6/src/chroot_distro/helpers/x11.py +195 -0
- chroot_distro-1.5.6/src/chroot_distro/locking.py +178 -0
- chroot_distro-1.5.6/src/chroot_distro/message.py +140 -0
- chroot_distro-1.5.6/src/chroot_distro/names.py +18 -0
- chroot_distro-1.5.6/src/chroot_distro/parser.py +318 -0
- chroot_distro-1.5.6/src/chroot_distro/paths.py +69 -0
- chroot_distro-1.5.6/src/chroot_distro/progress.py +91 -0
- chroot_distro-1.5.6/src/chroot_distro/py.typed +1 -0
- chroot_distro-1.5.6/tests/unit/test_arch.py +123 -0
- chroot_distro-1.5.6/tests/unit/test_cli.py +113 -0
- chroot_distro-1.5.6/tests/unit/test_docker_refs.py +20 -0
- chroot_distro-1.5.6/tests/unit/test_elevate.py +146 -0
- chroot_distro-1.5.6/tests/unit/test_list.py +37 -0
- chroot_distro-1.5.6/tests/unit/test_locking.py +108 -0
- chroot_distro-1.5.6/tests/unit/test_login_helpers.py +462 -0
- chroot_distro-1.5.6/tests/unit/test_message.py +87 -0
- chroot_distro-1.5.6/tests/unit/test_mount_manager_ns.py +33 -0
- chroot_distro-1.5.6/tests/unit/test_names.py +39 -0
- chroot_distro-1.5.6/tests/unit/test_namespace.py +120 -0
- chroot_distro-1.5.6/tests/unit/test_parser.py +53 -0
- chroot_distro-1.5.6/tests/unit/test_paths.py +86 -0
- chroot_distro-1.5.6/tests/unit/test_rootfs.py +111 -0
- chroot_distro-1.5.6/tests/unit/test_tar_extract.py +93 -0
- chroot_distro-1.5.6/tests/unit/test_unmount.py +180 -0
- chroot_distro-1.5.6/tests/unit/test_x11.py +201 -0
- chroot_distro-1.5.6/uv.lock +745 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
root = true
|
|
2
|
+
|
|
3
|
+
[*]
|
|
4
|
+
# Indentation
|
|
5
|
+
indent_style = tab
|
|
6
|
+
indent_size = 4
|
|
7
|
+
tab_width = 4
|
|
8
|
+
|
|
9
|
+
# Line endings and encoding
|
|
10
|
+
end_of_line = lf
|
|
11
|
+
charset = utf-8
|
|
12
|
+
insert_final_newline = true
|
|
13
|
+
|
|
14
|
+
# Whitespace
|
|
15
|
+
trim_trailing_whitespace = true
|
|
16
|
+
|
|
17
|
+
# Max line length
|
|
18
|
+
max_line_length = off
|
|
19
|
+
|
|
20
|
+
[*.{yml,yaml}]
|
|
21
|
+
indent_style = space
|
|
22
|
+
indent_size = 4
|
|
23
|
+
|
|
24
|
+
[*.md]
|
|
25
|
+
trim_trailing_whitespace = false
|
|
26
|
+
indent_style = space
|
|
27
|
+
indent_size = 4
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
name: CodeQL
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main, next]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main, next]
|
|
8
|
+
schedule:
|
|
9
|
+
- cron: "30 0 * * 1"
|
|
10
|
+
workflow_dispatch:
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
analyze:
|
|
14
|
+
name: Analyze (${{ matrix.language }})
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
permissions:
|
|
17
|
+
actions: read
|
|
18
|
+
contents: read
|
|
19
|
+
security-events: write
|
|
20
|
+
|
|
21
|
+
strategy:
|
|
22
|
+
fail-fast: false
|
|
23
|
+
matrix:
|
|
24
|
+
include:
|
|
25
|
+
- language: python
|
|
26
|
+
build-mode: none
|
|
27
|
+
|
|
28
|
+
steps:
|
|
29
|
+
- name: Checkout repository
|
|
30
|
+
uses: actions/checkout@v4
|
|
31
|
+
|
|
32
|
+
- name: Initialize CodeQL
|
|
33
|
+
uses: github/codeql-action/init@v4
|
|
34
|
+
with:
|
|
35
|
+
languages: ${{ matrix.language }}
|
|
36
|
+
build-mode: ${{ matrix.build-mode }}
|
|
37
|
+
queries: security-extended
|
|
38
|
+
config-file: ./.github/codeql/codeql-config.yml
|
|
39
|
+
|
|
40
|
+
- name: Perform CodeQL Analysis
|
|
41
|
+
uses: github/codeql-action/analyze@v4
|
|
42
|
+
with:
|
|
43
|
+
category: "/language:${{ matrix.language }}"
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
build/
|
|
11
|
+
develop-eggs/
|
|
12
|
+
dist/
|
|
13
|
+
downloads/
|
|
14
|
+
eggs/
|
|
15
|
+
.eggs/
|
|
16
|
+
lib/
|
|
17
|
+
lib64/
|
|
18
|
+
parts/
|
|
19
|
+
sdist/
|
|
20
|
+
var/
|
|
21
|
+
wheels/
|
|
22
|
+
share/python-wheels/
|
|
23
|
+
*.egg-info/
|
|
24
|
+
.installed.cfg
|
|
25
|
+
*.egg
|
|
26
|
+
MANIFEST
|
|
27
|
+
|
|
28
|
+
# PyInstaller
|
|
29
|
+
# Usually these files are written by a python script run during a build
|
|
30
|
+
*.manifest
|
|
31
|
+
*.spec
|
|
32
|
+
|
|
33
|
+
# Installer logs
|
|
34
|
+
pip-log.txt
|
|
35
|
+
pip-delete-this-directory.txt
|
|
36
|
+
|
|
37
|
+
# Unit test / coverage reports
|
|
38
|
+
htmlcov/
|
|
39
|
+
.tox/
|
|
40
|
+
.nox/
|
|
41
|
+
.coverage
|
|
42
|
+
.coverage.*
|
|
43
|
+
.cache
|
|
44
|
+
nosetests.xml
|
|
45
|
+
coverage.xml
|
|
46
|
+
*.cover
|
|
47
|
+
*.py,cover
|
|
48
|
+
.stats
|
|
49
|
+
.pytest_cache/
|
|
50
|
+
.mypy_cache/
|
|
51
|
+
.ruff_cache/
|
|
52
|
+
|
|
53
|
+
# Environments
|
|
54
|
+
.env
|
|
55
|
+
.venv
|
|
56
|
+
env/
|
|
57
|
+
venv/
|
|
58
|
+
ENV/
|
|
59
|
+
env.bak/
|
|
60
|
+
venv.bak/
|
|
61
|
+
|
|
62
|
+
# Editor/IDE configs
|
|
63
|
+
.vscode/
|
|
64
|
+
.idea/
|
|
65
|
+
*.swp
|
|
66
|
+
*.swo
|
|
67
|
+
|
|
68
|
+
# Project specific ignores
|
|
69
|
+
*.zip
|
|
70
|
+
webroot
|
|
71
|
+
.agent/
|
|
72
|
+
.agents/
|
|
73
|
+
.claude/
|
|
74
|
+
.gemini/
|
|
75
|
+
proot-distro/
|
|
76
|
+
/skills-lock.json
|
|
77
|
+
/Ubuntu-Chroot
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.12
|