Skip to content

build: Switch to uv_build - #1892

Open
jku wants to merge 1 commit into
sigstore:mainfrom
jku:uv-build
Open

build: Switch to uv_build#1892
jku wants to merge 1 commit into
sigstore:mainfrom
jku:uv-build

Conversation

@jku

@jku jku commented Sep 8, 2026

Copy link
Copy Markdown
Member

Switch from flit to uv_build as build backend to remove an additional dependency. This should also make the build actually reproducable (since flit was not strictly pinned)

  • stop using dynamic version (not supported by uv): add a build time check and tweak version test instead to ensure versions match. I did not use importlib.metadata.version("sigstore") to avoid the import and call on every invocation
  • Pin the uv_build version with the version-file: uv.lock trick for build reproducibility: otherwise uv-setup is not very strict about the uv version and will kind of use whatever is available
  • Results are basically identical (trivial changes in build metadata)

@jku
jku marked this pull request as draft September 8, 2026 10:00
Switch from flit to uv_build as build backend to remove an additional
dependency. This should also make the build actually reproducable
(since the flit was not strictly pinned)
* stop using dynamic version (not supported by uv): add a build time
  check and tweak version test instead to ensure versions match. I did
  not use `importlib.metadata.version("sigstore")` to avoid the import
  and call on every invocation
* Pin the uv_build version with the `version-file: uv.lock` trick
* Results are basically identical (trivial changes in build metadata)

Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
@jku

jku commented Sep 8, 2026

Copy link
Copy Markdown
Member Author
  • Pin the uv_build version with the version-file: uv.lock trick for build reproducibility: otherwise uv-setup is not very strict about the uv version and will kind of use whatever is available

this is likely not that important in practice, I can remove it if there's complaints. I just think build dependency versions should be pinned as strictly as runtime ones.

@jku
jku marked this pull request as ready for review September 8, 2026 10:21
@jku

jku commented Sep 8, 2026

Copy link
Copy Markdown
Member Author

/gcbrun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant