FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat: add venv-path input for custom virtual environment location by seemethere · Pull Request #736 · astral-sh/setup-uv · GitHub

feat: add venv-path input for custom virtual environment location - #736

Closed
seemethere wants to merge 2 commits into
astral-sh:mainfrom
seemethere:seemethere/add_custom_venv_path
Closed

seemethere wants to merge 2 commits into
astral-sh:mainfrom
seemethere:seemethere/add_custom_venv_path

Conversation

seemethere commented Jan 20, 2026
edited
Loading

Copy link
Copy Markdown

Allow users to specify a custom path for the virtual environment when using activate-environment. This is useful for CI workflows that need to create isolated venvs outside the working directory (e.g., in $RUNNER_TEMP) to avoid conflicts with project-level configurations.

When venv-path is not specified, the default behavior remains unchanged (.venv in the working directory).

Also adds a CI test for this

Allow users to specify a custom path for the virtual environment when
using activate-environment. This is useful for CI workflows that need
to create isolated venvs outside the working directory (e.g., in
$RUNNER_TEMP) to avoid conflicts with project-level configurations.

When venv-path is not specified, the default behavior remains unchanged
(.venv in the working directory).
seemethere force-pushed the seemethere/add_custom_venv_path branch from 9b64ecf to c193917 Compare January 20, 2026 21:20
Comment thread src/setup-uv.ts Outdated
core.info("Activating python venv...");
await exec.exec("uv", execArgs);
// Use custom venv path if provided, otherwise default to .venv in working directory
const venvPath =

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Let's move that to getVenvPath to encapsulate all logic there

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Fixed!

Signed-off-by: Eli Uriegas <eliuriegas@meta.com>
Comment thread src/setup-uv.ts
}
}

function getVenvPath(): string {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Is there a reason I am not seeing why the logic of this function cannot fully move to inputs.ts?

eifinger added a commit that referenced this pull request Feb 4, 2026
Allow customizing the venv location while preserving working-directory
semantics via --directory.

Supersedes: #736
eifinger closed this Feb 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL