The `chevron==0.14.0` entry in `requirements.txt` ...
# development
f
The
chevron==0.14.0
entry in
requirements.txt
has the comment: Should only be used by build-support. What is the context for that comment? (I'd like to use a templating library in a rule in the Go backend and using a templating library that is already in the lockfile would be preferred.)
h
This is the PR that switched from pystache to chevron, started by @polite-garden-50641 and finished by @hundreds-father-404: https://github.com/pantsbuild/pants/pull/13528
Looks like Asher originally intended to leave it out of the main requirements.txt and Eric then moved it there but with that comment.
I think it’s just an attempt to minimize dep proliferation in the main pants binary?
Either way, if you need it, use it. It’s very lightweight and pure-python, so I don’t see it introducing any problems.
👍 1
f
I think it’s just an attempt to minimize dep proliferation in the main pants binary?
I believe so. Although having some templating solution available in rules should be fine in terms of dependencies.
strings.Template
in Python stdlib is woefully inadequate.
So will make use of it. Thanks!
h
I vaguely recalled at the time having issues with M1s. But probably that's solved now. This was early days I think, I was one of the first M1 users for Pants