scancode-toolkit
scancode-toolkit copied to clipboard
Unable to get name, version, extension from get_sdist_name_ver_ext in utils_thirdparty.py
Description
Unable to get name, version, extension from get_sdist_name_ver_ext in utils_thirdparty.py
How To Reproduce
>>> from utils_thirdparty import *
>>> get_sdist_name_ver_ext("functools32-3.2.3-2.zip")
https://pypi.org/simple/functools32/
System configuration
Linux Python 3.8
According to this https://peps.python.org/pep-0440/ , it is a non-valid version, since it has a hyphen in version.