Skip to content

Commit 5b7ee67

Browse files
committed
📝 Extend changelog section
1 parent 31d9f5f commit 5b7ee67

File tree

2 files changed

+184
-17
lines changed

2 files changed

+184
-17
lines changed

docs/packs/dataprep/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ authors = [
1212
]
1313
requires-python = ">=3.9"
1414
classifiers = [
15-
"License :: OSI Approved :: BSD License",
1615
"Operating System :: OS Independent",
1716
"Programming Language :: Python :: 3 :: Only",
1817
"Programming Language :: Python :: 3.9",

docs/packs/distribution.rst

Lines changed: 184 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -309,17 +309,17 @@ Dependency groups
309309

310310
.. literalinclude:: dataprep/pyproject.toml
311311
:language: toml
312-
:lines: 26-36
313-
:lineno-start: 26
312+
:lines: 34, 40-45
313+
:lineno-start: 34
314314

315315
Recursive dependency groups are also possible. For example, for ``dev`` you can
316316
take over all dependencies from ``docs`` and ``test`` in addition to
317317
``pre-commit``:
318318

319319
.. literalinclude:: dataprep/pyproject.toml
320320
:language: toml
321-
:lines: 37-41
322-
:lineno-start: 37
321+
:lines: 35-39
322+
:lineno-start: 35
323323

324324
You can install these dependency groups, for example with:
325325

@@ -423,25 +423,193 @@ the contents as a detailed description in your package:
423423

424424
.. literalinclude:: dataprep/pyproject.toml
425425
:language: toml
426+
:emphasize-lines: 5
426427
:lineno-start: 5
427-
:lines: 5, 12
428+
:lines: 5-12
428429

429430
You can also include them in your :doc:`Sphinx documentation
430431
</document/sphinx/start>` with ``.. include:: ../../README.rst``.
431432

432433
:file:`CHANGELOG.rst`
433434
~~~~~~~~~~~~~~~~~~~~~
434435

436+
All significant changes to a project should be documented in the
437+
:file:`CHANGELOG.rst`. `Keep a Changelog
438+
<https://keepachangelog.com/en/1.1.0/>`_ recommends the following format for
439+
this:
440+
441+
.. code-block:: rest
442+
443+
[Unreleased]
444+
============
445+
446+
Added
447+
-----
448+
449+
450+
451+
Changed
452+
-------
453+
454+
455+
456+
Removed
457+
-------
458+
459+
460+
461+
[x.y.z] - YYYY-MM-DD
462+
====================
463+
464+
Added
465+
-----
466+
467+
468+
435469
.. seealso::
436-
* `Keep a Changelog <https://keepachangelog.com/>`_
437-
* `Scriv <https://github.com/nedbat/scriv>`_
438-
* `changelog_manager <https://github.com/masukomi/changelog_manager>`_
439-
* `github-activity <https://github.com/executablebooks/github-activity>`_
440-
* `Dinghy <https://github.com/nedbat/dinghy>`_
441-
* `Python core-workflow blurb
442-
<https://github.com/python/core-workflow/tree/main/blurb>`_
443-
* `Release Drafter <https://github.com/release-drafter/release-drafter>`_
444-
* `towncrier <https://github.com/twisted/towncrier>`_
470+
* `Keep a Changelog <https://keepachangelog.com/>`__
471+
472+
There are also several Python libraries that can help you create the
473+
:file:`CHANGELOG` file:
474+
475+
`Release Drafter <https://github.com/release-drafter/release-drafter>`_
476+
creates drafts for your next release notes as soon as pull requests are
477+
merged into the main branch. Release Drafter was developed with `Probot
478+
<https://github.com/probot/probot>`_, a framework for creating GitHub apps
479+
to automate and improve your workflows.
480+
481+
.. image:: https://raster.shields.io/github/stars/release-drafter/release-drafter
482+
:alt: Stars
483+
:target: https://github.com/release-drafter/release-drafter
484+
485+
.. image:: https://raster.shields.io/github/contributors/release-drafter/release-drafter
486+
:alt: Contributors
487+
:target: https://github.com/release-drafter/release-drafter/graphs/contributors
488+
489+
.. image:: https://raster.shields.io/github/commit-activity/y/release-drafter/release-drafter
490+
:alt: Commit activity
491+
:target: https://github.com/release-drafter/release-drafter/graphs/commit-activity
492+
493+
.. image:: https://raster.shields.io/github/license/release-drafter/release-drafter
494+
:alt: Licence
495+
496+
`towncrier <https://github.com/twisted/towncrier>`_
497+
is a utility for creating useful, summarised news files for your project.
498+
499+
.. image:: https://raster.shields.io/github/stars/twisted/towncrier
500+
:alt: Stars
501+
:target: https://github.com/twisted/towncrier
502+
503+
.. image:: https://raster.shields.io/github/contributors/twisted/towncrier
504+
:alt: Contributors
505+
:target: https://github.com/twisted/towncrier/graphs/contributors
506+
507+
.. image:: https://raster.shields.io/github/commit-activity/y/twisted/towncrier
508+
:alt: Commit activity
509+
:target: https://github.com/twisted/towncrier/graphs/commit-activity
510+
511+
.. image:: https://raster.shields.io/github/license/twisted/towncrier
512+
:alt: Licence
513+
514+
`Scriv <https://github.com/nedbat/scriv>`_
515+
is a command-line tool that helps developers keep useful change logs. It
516+
manages a directory of change log fragments, which are summarised into
517+
entries in a :file:`CHANGELOG.rst` file.
518+
519+
.. image:: https://raster.shields.io/github/stars/nedbat/scriv
520+
:alt: Stars
521+
:target: https://github.com/nedbat/scriv
522+
523+
.. image:: https://raster.shields.io/github/contributors/nedbat/scriv
524+
:alt: Contributors
525+
:target: https://github.com/nedbat/scriv/graphs/contributors
526+
527+
.. image:: https://raster.shields.io/github/commit-activity/y/nedbat/scriv
528+
:alt: Commit activity
529+
:target: https://github.com/nedbat/scriv/graphs/commit-activity
530+
531+
.. image:: https://raster.shields.io/github/license/nedbat/scriv
532+
:alt: Licence
533+
534+
`Dinghy <https://github.com/nedbat/dinghy>`_
535+
uses the GitHub GraphQL API to find current activity on releases, issues,
536+
and pull requests, and creates a compact HTML overview from this
537+
information.
538+
539+
.. image:: https://raster.shields.io/github/stars/nedbat/dinghy
540+
:alt: Stars
541+
:target: https://github.com/nedbat/dinghy
542+
543+
.. image:: https://raster.shields.io/github/contributors/nedbat/dinghy
544+
:alt: Contributors
545+
:target: https://github.com/nedbat/dinghy/graphs/contributors
546+
547+
.. image:: https://raster.shields.io/github/commit-activity/y/nedbat/dinghy
548+
:alt: Commit activity
549+
:target: https://github.com/nedbat/dinghy/graphs/commit-activity
550+
551+
.. image:: https://raster.shields.io/github/license/nedbat/dinghy
552+
:alt: Licence
553+
554+
`github-activity <https://github.com/executablebooks/github-activity>`_
555+
generates Markdown change logs for GitHub repositories, offering more
556+
control over the types of contributions and metadata used to create the
557+
change logs.
558+
559+
.. image:: https://raster.shields.io/github/stars/executablebooks/github-activity
560+
:alt: Stars
561+
:target: https://github.com/executablebooks/github-activity
562+
563+
.. image:: https://raster.shields.io/github/contributors/executablebooks/github-activity
564+
:alt: Contributors
565+
:target: https://github.com/executablebooks/github-activity/graphs/contributors
566+
567+
.. image:: https://raster.shields.io/github/commit-activity/y/executablebooks/github-activity
568+
:alt: Commit activity
569+
:target: https://github.com/executablebooks/github-activity/graphs/commit-activity
570+
571+
.. image:: https://raster.shields.io/github/license/executablebooks/github-activity
572+
:alt: Licence
573+
574+
`changelog_manager <https://github.com/masukomi/changelog_manager>`_
575+
helps you create a :file:`CHANGELOG.md` file for your Git repo that complies
576+
with the `Keep A Changelog <https://keepachangelog.com/en/1.1.0/>`_
577+
standard.
578+
579+
.. image:: https://raster.shields.io/github/stars/masukomi/changelog_manager
580+
:alt: Stars
581+
:target: https://github.com/masukomi/changelog_manager
582+
583+
.. image:: https://raster.shields.io/github/contributors/masukomi/changelog_manager
584+
:alt: Contributors
585+
:target: https://github.com/masukomi/changelog_manager/graphs/contributors
586+
587+
.. image:: https://raster.shields.io/github/commit-activity/y/masukomi/changelog_manager
588+
:alt: Commit activity
589+
:target: https://github.com/masukomi/changelog_manager/graphs/commit-activity
590+
591+
.. image:: https://raster.shields.io/github/license/masukomi/changelog_manager
592+
:alt: Licence
593+
594+
`blurb <https://github.com/python/blurb>`_
595+
is a tool for freeing CPython development from the tedious conflicts in
596+
`cpython/Misc/NEWS.d/
597+
<https://github.com/python/cpython/tree/main/Misc/NEWS.d>`_.
598+
599+
.. image:: https://raster.shields.io/github/stars/python/blurb
600+
:alt: Stars
601+
:target: https://github.com/python/blurb
602+
603+
.. image:: https://raster.shields.io/github/contributors/python/blurb
604+
:alt: Contributors
605+
:target: https://github.com/python/blurb/graphs/contributors
606+
607+
.. image:: https://raster.shields.io/github/commit-activity/y/python/blurb
608+
:alt: Commit activity
609+
:target: https://github.com/python/blurb/graphs/commit-activity
610+
611+
.. image:: https://raster.shields.io/github/license/python/blurb
612+
:alt: Licence
445613

446614
Historical files or files needed for binary extensions
447615
------------------------------------------------------
@@ -556,7 +724,7 @@ structure for packages.
556724

557725
.. literalinclude:: mypack/pyproject.toml
558726
:caption: mypack/pyproject.toml
559-
:emphasize-lines: 12-13
727+
:emphasize-lines: 21
560728

561729
:file:`mypack/src/mypack/__init__.py`
562730
The module defines a CLI function :func:`main`:
@@ -685,7 +853,7 @@ You can then call ``mypack`` with ``uv run``:
685853
686854
.. seealso::
687855
* `Troubleshooting build failures
688-
<https://docs.astral.sh/uv/reference/troubleshooting/build-failures/>`_
856+
<https://docs.astral.sh/uv/reference/troubleshooting/build-failures/>`_
689857

690858
.. note::
691859
There are still many instructions that include a step to call

0 commit comments

Comments
 (0)