A Sphinx extension that provides an RST directive to inject a Towncrier-generated changelog draft for the unreleased (next) version. Current version 0.5.0a0, requires Python >=3.9. Development is active but the package is still in alpha.
pip install sphinxcontrib-towncrierNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Add the extension and configure in conf.py. The directive ``.. towncrier-draft`` will then render unreleased changelog entries.
Use the standard Sphinx builders or patch the custom writer to call the directive's run method.
Remove 'towncrier_draft' from conf.py and use '.. towncrier-draft:: :draft:' in your RST file.
Ensure towncrier is installed and has a valid pyproject.toml / towncrier.toml configuration.
Upgrade Python to 3.9+ or pin version: pip install 'sphinxcontrib-towncrier<0.5.0a0'
Add 'sphinxcontrib.towncrier' to the 'extensions' list in conf.py.
pip install towncrier
Create a towncrier configuration file (e.g., towncrier.toml) with a [tool.towncrier] section.