Just added `requirement_constraints = "constraints...
# general
b
Just added
requirement_constraints = "constraints.txt"
and saw
ERROR: Constraints cannot have extras
the output wasn't very helpful (I'll file an issue) but I think the offender is
marshmallow-dataclass[enum,union]==8.5.3
. The file was generated by
pip-compile
version
6.2.0
Along with
coverage[toml]==5.5
w
cc @hundreds-father-404
h
Yeah, should be mitigated by Pants soon generating lockfiles for you
b
Is that an an rc? Happy to try it out 😉
h
Pants 2.7 has tool lockfiles, which is a precursor! https://blog.pantsbuild.org/introducing-pants-2-7/ We made some progress on the next step of lockfiles for your own code, but it got put on pause last month for me to focus on adding Go support while another maintainer John Sirois works on teaching Pex to use Pip to generate lockfiles that work with a couple important edge cases like
--find-links
and
--platforms
. We're using Poetry right now, but it has some key limitations: https://github.com/pantsbuild/pants/issues/12568 John has been making exciting progress on the Pex front, and Go support is nearing feature completeness for its first phase, so only polish after that. Meaning, I hope to get back to the lockfile project in November as my next highest priority
b
Oh yeah, already using the per-tool ones
h
In the meantime, you can tell
pip-compile
--strip-extras
🙌 1
w
mm, thanks: i missed that. will add it to the page.
b
I advocated hard for
poetry
at my last company. I want to love it, I do. But every rose has it's thorns and
poetry
is no different 😭
1