See discussion full discussion started in https://github.com/typeshed-internal/stub_uploader/pull/165#pullrequestreview-2727780290 Looks like `flit_core` might be the best fit.