Skip to content

Commit

Permalink
Merge pull request #168 from fschulze/changelog
Browse files Browse the repository at this point in the history
Add changelog in long package description and documentation. Fixes #165.
  • Loading branch information
nicoddemus authored Jul 30, 2018
2 parents e601df4 + 669315c commit bccc385
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
=========
Changelog
=========

.. towncrier release notes start
pluggy 0.7.1 (2018-07-28)
=========================

Expand Down
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
====================================================
pluggy - A minimalist production ready plugin system
====================================================

Expand All @@ -8,7 +9,7 @@ This is the core framework used by the `pytest`_, `tox`_, and `devpi`_ projects.
Please `read the docs`_ to learn more!

A definitive example
********************
====================
.. code-block:: python
import pluggy
Expand Down
1 change: 1 addition & 0 deletions changelog/165.trivial.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add changelog in long package description and documentation.
1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.. include:: ../CHANGELOG.rst
11 changes: 11 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,17 @@ in your project you should thus use a dependency restriction like
``"pluggy>=0.1.0,<1.0"`` to avoid surprises.


Table of contents
*****************

.. toctree::
:maxdepth: 2

api_reference
changelog



.. hyperlinks
.. _@contextlib.contextmanager:
https://docs.python.org/3.6/library/contextlib.html#contextlib.contextmanager
Expand Down
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@
('Programming Language :: Python :: %s' % x) for x in
'2 2.7 3 3.4 3.5 3.6'.split()]

with open('README.rst') as fd:
long_description = fd.read()
with open('README.rst', 'rb') as fd:
long_description = fd.read().decode('utf-8')

with open('CHANGELOG.rst', 'rb') as fd:
long_description += "\n\n" + fd.read().decode('utf-8')


def main():
Expand Down

0 comments on commit bccc385

Please sign in to comment.