https://pantsbuild.org/ logo
#general
Title
# general
b

bitter-ability-32190

10/26/2021, 8:32 PM
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

witty-crayon-22786

10/26/2021, 8:36 PM
cc @hundreds-father-404
h

hundreds-father-404

10/26/2021, 8:37 PM
Yeah, should be mitigated by Pants soon generating lockfiles for you
b

bitter-ability-32190

10/26/2021, 8:38 PM
Is that an an rc? Happy to try it out 😉
h

hundreds-father-404

10/26/2021, 8:47 PM
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

bitter-ability-32190

10/26/2021, 8:49 PM
Oh yeah, already using the per-tool ones
h

hundreds-father-404

10/26/2021, 8:50 PM
In the meantime, you can tell
pip-compile
--strip-extras
🙌 1
w

witty-crayon-22786

10/26/2021, 8:58 PM
mm, thanks: i missed that. will add it to the page.
b

bitter-ability-32190

10/26/2021, 8:58 PM
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
3 Views