-
-
Notifications
You must be signed in to change notification settings - Fork 640
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
Can't export virtualenv for coverage-py
or mypy-extra-type-stubs
#19601
Comments
Welcome to the Pantsbuild Community. This looks like your first issue here. Thanks for taking the time to write it. If you haven't already, feel free to come say hi on Slack. If you have questions, or just want to surface this issue, check out the Thanks again, and we look forward to your next Issue/PR 😄! |
uuuuuuugh, I suspect this is due to dashes in the resolve names... |
@benjyw i initially thought that as well, but i can export my |
Does this persist in 2.17.0rc3, say? |
Note that post-2.16.0 those special tool lockfiles aren't a thing any more, and the only lockfiles are the ones you explicitly enumerate in |
@benjyw understood - do i take this to mean that pants will no longer include pytest/mypy/etc and it will be up to the user to wire up specific tools+versions to tell EDIT: if this is the case then I won't mind closing this as |
Pants will still include default versions of those, so things will continue to work out of the box. But you won't be able to export them unless you explicitly configure them. Which I can see is a hassle for your specific use case. Hmm. |
So you can still |
But the use case of "I want to export the default mypy lockfile so vscode can use it" is not covered, true. I will have a think about that one. |
cheers thanks @benjyw - let me know how I can help! |
Ah, so, one solution is, for each tool you want to export, add this explicitly to your pants.toml, under
(pointing to the right package and lockfile for that tool, obviously) That maps the default lockfile to a named resolve, so you can then export it. |
This should all work in 2.16.x I think, but certainly in 2.17.x |
Describe the bug
I'm unable to
pants export
a virtualenv forcoverage-py
ormypy-extra-type-stubs
. Attempting either gets me the same error as below:Pants version
2.16.0
OS
Linux. Have not tried macOS. See additional info
Additional info
The base system is Arch and I'm running a custom development container that's using pants/poetry/pyenv with Debian Bookworm as a base. Dockerfile contents below:
Once I spin up this container I then git clone a repository that has the
pants
binary included in it, then run mypants
goals from the git repository folder using./pants fmt ::
./pants export
etc etcThe text was updated successfully, but these errors were encountered: