My approach to Python packaging infrastructure is mostly "look up whatever @hynek is doing and copy that", and I'm glad to have that vindicated by Andrew Nesbitt's #PyConUS GitHub Actions talk recommending Hynek's 'stamina' package as one with a setup worth studying and learning from.
Everyone, do as Hynek says!
(also, go sponsor him so he can keep doing good things)