Add GitHub workflow for updating pyproject-nix and uv#1024
Closed
juliankuners wants to merge 1 commit intomasterfrom
Closed
Add GitHub workflow for updating pyproject-nix and uv#1024juliankuners wants to merge 1 commit intomasterfrom
juliankuners wants to merge 1 commit intomasterfrom
Conversation
0f535c4 to
f73e998
Compare
f73e998 to
10f8bab
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With the migration from
poetrytouvand frompoetry2nixtouv2nix, we have new tools that we want to keep updated. At the same time, we want these updates to happen explicitly and not silently withnix flake updateinvocations. Therefore, the respectivepyproject-nixrevisions are hard coded in the nix flake file. On top of that, due to verbosity, we decided to explicitly installuvwith a fixed version in CI.To update
uvanduv2nix, the revisions specified in the nix flake fileflake.nixand the versions specified in the GitHub workflows must be updated and kept in sync. This pull request adds a dispatchable GitHub workflow that updates both and keeps the version always in sync.By default, the workflow installs up-to-date master branch revisions of
uv2nixandbuild-system-pkgsfrompyproject-nix. Thepyproject-nixnix input is configured to follow the respective input in theuv2nixflake, which means that no revision must be explicitly configured. The version ofuvthat is used byuv2nixis specified in theuv2nixrepository, see here. This version is automatically fetched and then updated in the GitHub workflows that installuvexplicitly.