pypa / flit

Simplified packaging of Python modules
https://flit.pypa.io/
BSD 3-Clause "New" or "Revised" License
2.14k stars 130 forks source link

Warn if packages still using flit.buildapi instead of flit_core.buildapi #674

Open takluyver opened 5 months ago

takluyver commented 5 months ago

I'm not 100% sold on this: the removal would break things that might otherwise work, and it's a tiny bit of complexity by itself. But any project still specifying flit.buildapi is probably also using old-style metadata ([tool.flit.metadata] table), which 4.0 will likely not support (#673), and that is enough complexity to be worth cleaning up.

Using python -m build, this warning is visible. Using pip wheel (and presumably any other pip command that does a build), it isn't (pip wheel -v shows it). I don't think there's anything we can do to make it more visible, but a warning that only some people see is better than no warning.

First step for #519