mkdocstrings / pytkdocs

Load Python objects documentation.
https://mkdocstrings.github.io/pytkdocs
ISC License
50 stars 32 forks source link

[BUG] Wrong version from python package #122

Closed yajo closed 2 years ago

yajo commented 2 years ago

Describe the bug It seems mkdocs is not rendering the appropriate package version.

To Reproduce Generate docs for Copier at https://github.com/copier-org/copier/commit/3fd822664914914de0ea3b7fd67288d888ea3121.

Expected behavior The displayed version should be 6.0.0a9.post2.dev0+3fd8226 (which is the one you get from copier --version if you install it with pipx from git).

Screenshots See it live in https://copier.readthedocs.io/en/latest/ (today... it changes over time of course):

imagen

System (please complete the following information):

Additional context I use https://github.com/mtkennerly/poetry-dynamic-versioning to autogenerate the version from the commit.

pawamoy commented 2 years ago

Oh, you probably need to open this on the mkdocs-material repository, as I think it's the one retrieving and displaying the tag.

pawamoy commented 2 years ago

Yes in fact I think it's simply querying GitHub to get the latest tag. Your local version won't show up, unless you use a plugin maybe.