ci(lint): accept an apm-cli bump in the bot-diff check
A Renovate pull request may now change pyproject.toml and uv.lock, but only together, so the pep621 manager can move the apm pin. In pyproject.toml only the version of a quoted name==version pin may change. uv.lock is parsed with tomllib in a module of its own, check_uv_lock.py, because uv installs whatever the lock names and a line-shape rule cannot tie a file to its package: a file of another package under apm-cli, an added package, a marker that drops a dependency and a downgrade all passed one. The parsed rule allows only apm-cli moving up to the pin in pyproject.toml, as plain releases compared as numbers, with the same kinds of file as before (an sdist if it had one, the same wheel tags), each on files.pythonhosted.org under /packages/ without dot segments or escapes, named for apm-cli at the pin, by sha256. Every other package, the root project beyond its apm-cli specifier and the top level beyond `revision` must stay as they are. Without the same file kinds, a lock could drop the wheels and make uv build apm-cli from its sdist with a build backend fetched at sync time. A bump that moves anything else is made by hand. Refs: #518 Assisted-by: Claude Code
This commit is contained in:
1 parent
535926b36e
commit
47641ae01d
7 files changed
+754
-10
No files matched your search
@@ -221,6 +221,12 @@ class SelectTest(unittest.TestCase):
|
||||
chosen, _reason = self.select(["pyproject.toml", "uv.lock"])
|
||||
self.assertEqual(chosen, [])
|
||||
|
||||
def test_the_bot_diff_check_selects_nothing(self):
|
||||
chosen, _reason = self.select(
|
||||
["scripts/check_bot_pr_diff.py", "scripts/check_uv_lock.py"]
|
||||
)
|
||||
self.assertEqual(chosen, [])
|
||||
|
||||
def test_molecule_requirements_select_everything(self):
|
||||
# An ansible-core or molecule bump there changes the tools every scenario runs with.
|
||||
for path in ("requirements-molecule.txt", "requirements-molecule.lock"):
|
||||
|
||||
Reference in new issue
Block a user