Skip to content

Read version from pyproject.toml - #104

Open
0jc1 wants to merge 8 commits into
sphinx-contrib:mainfrom
0jc1:main
Open

Read version from pyproject.toml#104
0jc1 wants to merge 8 commits into
sphinx-contrib:mainfrom
0jc1:main

Conversation

@0jc1

@0jc1 0jc1 commented Mar 1, 2026

Copy link
Copy Markdown

This addresses #103

The function get_version_from_toml() only works for 3.10+. Prior versions do not have a built-in toml reader.

@stevepiercy stevepiercy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for this PR! Sorry for the long delay to respond.

The concept is nice, and I have a few suggestions. Would you please take care? Thank you!

Comment thread docs/conf.py Outdated
Comment thread docs/conf.py Outdated
Comment thread docs/conf.py Outdated
Comment thread docs/conf.py Outdated
Comment thread docs/conf.py Outdated
Comment thread docs/conf.py Outdated
0jc1 and others added 6 commits August 13, 2026 00:03
Co-authored-by: Steve Piercy <web@stevepiercy.com>
Co-authored-by: Steve Piercy <web@stevepiercy.com>
Co-authored-by: Steve Piercy <web@stevepiercy.com>
Co-authored-by: Steve Piercy <web@stevepiercy.com>
Co-authored-by: Steve Piercy <web@stevepiercy.com>
Co-authored-by: Steve Piercy <web@stevepiercy.com>
@0jc1

0jc1 commented Aug 12, 2026

Copy link
Copy Markdown
Author

Good suggestions, i applied all of them.

it might be necessary to specify tomli as a dependency in pyproject.toml like this:

[project]
dependencies = [
    'tomli ; python_version < "3.11"'
]

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