Metadata-Version: 2.1
Name: astropy-changelog
Version: 0.1
Summary: Helpers for parsing astropy changelogs
Home-page: https://github.com/astrofrog/astropy-changelog
Author: Thomas Robitaille
Author-email: thomas.robitaille@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Provides-Extra: test
Requires-Dist: docutils
Provides-Extra: test
Requires-Dist: pytest (>=3.5); extra == 'test'
Requires-Dist: pytest-flake8; extra == 'test'
Requires-Dist: pytest-cov; extra == 'test'
Requires-Dist: codecov; extra == 'test'

About
-----

.. image:: https://travis-ci.org/astropy/astropy-changelog.svg
    :target: https://travis-ci.org/astropy/astropy-changelog

.. image:: https://codecov.io/gh/astropy/astropy-changelog/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/astropy/astropy-changelog

This package contains a parser for the Astropy changelog format. Example usage:

.. code:: python

    In [1]: from astropy_changelog import load

    In [2]: changes = load('CHANGES.rst')

    In [3]: changes.versions
    Out[3]:
    ['0.1',
     '0.2',
     '0.2.1',
     '0.2.2',
     '0.2.3',
     ...]

    In [4]: changes.issues
    Out[4]:
    [256,
     272,
     291,
     293,
     296,
     ...]

    In [5]: changes.versions_for_issue(4242)
    Out[5]: ['1.2']

    In [6]: changes.issues_for_version('2.0.7')
    Out[6]: [7411, 7248, 7402, 7422, 7469, 7486, 7453, 7493, 7510, 7493]

Format specification
--------------------

The current format uses reStructuredText. Changelog entries should be given as
bullet point items inside sections for each version. These sections should have
a title with the following syntax::

    version (release date)

The release date can be ``unreleased`` if the version is not released yet.

The version sections can optionally include sub-sections in which the bullet
items are organized, and the file can also optionally include an overall title.


