Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from poetry to uv #3818

Open
DeD1rk opened this issue Oct 21, 2024 · 2 comments
Open

Switch from poetry to uv #3818

DeD1rk opened this issue Oct 21, 2024 · 2 comments
Labels
chore Something that is not a bug or a feature, does not change production behaviour priority: low Should be dealt with when nothing else remains. request-for-comments Author wants to have other people respond for their opinion

Comments

@DeD1rk
Copy link
Member

DeD1rk commented Oct 21, 2024

What?

uv is like poetry. We can replace poetry with it.

Why?

uv is much faster, and has some additional features. Mainly, uv can (and will automatically) also manage your python installation. That is, when doing uv sync it will e.g. install python 3.13 if that's the version configured in pyproject.toml, regardless of your OS. So I think it can simplify setup by quite a bit.

One (temporary) downside is that uv.lock is not yet supported by Dependabot. There is WIP on that front, but it seems to be taking some time.

How?

  • Update the pyproject.toml for the new format.
  • Update the README.
  • Update the Dockerfiles.
  • Update CI and the pre-commit config.
  • Also do the same in the miniconcrexit-tutorial repo, and see what steps are needed to get uv installed in github codespaces and apply those there and optionally here.
@DeD1rk DeD1rk added priority: low Should be dealt with when nothing else remains. request-for-comments Author wants to have other people respond for their opinion chore Something that is not a bug or a feature, does not change production behaviour labels Oct 21, 2024
@ColonelPhantom
Copy link
Contributor

I like the idea, but we should probably at least wait for Dependabot to properly support it? Otherwise we can definitely give it a try.

@DeD1rk
Copy link
Member Author

DeD1rk commented Oct 23, 2024

Yeah it would be nice to wait for dependabot. There's also some issues running uv/ruff on nixos but tbh idc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Something that is not a bug or a feature, does not change production behaviour priority: low Should be dealt with when nothing else remains. request-for-comments Author wants to have other people respond for their opinion
Projects
None yet
Development

No branches or pull requests

2 participants