Skip to content

Conversation

@achimnol
Copy link
Member

@achimnol achimnol commented Jan 5, 2026

Summary

  • Fix regex pattern in docs/conf.py to handle development version strings like 0.1.dev1+g83a54e6c9 produced by hatch-vcs on ReadTheDocs
  • The pattern now correctly handles both release versions (0.25.0) and dev versions with optional patch numbers
  • Add better error messages for debugging version parsing failures

This is a follow-up to #995. The ReadTheDocs build was still failing because the version parsing regex didn't handle the dev version format that hatch-vcs produces when installing from source.

Test plan

  • Verified regex matches various version formats: 0.25.0, 0.25.1.dev2+g83a54e6c, 0.1.dev1+g83a54e6c9
  • Verified uv run sphinx-build -W -E docs docs/_build/html builds successfully

achimnol and others added 2 commits January 5, 2026 21:16
The regex pattern in docs/conf.py failed to parse development version strings
like 0.1.dev1+g83a54e6c9 produced by hatch-vcs on ReadTheDocs. The pattern
now handles both release versions (0.25.0) and dev versions with optional
patch numbers.
@codecov
Copy link

codecov bot commented Jan 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.03%. Comparing base (83a54e6) to head (718f663).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #996   +/-   ##
=======================================
  Coverage   73.03%   73.03%           
=======================================
  Files          25       25           
  Lines        1836     1836           
  Branches      250      250           
=======================================
  Hits         1341     1341           
  Misses        410      410           
  Partials       85       85           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@achimnol achimnol merged commit f32861d into main Jan 6, 2026
18 checks passed
@achimnol achimnol deleted the docs/fix-version-parsing branch January 6, 2026 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants