Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

SWUbanner sphinxcontrib-towncrier @ PyPI GitHub Actions CI/CD build status — Python package sphinxcontrib-towncrier coverage charts @ Covecov.io Documentation Status @ RTD

sphinxcontrib-towncrier

An RST directive for injecting a Towncrier-generated changelog draft containing fragments for the unreleased (next) project version.

How to use this?

$ pip install sphinxcontrib-towncrier
extensions = ['sphinxcontrib.towncrier.ext']

# Options: draft/sphinx-version/sphinx-release
towncrier_draft_autoversion_mode = 'draft'
towncrier_draft_include_empty = True
towncrier_draft_working_directory = PROJECT_ROOT_DIR
# Not yet supported:
# towncrier_draft_config_path = 'pyproject.toml'  # relative to cwd

Make sure to point to the dir with pyproject.toml and pre-configure towncrier itself in the config.

If everything above is set up correctly, you should be able to add

.. towncrier-draft-entries::

to your documents, like changelog.rst. With no argument, the version title will be generated using the strategy set up in the towncrier_draft_autoversion_mode setting.

If you want to be in control, override it with an argument you like:

.. towncrier-draft-entries:: |release| [UNRELEASED DRAFT]

Native RST substitutions in the argument work, just make sure to declare any non-default ones via rst_epilog or at the end of the document where the towncrier-draft-entries directive is being used.

Does anybody actually use this?

So far we know about two projects using sphinxcontrib-towncrier — ansible/pylibssh and pypa/pip. Also, this Sphinx extension is inspired by and somewhat based on the ideas used in pytest-dev/pytest and tox-dev/tox. We believe that these projects are full of wonderful tricks that you may want to explore regardless of whether you’ll use our project.

Release files for sphinxcontrib-towncrier 0.5.0a0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sphinxcontrib-towncrier 0.5.0a0
File Size Uploaded
sphinxcontrib_towncrier-0.5.0a0.tar.gz 62.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sphinxcontrib-towncrier 0.5.0a0
File Interpreter ABI Platform
sphinxcontrib_towncrier-0.5.0a0-py3-none-any.whl Python 3 none any Details

Total release size: 75.1 kB

Release files / sphinxcontrib_towncrier-0.5.0a0.tar.gz

Download URL sphinxcontrib_towncrier-0.5.0a0.tar.gz
Size 62.5 kB
Tags Source
SHA-256 checksum
How to use checksums
294e69df6e275e7a86df7ea6a927cc7c28c2c370a884cd5c45de6ec989858f27
BLAKE2b-256 checksum
How to use checksums
21fe72ed57093e28af10595c50839b183c5fdf0952482e9ef0ca6eb90eb85c5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 28, 2025.

Transparency log

Release files / sphinxcontrib_towncrier-0.5.0a0-py3-none-any.whl

Download URL sphinxcontrib_towncrier-0.5.0a0-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
11d130c3ad5e4649821d543c4ea7ab64bbe78df4d859ef94f4298e7845dc0f59
BLAKE2b-256 checksum
How to use checksums
ac5cf7e39f243636a5e1894f2f5a72579977bf3968922afdb75175ee45062066
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 28, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.5.0a0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page