Now that flit 3.8 is out, we can use a glob pattern which slightly simplifies things and means we don't need to remember to add another line here to exclude the tests if we add another app in future.
This does mean that flit 3.8.0 or higher is now required to build the package.
A little bit of follow up from https://github.com/wagtail/wagtail-localize/pull/589#discussion_r913691819
Now that flit 3.8 is out, we can use a glob pattern which slightly simplifies things and means we don't need to remember to add another line here to exclude the tests if we add another app in future. This does mean that flit 3.8.0 or higher is now required to build the package.