freezing-fall-2672
08/31/2023, 9:25 AM*.in files and pip-compile renders the *.txt requirements files. Maybe this functionality is also already implemented in pants, or it might be a good feature request ... I'm just thinking out loud to further understand pantsbuild. So, any comments appreciated 🙂refined-addition-53644
08/31/2023, 9:35 AMpip-compile but googling I think you are looking for the info about exact version and the transitive dependencies or something else?enough-analyst-54434
08/31/2023, 9:35 AMfreezing-fall-2672
08/31/2023, 9:58 AM*.in files is that my intended dependencies are clearly stated.
f.e. if I install just django, I end up with:
asgiref==3.7.2
Django==4.2.4
sqlparse==0.4.4
in the dependencies
so if I'd just do now pip freeze > requirements.txt I can't tell anymore if I did only pip install django or the also the others.
with this simple example of course it's not a big deal, but with a growing code base it's really hard to determine what was the intended dependency and what wasn't.freezing-fall-2672
08/31/2023, 10:05 AM*.in files are providing to me - I could just have django or of course f.e. django==4.2.4 in it ...
so, the files generated by pip-compile include also the origin of a dependency and it's (easily) visible what caused itbroad-processor-92400
08/31/2023, 10:20 AMpython_requirement targets (and related ones) can be used to specify the “real” dependencies, and the generated lock file includes all the transitive ones.enough-analyst-54434
08/31/2023, 1:14 PMenough-analyst-54434
08/31/2023, 1:16 PMfreezing-fall-2672
08/31/2023, 1:58 PMgreen-match-60388
08/31/2023, 3:50 PMpyproject.yaml to get a very similar thing with poetry_requirements.freezing-fall-2672
09/01/2023, 5:42 AM