Skip to content

Add GitHub workflow for updating pyproject-nix and uv#1024

Closed
juliankuners wants to merge 1 commit intomasterfrom
pyproject-nix-update-workflow
Closed

Add GitHub workflow for updating pyproject-nix and uv#1024
juliankuners wants to merge 1 commit intomasterfrom
pyproject-nix-update-workflow

Conversation

@juliankuners
Copy link
Copy Markdown
Contributor

@juliankuners juliankuners commented May 13, 2025

With the migration from poetry to uv and from poetry2nix to uv2nix, we have new tools that we want to keep updated. At the same time, we want these updates to happen explicitly and not silently with nix flake update invocations. Therefore, the respective pyproject-nix revisions are hard coded in the nix flake file. On top of that, due to verbosity, we decided to explicitly install uv with a fixed version in CI.

To update uv and uv2nix, the revisions specified in the nix flake file flake.nix and 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 uv2nix and build-system-pkgs from pyproject-nix. The pyproject-nix nix input is configured to follow the respective input in the uv2nix flake, which means that no revision must be explicitly configured. The version of uv that is used by uv2nix is specified in the uv2nix repository, see here. This version is automatically fetched and then updated in the GitHub workflows that install uv explicitly.

@juliankuners juliankuners force-pushed the pyproject-nix-update-workflow branch 7 times, most recently from 0f535c4 to f73e998 Compare May 13, 2025 13:06
@juliankuners juliankuners force-pushed the pyproject-nix-update-workflow branch from f73e998 to 10f8bab Compare May 13, 2025 13:23
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