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 --pin flag for juv add #51

Merged
merged 3 commits into from
Nov 14, 2024
Merged

Add --pin flag for juv add #51

merged 3 commits into from
Nov 14, 2024

Conversation

manzt
Copy link
Owner

@manzt manzt commented Nov 14, 2024

Adds a --pin flag to juv add to resolve packages to a specific version. This will effectively pin the package in the notebook/script to whatever the resolver finds at the time of the command.

Works with both scripts and notebooks.

uvx juv init
uvx juv add Untitled.ipynb numpy polars --pin # adds numpy==2.1.3 polars==1.13.1
uv init --script foo.py
uvx juv add foo.py numpy polars --pin

@manzt manzt changed the title Add --exact flag for juv add Add --pin flag for juv add Nov 14, 2024
@manzt manzt added the enhancement New feature or request label Nov 14, 2024
@manzt manzt merged commit 7fde599 into main Nov 14, 2024
13 checks passed
@manzt manzt deleted the manzt/add-exact branch November 14, 2024 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant