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

Extend venv export to standalone scripts as well #82

Merged
merged 1 commit into from
Mar 6, 2025
Merged

Conversation

manzt
Copy link
Owner

@manzt manzt commented Mar 6, 2025

Allows for passing a script with inline script metadata to juv venv.

uv init --script foo.py
uv add --script foo.py attrs
juv venv --from=foo.py
# Using CPython 3.13.0
# Creating virtual environment at: .venv
# Activate with: source .venv/bin/activate
# Using Python 3.13.0 environment at: .venv
# Resolved 1 package in 0.62ms
# Installed 1 package in 1ms
# + attrs==25.1.0

Useful for quickly creating a .venv for a standalone script, which can be
used by other tools like text editors or IDEs.

@manzt manzt added the enhancement New feature or request label Mar 6, 2025
@manzt manzt merged commit 7d6ba65 into main Mar 6, 2025
19 checks passed
@manzt manzt deleted the manzt/venv-script branch March 6, 2025 20:25
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