benfred / py-spy

Sampling profiler for Python programs
MIT License
12.13k stars 401 forks source link

Handle trailing build metadata in Python version string #628

Closed andrewjcg closed 7 months ago

andrewjcg commented 8 months 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 7 months ago

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