benfred / py-spy

Sampling profiler for Python programs
MIT License
12.89k stars 431 forks source link

Handle trailing build metadata in Python version string #628

Closed andrewjcg closed 1 year ago

andrewjcg commented 1 year ago

Don't fail Python versions when the version string contains trailing build metadata after the + (as per: https://semver.org/#spec-item-10).

andrewjcg commented 1 year ago

Added test and also updated regex to match full build metadata format supported by https://semver.org/#spec-item-10.