Skip to content

Conversation

@JaLuka98
Copy link
Owner

This pull request updates the version retrieval method in the Sphinx configuration file. Instead of taking the version from the installed package (which was not installed by mistake before), it is imported.

Key change:

  • docs/source/conf.py: Replaced the use of importlib.metadata.version with direct import of the __version__ attribute from the cpax package to determine the project version. This ensures consistency and simplifies version management.

@JaLuka98 JaLuka98 self-assigned this May 22, 2025
@JaLuka98 JaLuka98 added the documentation Improvements or additions to documentation label May 22, 2025
@JaLuka98 JaLuka98 requested a review from Copilot May 22, 2025 17:09
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 updates the Sphinx configuration to import the package version directly from the cpax module rather than querying the installed distribution via importlib.metadata.

  • Replace importlib.metadata.version("cpax") with a direct import of __version__ from the cpax package.
  • Simplify release assignment by using the imported __version__.
  • Remove unused importlib.metadata import.

@JaLuka98 JaLuka98 marked this pull request as ready for review June 8, 2025 11:55
@JaLuka98 JaLuka98 merged commit a616ea7 into main Jun 8, 2025
5 checks passed
@JaLuka98 JaLuka98 deleted the 25_05_22_hotfix_doc_versioning branch June 8, 2025 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants