Skip to content

Commit 4ec2a29

Browse files
authored
Release 24.7.0 (#628)
2 parents 67c9fd2 + fbb4cea commit 4ec2a29

36 files changed

+93
-51
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
# Description
2+
3+
Fixes #<!-- add the associated GitHub Issue ID>
4+
25
<!-- add a short summary if necessary; mention issue numbers -->
36

7+
48
# Checklist
59
<!-- add a "X" inside the brackets to confirm -->
610
* [ ] Make sure changes are covered by existing or new tests.
7-
* [ ] For at least one Python version, make sure local test run is green.
8-
* [ ] Create a file in `src/towncrier/newsfragments/`. Describe your
9-
change and include important information. Your change will be included in the public release notes.
11+
* [ ] For at least one Python version, make sure test pass on your local environment.
12+
* [ ] Create a file in `src/towncrier/newsfragments/`. Briefly describe your
13+
changes, with information useful to end users. Your change will be included in the public release notes.
1014
* [ ] Make sure all GitHub Actions checks are green (they are automatically checking all of the above).
1115
* [ ] Ensure `docs/tutorial.rst` is still up-to-date.
1216
* [ ] If you add new **CLI arguments** (or change the meaning of existing ones), make sure `docs/cli.rst` reflects those changes.

.github/workflows/ci.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ jobs:
159159
python:
160160
# Use a recent version to avoid having common disconnects between
161161
# local development setups and CI.
162-
- name: CPython 3.11
163-
python-version: '3.11'
162+
- name: CPython 3.12
163+
python-version: '3.12'
164164
task:
165165
- name: Check Newsfragment
166166
run: |
@@ -264,7 +264,8 @@ jobs:
264264
python -I admin/check_tag_version_match.py "${{ github.ref }}"
265265
266266
- name: Publish to PyPI - on tag
267-
uses: pypa/gh-action-pypi-publish@a56da0b891b3dc519c7ee3284aff1fad93cc8598
267+
# This was tag 1.9.0 on 2024-07-30
268+
uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0
268269

269270

270271
coverage:
@@ -277,7 +278,7 @@ jobs:
277278
- uses: actions/setup-python@v4
278279
with:
279280
# Use latest Python, so it understands all syntax.
280-
python-version: 3.11
281+
python-version: 3.12
281282

282283
- run: python -Im pip install --upgrade coverage[toml]
283284

NEWS.rst

+58
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,64 @@ Release notes
55

66
.. towncrier release notes start
77
8+
Towncrier 24.7.0 (2024-07-31)
9+
=============================
10+
11+
No changes since the previous release candidate.
12+
13+
14+
Features
15+
--------
16+
17+
- ``towncrier build`` now handles removing news fragments which are not part of the git repository. For example, uncommitted or unstaged files. (`#357 <https://github.com/twisted/towncrier/issues/357>`_)
18+
- Inferring the version of a Python package now tries to use the metadata of the installed package before importing the package explicitly (which only looks for ``[package].__version__``). (`#432 <https://github.com/twisted/towncrier/issues/432>`_)
19+
- If no filename is given when doing ``towncrier`` create, interactively ask for the issue number and fragment type (and then launch an interactive editor for the fragment content).
20+
21+
Now by default, when creating a fragment it will be appended with the ``filename`` option's extension (unless an extension is explicitly provided). For example, ``towncrier create 123.feature`` will create ``news/123.feature.rst``. This can be changed in configuration file by setting `add_extension = false`.
22+
23+
A new line is now added by default to the end of the fragment contents. This can be reverted in the configuration file by setting `add_newline = false`. (`#482 <https://github.com/twisted/towncrier/issues/482>`_)
24+
- The temporary file ``towncrier create`` creates now uses the correct ``.rst`` or ``.md`` extension, which may help your editor with with syntax highlighting. (`#594 <https://github.com/twisted/towncrier/issues/594>`_)
25+
- Running ``towncrier`` will now traverse back up directories looking for the configuration file. (`#601 <https://github.com/twisted/towncrier/issues/601>`_)
26+
- The ``towncrier create`` action now uses sections defined in your config (either interactively, or via the new ``--section`` option). (`#603 <https://github.com/twisted/towncrier/issues/603>`_)
27+
- News fragments are now sorted by issue number even if they have non-digit characters.
28+
29+
For example::
30+
31+
- some issue (gh-3, gh-10)
32+
- another issue (gh-4)
33+
- yet another issue (gh-11)
34+
35+
The sorting algorithm groups the issues first by non-text characters and then by number. (`#608 <https://github.com/twisted/towncrier/issues/608>`_)
36+
- The ``title_format`` configuration option now uses a markdown format for markdown templates. (`#610 <https://github.com/twisted/towncrier/issues/610>`_)
37+
- newsfragment categories can now be marked with ``check = false``, causing them to be ignored in ``towncrier check`` (`#617 <https://github.com/twisted/towncrier/issues/617>`_)
38+
- ``towncrier check`` will now fail if any news fragments have invalid filenames.
39+
40+
Added a new configuration option called ``ignore`` that allows you to specify a list of filenames that should be ignored. If this is set, ``towncrier build`` will also fail if any filenames are invalid, except for those in the list. (`#622 <https://github.com/twisted/towncrier/issues/622>`_)
41+
42+
43+
Bugfixes
44+
--------
45+
46+
- Add explicit encoding to read_text. (`#561 <https://github.com/twisted/towncrier/issues/561>`_)
47+
- The default Markdown template now renders a title containing the release version and date, even when the `name` configuration is left empty. (`#587 <https://github.com/twisted/towncrier/issues/587>`_)
48+
- Orphan news fragments, fragments not associated with an issue, consisting of only digits (e.g. '+12345678.feature') now retain their leading marker character. (`#588 <https://github.com/twisted/towncrier/issues/588>`_)
49+
- Orphan news fragments, fragments not associated with an issue, will now still show in categories that are marked to not show content, since they do not have an issue number to show. (`#612 <https://github.com/twisted/towncrier/issues/612>`_)
50+
51+
52+
Improved Documentation
53+
----------------------
54+
55+
- Clarify version discovery behavior. (`#432 <https://github.com/twisted/towncrier/issues/432>`_, `#602 <https://github.com/twisted/towncrier/issues/602>`_)
56+
- The tutorial now introduces the `filename` option in the appropriate paragraph and mentions its default value. (`#586 <https://github.com/twisted/towncrier/issues/586>`_)
57+
- Add docs to explain how ``towncrier create +.feature.rst`` (orphan fragments) works. (`#589 <https://github.com/twisted/towncrier/issues/589>`_)
58+
59+
60+
Misc
61+
----
62+
63+
- `#491 <https://github.com/twisted/towncrier/issues/491>`_, `#561 <https://github.com/twisted/towncrier/issues/561>`_, `#562 <https://github.com/twisted/towncrier/issues/562>`_, `#568 <https://github.com/twisted/towncrier/issues/568>`_, `#569 <https://github.com/twisted/towncrier/issues/569>`_, `#571 <https://github.com/twisted/towncrier/issues/571>`_, `#574 <https://github.com/twisted/towncrier/issues/574>`_, `#575 <https://github.com/twisted/towncrier/issues/575>`_, `#582 <https://github.com/twisted/towncrier/issues/582>`_, `#591 <https://github.com/twisted/towncrier/issues/591>`_, `#596 <https://github.com/twisted/towncrier/issues/596>`_, `#597 <https://github.com/twisted/towncrier/issues/597>`_, `#625 <https://github.com/twisted/towncrier/issues/625>`_
64+
65+
866
towncrier 23.11.0 (2023-11-08)
967
==============================
1068

RELEASE.rst

+19
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,25 @@ For now, the GitHub release text is reStructuredText as it's easy to copy and pa
5959
In the future we might create a separate Markdown version.
6060

6161

62+
Release candidate publish failures
63+
----------------------------------
64+
65+
The PyPI publish process is automatically triggered when a tag is created.
66+
67+
The publish is skipped for PRs, so we can check that the automated process works only a release time.
68+
It can happen for the automated publish process to fail.
69+
70+
As long as the package was not published to PyPI, do the followings:
71+
72+
* Manually delete the candidate release from GitHub releases
73+
* Manually delete the tag for the release candidate
74+
75+
Try to fix the issue and trigger the same release candidate again.
76+
77+
Once the package is published on PyPI, do not delete the release or the tag.
78+
Proceed with create a new release candidate instead.
79+
80+
6281
Final release
6382
-------------
6483

src/towncrier/_version.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
Provides towncrier version information.
33
"""
44

5-
# For dev - 23.11.1.dev0
6-
# For RC - 23.11.1.rc1
7-
# For final - 23.11.1
5+
# For dev - 23.11.0.dev0
6+
# For RC - 23.11.0rc1 (release candidate starts at 1)
7+
# For final - 23.11.0
88
# make sure to follow PEP440
9-
__version__ = "23.11.1.dev0"
9+
__version__ = "24.7.1.dev0"
1010

1111
_hatchling_version = __version__
1212
__all__ = ["_hatchling_version"]

src/towncrier/newsfragments/357.feature.rst

-1
This file was deleted.

src/towncrier/newsfragments/432.doc.rst

-1
This file was deleted.

src/towncrier/newsfragments/432.feature.rst

-1
This file was deleted.

src/towncrier/newsfragments/482.feature.rst

-5
This file was deleted.

src/towncrier/newsfragments/491.misc

-3
This file was deleted.

src/towncrier/newsfragments/561.bugfix.rst

-1
This file was deleted.

src/towncrier/newsfragments/561.misc.rst

-1
This file was deleted.

src/towncrier/newsfragments/562.misc

-1
This file was deleted.

src/towncrier/newsfragments/568.misc

Whitespace-only changes.

src/towncrier/newsfragments/569.misc.rst

-1
This file was deleted.

src/towncrier/newsfragments/571.misc

Whitespace-only changes.

src/towncrier/newsfragments/574.misc

Whitespace-only changes.

src/towncrier/newsfragments/575.misc

Whitespace-only changes.

src/towncrier/newsfragments/582.misc

Whitespace-only changes.

src/towncrier/newsfragments/586.doc

-1
This file was deleted.

src/towncrier/newsfragments/587.bugfix

-1
This file was deleted.

src/towncrier/newsfragments/588.bugfix

-1
This file was deleted.

src/towncrier/newsfragments/589.doc

-1
This file was deleted.

src/towncrier/newsfragments/591.misc.rst

-1
This file was deleted.

src/towncrier/newsfragments/594.feature.rst

-1
This file was deleted.

src/towncrier/newsfragments/596.misc.rst

-1
This file was deleted.

src/towncrier/newsfragments/597.misc.rst

-1
This file was deleted.

src/towncrier/newsfragments/601.feature.rst

-1
This file was deleted.

src/towncrier/newsfragments/602.doc.rst

-1
This file was deleted.

src/towncrier/newsfragments/603.feature.rst

-1
This file was deleted.

src/towncrier/newsfragments/608.feature.rst

-8
This file was deleted.

src/towncrier/newsfragments/610.feature.rst

-1
This file was deleted.

src/towncrier/newsfragments/612.bugfix.rst

-1
This file was deleted.

src/towncrier/newsfragments/617.feature.rst

-1
This file was deleted.

src/towncrier/newsfragments/622.feature.rst

-3
This file was deleted.

src/towncrier/newsfragments/625.misc

Whitespace-only changes.

0 commit comments

Comments
 (0)