On setuptools 66+, I see some tests in tests/functional/workflows/python_pip/test_packager.py::TestSdistMetadataFetcher start to fail with a aws_lambda_builders.workflows.python_pip.packager.UnsupportedPackageError: Unable to retrieve name/version for package: sdist error.
Description:
On setuptools 66+, I see some tests in
tests/functional/workflows/python_pip/test_packager.py::TestSdistMetadataFetcher
start to fail with aaws_lambda_builders.workflows.python_pip.packager.UnsupportedPackageError: Unable to retrieve name/version for package: sdist
error.This is because some a few tests set up packages with version numbers that do not conform to PEP 440, and setuptools 66 dropped support for non-conforming versions: https://setuptools.pypa.io/en/stable/history.html#v66-0-0
Steps to reproduce:
Simply install the latest version of setuptools (67.6.0 at time of writing) and run the relevant tests: