Skip to content

Make reproducible with Devenv#63

Open
SpectralPixel wants to merge 2 commits intofreifunk:mainfrom
SpectralPixel:make-reproducible
Open

Make reproducible with Devenv#63
SpectralPixel wants to merge 2 commits intofreifunk:mainfrom
SpectralPixel:make-reproducible

Conversation

@SpectralPixel
Copy link
Copy Markdown

I understand this is opinionated, feel free to reject this PR.

I propose that, for future development, we switch away from requirements.txt since it is an outdated standard for dependencies.

The reason I chose Devenv/Nix is because:
A) It ensures that everyone is using the correct Python version
B) All dependencies can be defined from Nixpkgs
C) Direnv auto-enables the Devenv environment when the developer enters the directory
D) Devenv doesn't just make Python reproducible, but also contains tools for declaratively installing toolchains for other languages. This means that npm, uv, and whatever else could be used in this repo going forward, don't need to be manually set up by every developer. Setup is automatic.

Of course, most of the same things can be achieved with uv or poetry as well.

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