hermes - 💡(How to fix) Fix pyproject.toml exclude-newer breaks pip install with PyPI mirrors that lack upload dates [3 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
NousResearch/hermes-agent#17795Fetched 2026-05-01 05:55:44
View on GitHub
Comments
3
Participants
2
Timeline
8
Reactions
1
Timeline (top)
commented ×3labeled ×3cross-referenced ×1marked_as_duplicate ×1

Root Cause

pyproject.toml (around line 176): exclude-newer = "7 days"

When the mirror simple index has no upload dates, uv assigns a cutoff date to ALL packages, so every version appears "too new" → zero candidates. The packages DO exist on the mirror (verifiable via pip index versions).

Fix Action

Fix

Change pyproject.toml:

[tool.uv]
exclude-newer = "off"

This setting is meaningful on the official PyPI (where upload dates exist), but on mirrors without date metadata it blocks all installs. Setting it to "off" restores compatibility.

Workaround

Users can remove exclude-newer from pyproject.toml manually, or use:

uv pip install -e '.[all]' --exclude-newer never

Code Example

# ~/.config/uv/uv.toml
   [pip]
   index-url = "https://mirrors.aliyun.com/pypi/simple"

---

[tool.uv]
exclude-newer = "off"

---

uv pip install -e '.[all]' --exclude-newer never
RAW_BUFFERClick to expand / collapse

Bug Description

When using a PyPI mirror (e.g., Aliyun mirrors.aliyun.com/pypi/simple) that does not serve upload dates in its simple index, uv pip install with exclude-newer = "7 days" in pyproject.toml filters out ALL packages — making installation impossible.

Steps to Reproduce

  1. Configure uv to use a mirror without upload dates:
    # ~/.config/uv/uv.toml
    [pip]
    index-url = "https://mirrors.aliyun.com/pypi/simple"
  2. Run cd ~/.hermes/hermes-agent && uv pip install -e '.[all]'
  3. Observe resolver errors for packages like pydantic and pydantic-core — all versions are rejected as "too new"

Root Cause

pyproject.toml (around line 176): exclude-newer = "7 days"

When the mirror simple index has no upload dates, uv assigns a cutoff date to ALL packages, so every version appears "too new" → zero candidates. The packages DO exist on the mirror (verifiable via pip index versions).

Fix

Change pyproject.toml:

[tool.uv]
exclude-newer = "off"

This setting is meaningful on the official PyPI (where upload dates exist), but on mirrors without date metadata it blocks all installs. Setting it to "off" restores compatibility.

Workaround

Users can remove exclude-newer from pyproject.toml manually, or use:

uv pip install -e '.[all]' --exclude-newer never

Environment

  • Hermes Agent git-installed
  • uv with Aliyun PyPI mirror
  • Any mirror that strips upload-time from its simple index

extent analysis

TL;DR

To resolve the issue, set exclude-newer to "off" in pyproject.toml or use the --exclude-newer never flag with uv pip install.

Guidance

  • Identify if your PyPI mirror serves upload dates in its simple index; if not, the exclude-newer feature may filter out all packages.
  • Verify that packages exist on the mirror using pip index versions to rule out other issues.
  • Consider setting exclude-newer to "off" in pyproject.toml for compatibility with mirrors lacking upload date metadata.
  • As a temporary workaround, use uv pip install -e '.[all]' --exclude-newer never to bypass the exclude-newer check.

Example

[tool.uv]
exclude-newer = "off"

This setting in pyproject.toml disables the exclude-newer feature, allowing installations from mirrors without upload dates.

Notes

This solution applies to any PyPI mirror that does not serve upload dates, not just the Aliyun mirror mentioned.

Recommendation

Apply workaround by setting exclude-newer to "off" in pyproject.toml, as this directly addresses the compatibility issue with mirrors lacking upload date metadata.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING