boto / boto3

AWS SDK for Python
https://aws.amazon.com/sdk-for-python/
Apache License 2.0
8.99k stars 1.86k forks source link

Fix CI for Python >= 3.12 #4208

Closed jonathan343 closed 2 months ago

jonathan343 commented 2 months ago

Our CI for Python >= 3.12 has started failing since setuptools-71.0.0 was released on 7/17:

Now setuptools declares its own dependencies in the core extra. Dependencies are still vendored for bootstrapping purposes, but setuptools will prefer installed dependencies if present. The core extra is used for informational purposes and should not be declared in package metadata (e.g. build-requires). Downstream packagers can de-vendor by simply removing the setuptools/_vendor directory. Since Setuptools now prefers installed dependencies, those installing to an environment with old, incompatible dependencies will not work. In that case, either uninstall the incompatible dependencies or upgrade them to satisfy those declared in core. (#2825)

This CR installs pip install setuptools==67.8.0 before running CI as opposed to pip install setuptools. This matches the following requirement defined in requirements-dev.txt and prevents similar issues in the future:

setuptools==67.8.0;python_version>="3.12"