changelog-chug-0.0.3


توضیحات

Parser library for project Change Log documents.
ویژگی مقدار
سیستم عامل -
نام فایل changelog-chug-0.0.3
نام changelog-chug
نسخه کتابخانه 0.0.3
نگهدارنده ['Ben Finney <ben+python@benfinney.id>']
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده Ben Finney <ben+python@benfinney.id.au>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/changelog-chug/
مجوز Copying this work ################# changelog-chug is `free software`_; you are free to redistribute it and/or modify it under specific conditions. .. _free software: https://www.gnu.org/philosophy/free-sw.html Software ======== Copyright © 2008–2023 Ben Finney <ben+python@benfinney.id.au> This is free software: you may copy, modify, and/or redistribute this work under the terms of the GNU Affero General Public License as published by the Free Software Foundation; version 3 of that license or any later version. No warranty expressed or implied. See the file `LICENSE.AGPL-3`_ for details, or online at `<https://www.gnu.org/licenses/agpl-3.0.html>`_. .. _LICENSE.AGPL-3: LICENSE.AGPL-3 .. Local variables: coding: utf-8 mode: rst End: vim: fileencoding=utf-8 filetype=rst :
changelog-chug is a parser for project Change Log documents. changelog-chug ############## Example ======= Given a reStructuredText document ChangeLog:: Change Log ########## Version 1.0.1 ============= :Released: 2020-01-10 :Maintainer: Cathy Morris <cathy.morris@example.com> … Version 1.0 =========== :Released: 2020-01-10 :Maintainer: Luis Flores <ayalaian@example.org> … Version 0.2 =========== :Released: 2019-07-04 :Maintainer: Cathy Morris <cathy.morris@example.com> … Version 0.2-alpha1 ================== :Released: 2019-07-04 :Maintainer: Cathy Morris <cathy.morris@example.com> … Version 0.1 =========== :Released: 2019-05-16 :Maintainer: Cathy Morris <cathy.morris@example.com> … Generate Change Log entry data for all versions from the reStructuredText formatted ChangeLog:: >>> import pathlib >>> import pprint >>> import chug.parsers.rest >>> import chug.writers >>> infile_path = pathlib.Path(".", "ChangeLog") >>> document_text = chug.parsers.get_changelog_document_text(infile_path) >>> document = chug.parsers.rest.parse_rest_document_from_text( ... document_text) >>> entries = chug.parsers.rest.make_change_log_entries_from_document( ... document) >>> pprint.pprint([entry.as_version_info_entry() for entry in entries]) [OrderedDict([('release_date', '2020-01-10'), ('version', '1.0.1'), ('maintainer', 'Cathy Morris <cathy.morris@example.com>'), ('body', '…')]), OrderedDict([('release_date', '2020-01-10'), ('version', '1.0'), ('maintainer', 'Luis Flores <ayalaian@example.org>'), ('body', '…')]), OrderedDict([('release_date', '2019-07-04'), ('version', '0.2'), ('maintainer', 'Cathy Morris <cathy.morris@example.com>'), ('body', '…')]), OrderedDict([('release_date', '2019-07-04'), ('version', '0.2-alpha1'), ('maintainer', 'Cathy Morris <cathy.morris@example.com>'), ('body', '…')]), OrderedDict([('release_date', '2019-05-16'), ('version', '0.1'), ('maintainer', 'Cathy Morris <cathy.morris@example.com>'), ('body', '…')])] Generate a JSON document describing the latest version:: >>> import json >>> latest_entry = entries[0] >>> latest_entry_json = json.dumps( ... latest_entry.as_version_info_entry(), indent=4) >>> print(latest_entry_json) { "release_date": "2020-01-10", "version": "1.0.1", "maintainer": "Cathy Morris <cathy.morris@example.com>", "body": "\u2026" } Copying ======= changelog-chug is free software. See the file `COPYING`_ for details. .. _COPYING: COPYING .. This document is written using `reStructuredText`_ markup, and can be rendered with `Docutils`_ to other formats. .. _Docutils: http://docutils.sourceforge.net/ .. _reStructuredText: http://docutils.sourceforge.net/rst.html .. Local variables: coding: utf-8 mode: rst End: vim: fileencoding=utf-8 filetype=rst :


نیازمندی

مقدار نام
- semver>=3.0.0
- docutils>=0.21.0
xtr changelog-chug[devel];
xtr wheel;
xtr build;
xtr changelog-chug[test];
xtr pyupgrade~=3.17;
xtr isort~=5.13;
xtr changelog-chug[build];
xtr twine;
xtr pip-check;
xtr mccabe~=0.7;
xtr pycodestyle~=2.12;
xtr ruff~=0.6;
xtr changelog-chug[static-analysis];
xtr testtools;
xtr testscenarios>=0.4;
xtr coverage;


زبان مورد نیاز

مقدار نام
>=3.7 Python


نحوه نصب


نصب پکیج whl changelog-chug-0.0.3:

    pip install changelog-chug-0.0.3.whl


نصب پکیج tar.gz changelog-chug-0.0.3:

    pip install changelog-chug-0.0.3.tar.gz