pytest-dev / pytest

The pytest framework makes it easy to write small tests, yet scales to support complex functional testing
https://pytest.org
MIT License
12.11k stars 2.68k forks source link

Fix `|release|` RST substitution in docs having incomplete values for development versions #12538

Open RonnyPfannschmidt opened 4 months ago

RonnyPfannschmidt commented 4 months ago

@RonnyPfannschmidt this results in the |release| RST substitution having the value of 8.2 which might have a weird perception in changelog draft titles: https://docs.pytest.org/en/8.2.x/changelog.html#to-be-included-in-vrelease-if-present / https://docs.pytest.org/en/latest/changelog.html#to-be-included-in-vrelease-if-present.

Should this be something like +dev in the end but without a variable component, something static? Though, perhaps in RTD it'd be okay to use the long original version.

_Ursprünglich gepostet von @webknjaz in https://github.com/pytest-dev/pytest/pull/12467#discussion_r1654683921_

webknjaz commented 4 months ago

I filed an upstream issue on letting these not influence the caching mechanism: https://github.com/sphinx-doc/sphinx/issues/12480.