bitter-ability-32190
07/27/2023, 11:03 PMtoml
and types-toml
, the peek
shows that types-toml
has a null
types_stubs_modules
. Is that expected?
I don't see it anywhere when running check
on a file with a toml
dependency.
Additionally, if I set types_stubs_modules
myself, still nadabitter-ability-32190
07/27/2023, 11:30 PMmain
, in the Pants repo, it seemsbitter-ability-32190
07/27/2023, 11:32 PMpytest
depends on toml
, but we don't see that. So we don't include types-toml
in the PEX.
If I tell Pants that pytest
depends on toml
, it doesn't bring along the type stubs however.bitter-ability-32190
07/27/2023, 11:34 PMhappy-kitchen-89482
07/28/2023, 5:38 AMhundreds-father-404
07/28/2023, 10:02 AMpytest depends on toml, but we don't see that. So we don't include types-toml in the PEX.Yep, pants has no notion of transitive depencencies declared via python packaging metadata
bitter-ability-32190
07/28/2023, 12:00 PMtoml
depend on types-toml
instead of them being siblings.
OR, when we run check
we go hunting for toml
type stubs if toml is requested.
I think with tagged dependencies option 1 is cleanerhundreds-father-404
07/28/2023, 12:02 PMpytest
doesn't directly depend on toml
in Pants's view of deps, right? If you run pants dependencies
, toml won't show up. So that wouldn't make a difference if types-toml
was a dep of toml
bitter-ability-32190
07/28/2023, 12:04 PMbitter-ability-32190
07/28/2023, 12:05 PMbitter-ability-32190
07/28/2023, 12:07 PMhundreds-father-404
07/28/2023, 12:08 PMtypes-toml
be a dependant automatically of toml
hundreds-father-404
07/28/2023, 12:08 PMI'll also say I've been wondering if we could have a plugin that dumps the dependency graph into BUILD.pants,Ha, I was originally a proponent of buildgen rather than dep inference. Benjy and Stu convinced me out of it. This is best as a dedicated thread
happy-kitchen-89482
07/28/2023, 6:31 PMbitter-ability-32190
07/28/2023, 6:32 PM