|
| 1 | +Filing Change Log Entries |
| 2 | +========================= |
| 3 | + |
| 4 | +anyplotlib uses `towncrier <https://towncrier.readthedocs.io/>`_ to manage its |
| 5 | +changelog. When you open a pull request that should appear in the next release |
| 6 | +notes, add a short news **fragment file** to this directory as part of that PR. |
| 7 | + |
| 8 | +Naming convention |
| 9 | +----------------- |
| 10 | + |
| 11 | +Each fragment is a plain ``.rst`` file named:: |
| 12 | + |
| 13 | + {PR_number}.{type}.rst |
| 14 | + |
| 15 | +where ``{PR_number}`` is the GitHub pull-request number and ``{type}`` is one |
| 16 | +of: |
| 17 | + |
| 18 | +================= ============================================================== |
| 19 | +Type Use when … |
| 20 | +================= ============================================================== |
| 21 | +``new_feature`` A user-visible capability has been added. |
| 22 | +``bugfix`` A bug has been fixed. |
| 23 | +``deprecation`` Something is deprecated and will be removed in a future release. |
| 24 | +``removal`` A previously deprecated API has been removed. |
| 25 | +``doc`` Documentation improved without any code change. |
| 26 | +``maintenance`` Internal / infrastructure change invisible to end users. |
| 27 | +================= ============================================================== |
| 28 | + |
| 29 | +Content guidelines |
| 30 | +------------------ |
| 31 | + |
| 32 | +* **One sentence per file**, written in the **past tense**, from a user's |
| 33 | + perspective. |
| 34 | +* Cross-reference the relevant class or function with a Sphinx role where |
| 35 | + it adds value. |
| 36 | +* Do **not** include the PR number in the sentence body — towncrier appends |
| 37 | + the link automatically. |
| 38 | + |
| 39 | +Examples |
| 40 | +-------- |
| 41 | + |
| 42 | +``123.new_feature.rst``:: |
| 43 | + |
| 44 | + Added :meth:`~anyplotlib.Axes.scatter` for rendering collections of circles |
| 45 | + with per-point radii and colours. |
| 46 | + |
| 47 | +``124.bugfix.rst``:: |
| 48 | + |
| 49 | + Fixed :meth:`~anyplotlib.Figure.savefig` raising ``ValueError`` when the |
| 50 | + ``dpi`` keyword was not supplied explicitly. |
| 51 | + |
| 52 | +``125.deprecation.rst``:: |
| 53 | + |
| 54 | + Deprecated the ``color`` keyword on :class:`~anyplotlib.Plot2D`; use |
| 55 | + ``facecolor`` instead. ``color`` will be removed in a future release. |
| 56 | + |
| 57 | +``126.removal.rst``:: |
| 58 | + |
| 59 | + Removed ``Figure.tight_layout()``, which was deprecated since v0.1.0. |
| 60 | + |
| 61 | +``127.doc.rst``:: |
| 62 | + |
| 63 | + Expanded the getting-started guide with a pcolormesh walkthrough and |
| 64 | + performance tips. |
| 65 | + |
| 66 | +``128.maintenance.rst``:: |
| 67 | + |
| 68 | + Migrated the CI pipeline to ``uv`` for faster, reproducible dependency |
| 69 | + installation. |
| 70 | + |
| 71 | +Previewing the changelog locally |
| 72 | +--------------------------------- |
| 73 | + |
| 74 | +See what the next release notes would look like **without** modifying any |
| 75 | +files or consuming any fragments:: |
| 76 | + |
| 77 | + uvx towncrier build --draft --version 0.x.0 |
| 78 | + |
| 79 | +To actually build the changelog (done automatically by the |
| 80 | +**Prepare Release** workflow — do not run this by hand unless you know what |
| 81 | +you are doing):: |
| 82 | + |
| 83 | + uvx towncrier build --yes --version 0.x.0 |
| 84 | + |
0 commit comments