important-librarian-62877
04/06/2021, 12:38 AMconstraints.txt
file?hundreds-father-404
04/06/2021, 12:39 AMhundreds-father-404
04/06/2021, 12:41 AMimportant-librarian-62877
04/06/2021, 12:45 AMimportant-librarian-62877
04/06/2021, 12:47 AMhundreds-father-404
04/06/2021, 12:47 AMimportant-librarian-62877
04/06/2021, 12:48 AMhundreds-father-404
04/06/2021, 12:49 AM[python-setup].requirement_constraints
and then Pants caching logic will kick inimportant-librarian-62877
04/06/2021, 12:49 AMimportant-librarian-62877
04/06/2021, 4:27 PMutm==0.4.2
BUILD
python_requirements()
constraints.txt
# This is the version of the transitive dependency that I want to resolve, but 5.0.5 is still being resolved
decorator==4.4.2
pants.toml
[python-setup]
requirement_constraints = "%(buildroot)s/3rdparty/constraints.txt"
important-librarian-62877
04/06/2021, 4:28 PMimportant-librarian-62877
04/06/2021, 4:30 PMpython_binary(
name='service',
sources=['main.py'],
zip_safe=False,
dependencies=[
# utm is brought in as a dependency in :impl
':impl',
],
tags={'default-build', 'docker-build'}
)
and the command I run
./pants -ldebug binary services/service
hundreds-father-404
04/06/2021, 4:31 PM3rdparty/constraints.txt
without %(buildroot)s
. I hope that's not it and we would error if it was, but possibly relevantimportant-librarian-62877
04/06/2021, 4:35 PMhundreds-father-404
04/06/2021, 4:37 PMhundreds-father-404
04/06/2021, 4:38 PMimportant-librarian-62877
04/06/2021, 4:38 PMhundreds-father-404
04/06/2021, 5:10 PMimportant-librarian-62877
04/06/2021, 5:28 PM