Skip to content

Commit

Permalink
Merge pull request #2677 from pypa/docs/towncrier-draft
Browse files Browse the repository at this point in the history
Publish draft change notes
  • Loading branch information
jaraco committed May 19, 2021
2 parents 317ad2c + d3cc031 commit f08262e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog.d/2650.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Updated the docs build tooling to support the latest version of
Towncrier and show the previews of not-yet-released setuptools versions
in the changelog -- :user:`webknjaz`
7 changes: 7 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,10 @@
python=('https://docs.python.org/3', None),
python2=('https://docs.python.org/2', None),
)

# Add support for the unreleased "next-version" change notes
extensions += ['sphinxcontrib.towncrier']
# Extension needs a path from here to the towncrier config.
towncrier_draft_working_directory = '..'
# Avoid an empty section for unpublished changes.
towncrier_draft_include_empty = False
2 changes: 2 additions & 0 deletions docs/history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
History
*******

.. towncrier-draft-entries:: DRAFT, unreleased as on |today|

.. include:: ../CHANGES (links).rst

Credits
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ docs =
# local
pygments-github-lexers==0.0.5
sphinx-inline-tabs
sphinxcontrib-towncrier

ssl =
wincertstore==0.2; sys_platform=='win32'
Expand Down

0 comments on commit f08262e

Please sign in to comment.