Closed webknjaz closed 3 months ago
@RonnyPfannschmidt let's label this as a backport and skip news?
~NOTE: it currently gets confused with guessing the next version. @RonnyPfannschmidt perhaps we need to reconsider running custom commands in RTD..~
Alright, the workaround is https://docs.readthedocs.io/en/stable/build-customization.html#unshallow-git-clone.
✅ Backport PR branch: patchback/backports/8.2.x/20dd1d6738d0623fe3176e796805bbd6e36cf831/pr-12493
Backported as https://github.com/pytest-dev/pytest/pull/12495
🤖 @patchback I'm built with octomachinery and my source is open — https://github.com/sanitizers/patchback-github-app.
The earlier implementation was generating a temporary file, when the docs site was being built with
tox
. However, this was not enabled in RTD and is hackish. This patch integrates thesphinxcontrib-towncrier
extension to make it work in any environment where Sphinx docs are being built.📝 Preview/demo: https://pytest--12493.org.readthedocs.build/en/12493/changelog.html#to-be-included-in-vrelease-if-present