The package upload timestamp appears to be missing when searching a private (Azure artifacts) package index.
This prevents the option --exclude-newer from being used correctly.
Running this command
uv run --verbose --no-env-file --default-index https://VssSessionToken@pkgs.dev.azure.com/my-organization/_packaging/my-feedname/pypi/simple/ --keyring-provider subprocess --exclude-newer 2025-01-06 -s minimal_script.py
produces the following output:
←[34mDEBUG←[39m uv 0.5.15 (eb6ad9a4f 2025-01-06)
Reading inline script metadata from `minimal_script.py`
DEBUG Reading Python requests from version file at `C:\Users\myuser\workspace\testfolder\.python-version`
DEBUG Using Python request `3.12` from version file at `.python-version`
DEBUG Using Python request Python 3.12 from version file at `.python-version`
DEBUG Searching for Python 3.12 in virtual environments, managed installations, search path, or registry
DEBUG Found `cpython-3.12.4-windows-x86_64-none` at `C:/Users/myuser/workspace/testfolder/.venv\Scripts\python.exe` (active virtual environment)
DEBUG Caching via base interpreter: `C:\Users\myuser\AppData\Local\Programs\Python\Python312\python.exe`
DEBUG Using request timeout of 30s
DEBUG Solving with installed Python version: 3.12.4
DEBUG Solving with target Python version: >=3.12.4
DEBUG Adding direct dependency: requests*
DEBUG No cache entry for: https://pkgs.dev.azure.com/my-organization/_packaging/my-feedname/pypi/simple/requests/
DEBUG No netrc file found
DEBUG Checking keyring for credentials for VssSessionToken@https://pkgs.dev.azure.com/my-organization/_packaging/my-feedname/pypi/simple/requests/
DEBUG Found credentials in keyring for https://pkgs.dev.azure.com/my-organization/_packaging/my-feedname/pypi/simple/requests/
DEBUG Searching for a compatible version of requests (*)
warning: requests-2.32.3-py3-none-any.whl is missing an upload date, but user provided: 2025-01-06T23:00:00Z
warning: requests-2.31.0-py3-none-any.whl is missing an upload date, but user provided: 2025-01-06T23:00:00Z
warning: requests-2.30.0-py3-none-any.whl is missing an upload date, but user provided: 2025-01-06T23:00:00Z
warning: requests-2.29.0-py3-none-any.whl is missing an upload date, but user provided: 2025-01-06T23:00:00Z
warning: requests-2.28.2-py3-none-any.whl is missing an upload date, but user provided: 2025-01-06T23:00:00Z
warning: requests-2.28.1-py3-none-any.whl is missing an upload date, but user provided: 2025-01-06T23:00:00Z
warning: requests-2.28.0-py3-none-any.whl is missing an upload date, but user provided: 2025-01-06T23:00:00Z
warning: requests-2.27.1-py2.py3-none-any.whl is missing an upload date, but user provided: 2025-01-06T23:00:00Z
warning: requests-2.24.0-py2.py3-none-any.whl is missing an upload date, but user provided: 2025-01-06T23:00:00Z
DEBUG No compatible version found for: requests
× No solution found when resolving script dependencies:
╰─▶ Because there are no versions of requests and you require requests, we can conclude that your requirements are unsatisfiable.
The contents of minimal_script.py are:
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "requests",
# ]
# ///
import requests
print(f"{requests.__version__ = }")
The script runs correctly when the option --exclude-newer 2025-01-06 is removed.
The package upload timestamp appears to be missing when searching a private (Azure artifacts) package index.
This prevents the option
--exclude-newerfrom being used correctly.Running this command
uv run --verbose --no-env-file --default-index https://VssSessionToken@pkgs.dev.azure.com/my-organization/_packaging/my-feedname/pypi/simple/ --keyring-provider subprocess --exclude-newer 2025-01-06 -s minimal_script.pyproduces the following output:
The contents of minimal_script.py are:
The script runs correctly when the option
--exclude-newer 2025-01-06is removed.