Skip to content

Source version # for documentation from pyproject.toml#87

Merged
btobers merged 1 commit intomasterfrom
rtd_patch
Mar 18, 2025
Merged

Source version # for documentation from pyproject.toml#87
btobers merged 1 commit intomasterfrom
rtd_patch

Conversation

@btobers
Copy link
Collaborator

@btobers btobers commented Mar 18, 2025

This small update to docs/conf.py sources PyGEM's release versioning from the pyproject.toml so that the latest documentation build lists the appropriate release.

@btobers btobers requested a review from a team March 18, 2025 15:23
@btobers btobers self-assigned this Mar 18, 2025
@btobers btobers marked this pull request as ready for review March 18, 2025 15:48
Copy link
Contributor

@ddundo ddundo left a comment

Choose a reason for hiding this comment

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

Nice! I haven't heard of tomllib before

@btobers btobers merged commit 3590de9 into master Mar 18, 2025
1 check passed
@btobers
Copy link
Collaborator Author

btobers commented Mar 18, 2025

Thanks! I hadn't either, but apparently it's a built-in for Python>=3.11 and this makes it pretty easy to update the version in our docs automatically. I realized that when I pulled v.1.0.2 I hadn't updated the release # in the docs. This should avoid us running into that issue in the future.

@btobers btobers deleted the rtd_patch branch March 18, 2025 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants