Skip to content

Commit

Permalink
Warn if packages still using flit.buildapi instead of flit_core.buildapi
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Jan 28, 2024
1 parent 792500a commit 1cf3156
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions flit/buildapi.py
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
from warnings import warn
warn('A package has specified `build-backend = "flit.buildapi"` and is being '

Check warning on line 2 in flit/buildapi.py

View check run for this annotation

Codecov / codecov/patch

flit/buildapi.py#L1-L2

Added lines #L1 - L2 were not covered by tests
'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 *

0 comments on commit 1cf3156

Please sign in to comment.