---
title: "changelog | pypx"
description: "Provides simple Sphinx markup to render changelog displays."
canonical_url: "https://pypx.app/packages/ChangeLog"
meta:
  "og:description": "Provides simple Sphinx markup to render changelog displays."
  "og:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_changelog%2Cversion_0.6.2%2Csummary_Provides%2Bsimple%2BSphinx%2Bmarkup%2Bto%2Brender%2Bchangelog%2Bdisplays.%2Clicense_MIT%2Cp_Ii9wYWNrYWdlcy9DaGFuZ2VMb2ci%2Cs_oXr2NFXGi97BrDNw.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "changelog 0.6.2"
  "twitter:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_changelog%2Cversion_0.6.2%2Csummary_Provides%2Bsimple%2BSphinx%2Bmarkup%2Bto%2Brender%2Bchangelog%2Bdisplays.%2Clicense_MIT%2Cp_Ii9wYWNrYWdlcy9DaGFuZ2VMb2ci%2Cs_oXr2NFXGi97BrDNw.png"
---

> Index of every page on this site: [llms.txt](https://pypx.app/llms.txt)

# **changelog**

v0.6.2

Provides simple Sphinx markup to render changelog displays.

16 KBpy3-none-anyMIT3 deps

[** Diff **](https://pypx.app/packages/changelog/diff)

`$ uv add changelog`

==========

# Changelog

[![PyPI](https://img.shields.io/pypi/v/changelog)](https://pypi.org/project/changelog) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/changelog)](https://pypi.org/project/changelog) [![PyPI - Downloads](https://img.shields.io/pypi/dm/changelog)](https://pypi.org/project/changelog)

A [Sphinx](https://www.sphinx-doc.org) extension to generate changelog files.

This is an experimental, possibly-not-useful extension that's used by the [SQLAlchemy](http://www.sqlalchemy.org) project and related projects.

# Configuration

A sample configuration in conf.py looks like this:

```
extensions = [
            # changelog extension
            'changelog',

            # your other sphinx extensions
            # ...
        ]


# section names - optional
changelog_sections = ["general", "rendering", "tests"]

# section css classes - optional
changelog_caption_class = "caption"

# tags to sort on inside of sections - also optional
changelog_inner_tag_sort = ["feature", "bug"]

# whether sections should be hidden from tags list
changelog_hide_sections_from_tags = False

# whether tags should be hidden from entries
changelog_hide_tags_in_entry = False

# how to render changelog links - these are plain
# python string templates, ticket/pullreq/changeset number goes
# in "%s"
changelog_render_ticket = "http://bitbucket.org/myusername/myproject/issue/%s"
changelog_render_pullreq = "http://bitbucket.org/myusername/myproject/pullrequest/%s"
changelog_render_changeset = "http://bitbucket.org/myusername/myproject/changeset/%s"
```

# Usage

Changelog introduces the changelog and change directives:

```
====================
Changelog for 1.5.6
====================

.. changelog::
    :version: 1.5.6
    :released: Sun Oct 12 2008

    .. change::
        :tags: general
        :tickets: 27

      Improved the frobnozzle.

    .. change::
        :tags: rendering, tests
        :pullreq: 8
        :changeset: a9d7cc0b56c2

      Rendering tests now correctly render.
```

With the above markup, the changes above will be rendered into document sections per changelog, then each change within organized into paragraphs, including special markup for tags, tickets mentioned, pull requests, changesets. The entries will be grouped and sorted by tag according to the configuration of the changelog\_sections and changelog\_inner\_tag\_sort configurations.

A "compound tag" can also be used, if the configuration has a section like this:

```
changelog_sections = ["orm declarative", "orm"]
```

Then change entries which contain both the orm and declarative tags will be grouped under a section called orm declarative, followed by the orm section where change entries that only have orm will be placed.

# Other Markup

The  directive will make use of the changelog\_render\_ticket markup to render a ticket link::

`456`

# Other things not documented yet

- the  directive, which indicates a changelog entry should be

listed in other versions as well

- the .. changelog\_imports directive - reads other changelog.rst files

looking for  directives which apply to this changelog file, adding those entries to the changelog entries in this file

- the  symbol - imports all the .rst files in a

directory into the current one so that changes can be one-per-file, makes git merges possible

- the changelog release-notes command that at release time gathers up

the above-mentioned change-per-file .rst files and renders them into the main changelog.rst file, running "git rm" on the individual files

- the changelog.rst -> markdown converter, used for web guis that want

changelog sections written in markdown

- the changelog.rst -> stream per changelog markdown API function, which can

for example stream the changelogs per release to the github releases API

## **Details **

<dl>

<dt>Version</dt>
<dd>0.6.2</dd>

<dt>License</dt>
<dd>MIT</dd>

<dt>Maintainer</dt>
<dd>Mike Bayer</dd></dl>

## **Links**

- [Homepage](https://github.com/sqlalchemyorg/changelog)
- [View on PyPI](https://pypi.org/project/changelog/)

## **Release Cadence **

**1**

releases in the past year

avg 229 days between releases

## **Maintainers **

- Mike Bayer · [mike@zzzcomputing.com](mailto:mike@zzzcomputing.com)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://pypx.app/#website","@type":"WebSite","description":"The Python Package Index, reimagined. Fast search, dependency insights, download trends, and changelogs — all in one place.","name":"pypx","url":"https://pypx.app/"},{"@id":"https://pypx.app/packages/changelog#webpage","@type":"WebPage","description":"Provides simple Sphinx markup to render changelog displays.","name":"changelog","url":"https://pypx.app/packages/changelog","isPartOf":{"@id":"https://pypx.app/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://pypx.app/packages/changelog"]}]},{"@id":"https://pypx.app/packages/changelog#/schema/software-application/1","@type":"SoftwareApplication","applicationCategory":"DeveloperApplication","description":"Provides simple Sphinx markup to render changelog displays.","license":"MIT","name":"changelog","softwareVersion":"0.6.2"}]}
```

## Sitemap

See the full [sitemap](https://pypx.app/sitemap.md) for all pages.
