Using `uv` to exclude dependencies newer than a specified date
This can be done either:
in the pyproject.toml
[tool.uv]
exclude-newer = "2006-12-02"
or in inline metadata for a script.
https://docs.astral.sh/uv/guides/scripts/#improving-reproducibility
# /// script
# dependencies = [
# "requests",
# ]
# [tool.uv]
# exclude-newer = "2023-10-16T00:00:00Z"
# ///
import requests
print(requests.__version__)