We have built some automation around releases and testing that involve inspecting the version, to determine what type of release something is, and where to publish it (etc.).
Currently we are using a regex to parse pre PEP-440 versions. I was planning on using packaging to replace this, but it appears that packaging doesn't expose this information in a structured way.