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

Add support for uv as package manager #218

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

mads-oestergaard
Copy link

@mads-oestergaard mads-oestergaard commented Oct 31, 2024

This PR addresses #214 by supporting uv as package manager similar to how it's done for poetry today.

It does not change the default behaviour of pip, although that could also be done.

I have a single TODO that I'm unsure of. In commands/worker.py, line 3457, I would like to set UV_PROJECT_ENVIRONMENT to the current venv cache dir. What should that be?

@mads-oestergaard
Copy link
Author

Updated the PR.

I now choose the cache dir to point to the agent.venvs_dir path. That should ensure that venvs are cached between invocations. UV creates a .venv dir in the root of the project, so that's also accounted. for.

@jkhenning @bmartinn for visibility.

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