Skip to content

Conversation

@bsoyka
Copy link
Owner

@bsoyka bsoyka commented Jul 26, 2025

This makes pyproject.toml the single source of truth for the current version number. The module uses the standard importlib to pull the version number, and Sphinx now pulls from that variable when building docs.

bsoyka added 2 commits July 26, 2025 12:45
This makes `pyproject.toml` the single source of truth for the current version number. The module uses the standard `importlib` to pull the version number, and Sphinx now pulls from that variable when building docs.
Copilot AI review requested due to automatic review settings July 26, 2025 18:51
@bsoyka bsoyka added area:documentation Related to documentation, guides, or manuals type:feature A new feature or enhancement a: API area:CI/CD Related to Continuous Integration or Continuous Deployment labels Jul 26, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the version management system to use pyproject.toml as the single source of truth for version numbers. The changes eliminate hardcoded version strings and use Python's standard importlib.metadata to dynamically retrieve the version.

  • Replaces hardcoded version string with dynamic version retrieval using importlib.metadata
  • Updates Sphinx documentation configuration to use the dynamically retrieved version
  • Removes version duplication across the codebase

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
advent_of_code_ocr/init.py Implements dynamic version retrieval using importlib.metadata instead of hardcoded version string
docs/conf.py Updates Sphinx configuration to import and use the dynamic version from the package

bsoyka and others added 2 commits July 26, 2025 13:52
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This also includes adding the `toml` lib as a dev dependency (in uv, Tox, and Mypy configs).
@bsoyka bsoyka merged commit a8489b8 into main Jul 26, 2025
28 checks passed
@bsoyka bsoyka deleted the dynamic-version branch July 26, 2025 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:CI/CD Related to Continuous Integration or Continuous Deployment area:documentation Related to documentation, guides, or manuals type:feature A new feature or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants