chore(apm): pin apm with uv
A bare `apm` is whatever version a machine has. apm 0.37.0 to 0.39.1 refuse an apm.lock.yaml rewritten by 0.39.2 or later, and versions before 0.39.0 drop `disable-model-invocation` from the deployed Claude commands. uv now runs one pinned version, from a .venv of its own. apm-cli leaves requirements-dev.txt, so there is one pin. Its lock loses 40 packages and no other version moves. apm.lock.yaml is regenerated with the pinned apm. Refs: #517 Assisted-by: Claude Code
This commit is contained in:
1 parent
d732ac0a71
commit
595f517b49
12 files changed
+1994
-1193
No files matched your search
@@ -14,7 +14,7 @@
|
||||
# distribution's python3 and ca-certificates.
|
||||
# - /opt/venv: requirements-dev.lock, the hashed lock of requirements-dev.txt (ansible-core, ansible-lint, pre-commit,
|
||||
# antsibull-changelog, galaxy-importer, reuse, molecule, proxmoxer), on the Python of
|
||||
# .python-version (PYTHON_VERSION below), the one the lock was resolved on and a clone's .venv uses.
|
||||
# .python-version (PYTHON_VERSION below), the one the lock was resolved on and a clone's .venv-dev uses.
|
||||
# molecule is there for Lint's "Test the repository scripts" step, whose molecule tests import it; its
|
||||
# Docker driver and community.docker are not: Molecule runs in the molecule-controller image.
|
||||
# - /opt/collections: the collections of requirements.yml (the versions the roles are
|
||||
@@ -71,7 +71,7 @@ COPY requirements-dev.txt requirements-dev.lock requirements.yml .pre-commit-con
|
||||
|
||||
# The interpreters come first: /opt/venv is built from the pinned one (PYTHON_VERSION, kept equal to
|
||||
# .python-version and to the lock header by `check_image_versions.py pins`), not from the distribution's
|
||||
# python3, so the tools run on the Python the lock was resolved on and a clone's .venv uses.
|
||||
# python3, so the tools run on the Python the lock was resolved on and a clone's .venv-dev uses.
|
||||
# uv only lives in the build stage (its own venv): the final image keeps the interpreters it
|
||||
# downloaded, not the installer. The distribution's python3 only bootstraps uv.
|
||||
RUN python3 -m venv /opt/uv-venv \
|
||||
|
||||
Reference in new issue
Block a user