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

tox: use deps = . instead of pip install #160

Merged
merged 1 commit into from
Aug 5, 2024
Merged

Conversation

Amar1729
Copy link
Contributor

If a user is using tox-uv (a plugin for tox that supports running the various pip commands vi uv), then pip install . is seen as an external command, which would require allowlist_externals. Instead, install the local project by specifying it as a dep. Then, regular tox and tox-uv both will install it as pip install . or uv pip install ., respectively.


tested with tox 4.16.0, with and without tox-uv-1.9.0 installed.

If a user is using `tox-uv` (a plugin for tox that supports running the
various `pip` commands vi `uv`), then `pip install .` is seen as an
external command, which would require `allowlist_externals`. Instead,
install the local project by specifying it as a dep. Then, regular tox
and tox-uv both will install it as `pip install .` or `uv pip install
.`, respectively.
@jsh9
Copy link
Owner

jsh9 commented Aug 5, 2024

Thank you for making this change!

@jsh9 jsh9 merged commit 1e80fd3 into jsh9:main Aug 5, 2024
16 checks passed
@Amar1729 Amar1729 deleted the fix/tox-uv branch August 5, 2024 12:42
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