chore(apm): pin apm with uv #520

Open
Claude wants to merge 1 commits from chore/517-apm-uv into main
pull from: chore/517-apm-uv
12 changed files with 1994 additions and 1193 deletions

No files matched your search

+2
View File
@@ -34,4 +34,6 @@ GLOSSARY\\.md @Defame1297
\\.claude/.* @Defame1297 \\.claude/.* @Defame1297
apm\\.yml @Defame1297 apm\\.yml @Defame1297
apm\\.lock\\.yaml @Defame1297 apm\\.lock\\.yaml @Defame1297
pyproject\\.toml @Defame1297
uv\\.lock @Defame1297
\\.mcp\\.json @Defame1297 \\.mcp\\.json @Defame1297
+6 -6
View File
@@ -1,6 +1,6 @@
lockfile_version: '4' lockfile_version: '4'
generated_at: '2026-11-29T13:12:37.842657+00:00' generated_at: '2026-12-04T21:33:07.493501+00:00'
apm_version: 0.38.1 apm_version: 0.39.3
manifest_targets: manifest_targets:
- claude - claude
dependencies: dependencies:
@@ -220,8 +220,8 @@ dependencies:
.claude/agents/plan-researcher.md: sha256:eda0457d2007cf0c6cb4745383a0369d03a26ed252d7251a1f5250003a89ef85 .claude/agents/plan-researcher.md: sha256:eda0457d2007cf0c6cb4745383a0369d03a26ed252d7251a1f5250003a89ef85
.claude/agents/plan-validator.md: sha256:a56e7a710fd9e7a9dd9e2601f1f2701b98fd229f3e014bba4bda4dfe5977ecae .claude/agents/plan-validator.md: sha256:a56e7a710fd9e7a9dd9e2601f1f2701b98fd229f3e014bba4bda4dfe5977ecae
.claude/commands/next.md: sha256:8e16330ec0f16dbbc86d44fca94699e33e393c9a8af76f45d3f3bd2b9c8bfa1f .claude/commands/next.md: sha256:8e16330ec0f16dbbc86d44fca94699e33e393c9a8af76f45d3f3bd2b9c8bfa1f
.claude/commands/plan.md: sha256:2538b3dbb3860ebe93a39cad95cd5a1adcbeded19f404a84201b3e8aa7ce91c7 .claude/commands/plan.md: sha256:c5216fb6c443ca9de45ad5cb69351a4e3193bcb5ffca4d59567495fcb5d7ec71
.claude/commands/ship.md: sha256:f108f73e60a884f46285955027fba47d6309fed6a89812948f577e27be180af8 .claude/commands/ship.md: sha256:c3c9f516b9b01cb7f879d7d331187b12f697f73104b0eafdc813d64b73091284
.claude/skills/plan-track/LICENSE: sha256:9d3692e6b35e0e43b81e096352f11c6b884e7004d78d3dcd92768232c6704525 .claude/skills/plan-track/LICENSE: sha256:9d3692e6b35e0e43b81e096352f11c6b884e7004d78d3dcd92768232c6704525
.claude/skills/plan-track/SKILL.md: sha256:fee5062c8c63b49f66368b290c8ebd8cfff744137670d0c037da1a49c455c047 .claude/skills/plan-track/SKILL.md: sha256:fee5062c8c63b49f66368b290c8ebd8cfff744137670d0c037da1a49c455c047
.claude/skills/research-docs/LICENSE: sha256:9d3692e6b35e0e43b81e096352f11c6b884e7004d78d3dcd92768232c6704525 .claude/skills/research-docs/LICENSE: sha256:9d3692e6b35e0e43b81e096352f11c6b884e7004d78d3dcd92768232c6704525
@@ -843,7 +843,7 @@ deployments:
owners: owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan - git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:2538b3dbb3860ebe93a39cad95cd5a1adcbeded19f404a84201b3e8aa7ce91c7 content_hash: sha256:c5216fb6c443ca9de45ad5cb69351a4e3193bcb5ffca4d59567495fcb5d7ec71
- kind: project-relative - kind: project-relative
target: claude target: claude
value: .claude/commands/ship.md value: .claude/commands/ship.md
@@ -852,7 +852,7 @@ deployments:
owners: owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan - git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:f108f73e60a884f46285955027fba47d6309fed6a89812948f577e27be180af8 content_hash: sha256:c3c9f516b9b01cb7f879d7d331187b12f697f73104b0eafdc813d64b73091284
- kind: project-relative - kind: project-relative
target: claude target: claude
value: .claude/skills/code-review value: .claude/skills/code-review
+6
View File
@@ -63,6 +63,12 @@ held by review until an offline link check exists.
pushed on an unmerged branch lets that branch's commands run without a prompt before anyone has pushed on an unmerged branch lets that branch's commands run without a prompt before anyone has
reviewed it, while a `deny` or `ask` rule can only add prompts. reviewed it, while a `deny` or `ask` rule can only add prompts.
*Held by:* review (`.claude/` is under `CODEOWNERS`). *Held by:* review (`.claude/` is under `CODEOWNERS`).
- **Install [uv](https://docs.astral.sh/uv/getting-started/installation/), run `uv sync --frozen` once per
clone and again after a change to `uv.lock`, and run apm only as `uv run --frozen apm ...`** (for example
`uv run --frozen apm install`). uv keeps apm in `.venv`, apart from the tools in `.venv-dev`.
*Reason:* a bare `apm` is whatever version your machine has, and versions differ in which
`apm.lock.yaml` they accept and in what they deploy.
*Held by:* aspirational.
- **Every hook in the tracked `.claude/settings.json` arrives through apm; personal hooks go in - **Every hook in the tracked `.claude/settings.json` arrives through apm; personal hooks go in
`.claude/settings.local.json`.** `.claude/settings.local.json`.**
*Reason:* a hook nobody owns is checked by nothing. *Reason:* a hook nobody owns is checked by nothing.
+2
View File
@@ -60,6 +60,7 @@ build_ignore:
- images - images
- scripts - scripts
- tests/scripts - tests/scripts
- pyproject.toml
- renovate.json - renovate.json
- ruff.toml - ruff.toml
- requirements-dev.txt - requirements-dev.txt
@@ -67,6 +68,7 @@ build_ignore:
- requirements-molecule.txt - requirements-molecule.txt
- requirements-molecule.lock - requirements-molecule.lock
- requirements.yml - requirements.yml
- uv.lock
- gitleaks-report.json - gitleaks-report.json
- importer_result.json - importer_result.json
- 'roles/*/molecule' - 'roles/*/molecule'
+2 -2
View File
@@ -14,7 +14,7 @@
# distribution's python3 and ca-certificates. # distribution's python3 and ca-certificates.
# - /opt/venv: requirements-dev.lock, the hashed lock of requirements-dev.txt (ansible-core, ansible-lint, pre-commit, # - /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 # 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 # 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. # 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 # - /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 # 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 # .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 # 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. # downloaded, not the installer. The distribution's python3 only bootstraps uv.
RUN python3 -m venv /opt/uv-venv \ RUN python3 -m venv /opt/uv-venv \
+12
View File
@@ -0,0 +1,12 @@
# Pins apm for contributors (docs/contributing/setup.md). The Lint and Build tools are pinned in requirements-dev.txt.
[project]
name = "kamino"
version = "0"
# ruff reads this floor too: a higher one makes it reformat existing files.
requires-python = ">=3.11"
[dependency-groups]
dev = ["apm-cli==0.39.3"]
[tool.uv]
package = false
-1
View File
@@ -196,7 +196,6 @@
"pypi" "pypi"
], ],
"matchPackageNames": [ "matchPackageNames": [
"apm-cli",
"antsibull-changelog", "antsibull-changelog",
"galaxy-importer", "galaxy-importer",
"reuse", "reuse",
+6 -1180
View File
File diff suppressed because it is too large. Load diff
+1 -4
View File
@@ -1,5 +1,5 @@
# Pinned tooling for Lint and Build, used by CI (.gitea/workflows) and locally: # Pinned tooling for Lint and Build, used by CI (.gitea/workflows) and locally:
# python3 -m venv .venv && . .venv/bin/activate && pip install --require-hashes -r requirements-dev.lock -r requirements-dev.txt # python3 -m venv .venv-dev && . .venv-dev/bin/activate && pip install --require-hashes -r requirements-dev.lock -r requirements-dev.txt
# This file holds the direct pins; requirements-dev.lock is their hashed lock (every transitive # This file holds the direct pins; requirements-dev.lock is their hashed lock (every transitive
# package too, with the sha256 of each release file) and is what gets installed; pip refuses an # package too, with the sha256 of each release file) and is what gets installed; pip refuses an
# install in which the two files disagree. Renovate bumps a pin here and regenerates the lock # install in which the two files disagree. Renovate bumps a pin here and regenerates the lock
@@ -18,6 +18,3 @@ molecule==26.11.1
# proxmoxer: the controller-side library community.proxmox's modules import (they refuse anything below 2.3), # proxmoxer: the controller-side library community.proxmox's modules import (they refuse anything below 2.3),
# so lint runs where a consumer's controller would. # so lint runs where a consumer's controller would.
proxmoxer==2.3.0 proxmoxer==2.3.0
# apm-cli: for changing apm.yml (run apm install, commit the lock). Keep it at 0.36.1 or later (#252):
# before 0.29.0, `apm audit --ci` compares the whole .claude/settings.json and fails on any hand-written key.
apm-cli==0.39.1
+2
View File
@@ -92,6 +92,8 @@ IGNORED = (
"ruff.toml", "ruff.toml",
"apm.yml", "apm.yml",
"apm.lock.yaml", "apm.lock.yaml",
"pyproject.toml",
"uv.lock",
".claude/*", ".claude/*",
"tests/sanity/*", "tests/sanity/*",
"tests/scripts/*", "tests/scripts/*",
@@ -217,6 +217,10 @@ class SelectTest(unittest.TestCase):
chosen, _reason = self.select(["requirements-dev.txt", "requirements-dev.lock"]) chosen, _reason = self.select(["requirements-dev.txt", "requirements-dev.lock"])
self.assertEqual(chosen, []) self.assertEqual(chosen, [])
def test_the_apm_pin_selects_nothing(self):
chosen, _reason = self.select(["pyproject.toml", "uv.lock"])
self.assertEqual(chosen, [])
def test_molecule_requirements_select_everything(self): def test_molecule_requirements_select_everything(self):
# An ansible-core or molecule bump there changes the tools every scenario runs with. # An ansible-core or molecule bump there changes the tools every scenario runs with.
for path in ("requirements-molecule.txt", "requirements-molecule.lock"): for path in ("requirements-molecule.txt", "requirements-molecule.lock"):
Generated
+1951
View File
File diff suppressed because it is too large. Load diff