Allow building with setuptools-scm 10+

This commit is contained in:
Miro Hrončok 2026-04-01 12:43:11 +02:00
commit 9d97f42ba8

View file

@ -85,6 +85,11 @@ Recommends: python3-urllib3+socks
%autosetup -n urllib3-%{version}
%setup -q -n urllib3-%{version} -T -D -b 1
# Allow setuptools-scm 10+
# Upstream PR pins to <11: https://github.com/urllib3/urllib3/pull/4954
# We don't pin if we don't have to -- the build should fail if it doesn't work with future versions.
sed -i 's/setuptools-scm>=8,<10/setuptools-scm>=8/' pyproject.toml
# Make sure that the RECENT_DATE value doesn't get too far behind what the current date is.
# RECENT_DATE must not be older that 2 years from the build time, or else test_recent_date
# (from test/test_connection.py) would fail. However, it shouldn't be to close to the build time either,