able-advantage-61346
12/22/2022, 2:04 PM./pants export::
does not include pytest. Because of that PyCharm's builtin test support won't work. I can add pytest to the list of 3rd party dependencies, but I am not sure this is how it's intended? I also get venv's for each tool, but those miss my regular dependencies.
• requirements.txt
) only pins version of the listed packages. If I want to lock the version of any downstream dependencies, should I instead use Pipenv or Poetry?curved-television-6568
12/22/2022, 2:55 PM• The virtual environment created byThedoes not include pytest. Because of that PyCharm’s builtin test support won’t work. I can add pytest to the list of 3rd party dependencies, but I am not sure this is how it’s intended? I also get venv’s for each tool, but those miss my regular dependencies../pants export::
export
goal will only include libs present in the “resolve” (fancy word for a lockfile) — if there’s no pytest in the lockfile it won’t be present in the exported venv either. If you need pytest in there, it’s fine to add it to your requirements.txt, you don’t need to worry it will end up in your production code as if you don’t have production code depending on pytest, it won’t be included there.
Regarding the tool venvs, same thing applies here, each tool have their own resolve (lockfile) unrelated to your projects resolves by design (otherwise there may be conflicts and what not).
What was your expectations for seeing your regular dependencies in the tools venv?
• The generated lockfile (based onThis sounds wrong. Could you provide more details? In my experience this works as intended, that the lockfile includes all transitive dependencies in the lockfile, not only those provided from the input requirements.txt) only pins version of the listed packages. If I want to lock the version of any downstream dependencies, should I instead use Pipenv or Poetry?requirements.txt
able-advantage-61346
12/22/2022, 3:08 PMhappy-kitchen-89482
12/22/2022, 3:36 PMcurved-television-6568
12/22/2022, 4:27 PMbusy-vase-39202
12/27/2022, 4:11 PM