quiet-army-59227
06/14/2024, 5:32 PMpants.*
imports come from and keeps giving me a warning. I can add # type: ignore
next to the imports to suppress the warning but that doesn't seem like a good solution. Is there a better way to fix this? Such as how we detect First Party sources?broad-processor-92400
06/14/2024, 7:58 PMpants_requirements
target anywhere? https://www.pantsbuild.org/2.21/docs/writing-plugins/overview#building-in-repo-plugins-with-pantsquiet-army-59227
06/14/2024, 8:23 PMpants-plugins/
quiet-army-59227
06/14/2024, 8:24 PMbroad-processor-92400
06/14/2024, 9:02 PMquiet-army-59227
06/14/2024, 10:16 PMquiet-army-59227
06/14/2024, 10:16 PMquiet-army-59227
06/14/2024, 10:17 PMquiet-army-59227
06/14/2024, 10:17 PMquiet-army-59227
06/14/2024, 10:18 PMpants.*
modulesquiet-army-59227
06/14/2024, 10:18 PMpants-plugins/*
filesbroad-processor-92400
06/14/2024, 10:54 PMquiet-army-59227
06/14/2024, 10:54 PMquiet-army-59227
06/14/2024, 10:55 PMbroad-processor-92400
06/14/2024, 10:55 PMquiet-army-59227
06/14/2024, 10:59 PMpants export --py-resolve-format=symlinked_immutable_virtualenv --resolve=python-default
which is what the link says to do for third party dependencies. I am working with the example-python
demo repo which has a BUILD file in the root directory which has python_requirements(name="reqs")
which takes all the packages mentioned in the requirements.txt
file and creates a python_requirement
target (as stated in the docs).quiet-army-59227
06/14/2024, 11:00 PMquiet-army-59227
06/14/2024, 11:01 PMpants generate-lockfiles
:broad-processor-92400
06/15/2024, 12:58 AMdist/
.? It’s not a conventional path like venv
or .venv
so may not be picked up automaticallybroad-processor-92400
06/15/2024, 1:00 AMquiet-army-59227
06/17/2024, 4:46 PMquiet-army-59227
06/17/2024, 8:16 PMexport
command, I get a path and if I put that path on vscode's pylance's settings under Extra Paths
it works - but only for 3rd party libraries. When I write my own plugin and import from pants.*
It doesn't recognize those importsbroad-processor-92400
06/17/2024, 11:07 PMquiet-army-59227
06/17/2024, 11:35 PM