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-uv-pip-replacement #1112

Merged
merged 3 commits into from
Apr 10, 2024
Merged

add-uv-pip-replacement #1112

merged 3 commits into from
Apr 10, 2024

Conversation

cpossinger
Copy link

This PR adds an option to enable the new uv pip drop in replacement for installing requirements and creating a virtual environment.

@cpossinger cpossinger changed the title add uv pip replacement add-uv-pip-replacement Apr 8, 2024
@@ -59,8 +59,17 @@ let
${lib.optionalString cfg.poetry.enable ''
[ -f "${config.env.DEVENV_STATE}/poetry.lock.checksum" ] && rm ${config.env.DEVENV_STATE}/poetry.lock.checksum
''}
echo ${package.interpreter} -m venv --upgrade-deps "$VENV_PATH"
${package.interpreter} -m venv --upgrade-deps "$VENV_PATH"
${lib.optionalString cfg.uv.enable ''
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to use if cond then s else s here for better readability

@domenkozar
Copy link
Member

Could you also add a test to tests?

@domenkozar domenkozar merged commit b47d72f into cachix:main Apr 10, 2024
@domenkozar
Copy link
Member

Thank you!

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.

2 participants