by SushiHippie · 3y ago · 0 comments
I understand their reasoning to be that it would require other tools to know how to parse python. Which is much more difficult than parsing toml
On that note, I will never understand why they chose .toml instead of just json or yaml..
More editable than JSON and far simpler than YAML.
---
The Rust ecosystem also uses TOML.
JSON - not the most convenient to use for human beings, too much quoting, not too git friendly because of disallowed trailing commas, etc.
TOML sits somewhere inbetween, easy to write but the spec is very short; also being used in Rust and a few other places.
Instead of:
[project] requires-python = ">=3.11" dependencies = [ "requests<3", "rich", ]
You could write:
{ "project": { "requires-python":">=3.11", "dependencies" : [ "requests<3", "rich" ] }
Gotta think carefully about this... Might upset some coworkers