diff --git a/.changelog/_unreleased.toml b/.changelog/_unreleased.toml new file mode 100644 index 00000000..cee1e924 --- /dev/null +++ b/.changelog/_unreleased.toml @@ -0,0 +1,5 @@ +[[entries]] +id = "d8ada304-d3fe-43f0-b4fa-7d655949cdbc" +type = "improvement" +description = "Always run `uv sync`" +author = "thomas.pellissier-tanon@helsing.ai" diff --git a/kraken-build/src/kraken/std/python/buildsystem/uv.py b/kraken-build/src/kraken/std/python/buildsystem/uv.py index 4c5a5ce5..8c510681 100644 --- a/kraken-build/src/kraken/std/python/buildsystem/uv.py +++ b/kraken-build/src/kraken/std/python/buildsystem/uv.py @@ -301,3 +301,6 @@ def install(self, settings: PythonSettings) -> None: unsafe_command = [self.uv_bin, "sync"] + indexes.to_unsafe_args() logger.info("Running %s in '%s'", safe_command, self.project_directory) sp.check_call(unsafe_command, cwd=self.project_directory) + + def always_install(self) -> bool: + return True