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
11.94k stars 2.66k forks source link

[PR #12493/20dd1d67 backport][8.2.x] 📝💅 Always render changelog draft @ Sphinx docs #12495

Closed patchback[bot] closed 3 months ago

patchback[bot] commented 3 months ago

This is a backport of PR #12493 as merged into main (20dd1d6738d0623fe3176e796805bbd6e36cf831).

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 the sphinxcontrib-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