-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Use uv to manage dependencies #178
Comments
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
click to expand
|
I found that other projects tend to use The problem is that pip wants to build Potential solutions:
|
Update: Looks like Our current options are:
Quick comparison:
Recommendation:
|
After trying out The only thing that concerns me is We don't currently do anything with hashes. To add it to our workflow, add |
I converted the issue to one that uses All the tasks are done in my fork. I need to clean up the commits before doing the PR. |
Overview
We should convert our project to use poetry so we can use it to easily upgrade packages when the github bot tells us there's new vulnerabilities in old packages.
Action Items
requirements.in
and add all our dependenciesrequirements.txt
using uvAfter merging
Resources/Instructions
Hatch writeup
I was exploring using hatch over poetry because it supports scripts and environments, among many other things. The advantage is we can move the run scripts into the toml file rather than have them as separate files. Also, we could have dev and docs environments where we can install different sets of packages and python versions if we wanted.
But I found that it’s missing a piece that I thought was important and that poetry has, which is the ability to upgrade packages to the latest version. That saves us time so we don’t have to look through pypi ourselves.
It’s a young project with great ideas and the maintainer seems willing to add missing features including this one. I think we should revisit it later and consider using it.
Many popular and progressive python projects already switched to it. A major draw of hatch is it support matrix builds with different python version combinations that a package wants to support. It's a feature that used to require running a separate tool called
tox
.The text was updated successfully, but these errors were encountered: