From 1cf3156841eab0f50bb1e72e8697cb8fd93e1db5 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Sun, 28 Jan 2024 10:07:02 +0000 Subject: [PATCH] Warn if packages still using flit.buildapi instead of flit_core.buildapi --- flit/buildapi.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/flit/buildapi.py b/flit/buildapi.py index 0de2e9d4..c7f640f4 100644 --- a/flit/buildapi.py +++ b/flit/buildapi.py @@ -1 +1,6 @@ +from warnings import warn +warn('A package has specified `build-backend = "flit.buildapi"` and is being ' + 'built with Flit >= 3.10. This is likely to break in a future version. ' + 'Please change the backend to flit_core.buildapi, and/or specify a ' + 'maximum version of Flit.') from flit_core.buildapi import *