fresh-cat-90827
10/27/2021, 10:04 PMrequirements.txt
file), I configure pants.toml
to be:
[python-setup]
...
requirement_constraints = "constraints.txt"
resolve_all_constraints = false
When running the tests, I can see this being printed:
Starting: Building requirements.pex with 4 requirements: PyYAML, dataclasses==0.6, marshmallow>=3.5, requests>=2.22
Does it mean that Pants ignores the constraints.txt
file?
I’ve left a dependency out of the constraints.txt
on purpose and got this message, so Pants must be able to find it
The constraints file constraints.txt does not contain entries for the following requirements: elasticsearch
fresh-cat-90827
10/27/2021, 10:05 PMIf disabled, Pants will not use a global resolve and will resolve each subset of your requirements independentlySo it should still be able to use pinned versions from the constraints, am I wrong?
hundreds-father-404
10/27/2021, 10:09 PM-ldebug
to see the argv for the Process
That warning is a hint that your constraints file isn't as comprehensive as you may have intendedfresh-cat-90827
10/27/2021, 10:11 PMI’ve left a dependency out of thethat was in another run to see if Pants will pick it up. I get theon purposeconstraints.txt
Starting: Building requirements.pex with 4 requirements: PyYAML, dataclasses==0.6, marshmallow>=3.5, requests>=2.22
in both cases 🙂hundreds-father-404
10/27/2021, 10:15 PMfresh-cat-90827
10/27/2021, 10:15 PMYou can confirm by usingThank you, can confirm these are showing upto see the argv for the Process-ldebug
"--constraints", "constraints.txt"
fresh-cat-90827
10/27/2021, 10:17 PMhundreds-father-404
10/27/2021, 10:19 PMInstalling data_science.lockfile
, followed by Extracting 4 requirements from data_science.lockfile: Django, ansicolors
etcbusy-vase-39202
10/27/2021, 10:29 PM