https://pantsbuild.org/ logo
#development
Title
# development
w

wide-midnight-78598

04/05/2023, 7:46 PM
When building an external pants plugin - does Pants provide/expose a toml implementation that can be used?
1
a

ancient-vegetable-10556

04/05/2023, 7:53 PM
The wheel distribution includes a
Requires-Dist: toml (==0.10.2)
line, which would mean you can rely on
toml
to be present if Pants is
(Or use Python 3.11, which has toml in the stdlib!)
w

wide-midnight-78598

04/05/2023, 7:55 PM
3.11 would be the bees knees, but I think plugins need to be 3.9 compliant, correct?
a

ancient-vegetable-10556

04/05/2023, 7:55 PM
for the moment, yeah
w

wide-midnight-78598

04/05/2023, 7:56 PM
Requires-Dist: toml (==0.10.2)
line, which would mean you can rely on
toml
to be present if Pants is
Ah okay, this was the behaviour I was seeing - but I assumed it was because of my interpreters. This is great to know! Thanks
a

ancient-vegetable-10556

04/05/2023, 7:59 PM
👍
h

hundreds-father-404

04/05/2023, 10:22 PM
py 3.11 stdlib can read TOML, but not write it