From 89ff29cd85ed7a01868df46746fcb287d9ba5140 Mon Sep 17 00:00:00 2001 From: Adi Roiban Date: Mon, 19 Aug 2024 01:11:47 +0100 Subject: [PATCH 1/5] Update version. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 97b4052e..c6f68b0b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ name = "towncrier" # For RC - 23.11.0rc1 (release candidate starts at 1) # For final - 23.11.0 # make sure to follow PEP440 -version = "24.7.2.dev0" +version = "24.8.0rc1" description = "Building newsfiles for your project." readme = "README.rst" license = "MIT" From 261c8a23ec5b6a72f39230baf56698fba57bcbc9 Mon Sep 17 00:00:00 2001 From: Adi Roiban Date: Mon, 19 Aug 2024 01:20:01 +0100 Subject: [PATCH 2/5] venv/bin/towncrier build --yes --- NEWS.rst | 34 +++++++++++++++++++++ src/towncrier/newsfragments/638.bugfix | 1 - src/towncrier/newsfragments/640.misc | 1 - src/towncrier/newsfragments/640.removal | 3 -- src/towncrier/newsfragments/643.feature | 1 - src/towncrier/newsfragments/644.feature.rst | 1 - src/towncrier/newsfragments/649.feature.rst | 1 - src/towncrier/newsfragments/651.bugfix.md | 1 - src/towncrier/newsfragments/654.bugfix.rst | 1 - src/towncrier/newsfragments/655.bugfix.rst | 1 - src/towncrier/newsfragments/657.misc | 0 11 files changed, 34 insertions(+), 11 deletions(-) delete mode 100644 src/towncrier/newsfragments/638.bugfix delete mode 100644 src/towncrier/newsfragments/640.misc delete mode 100644 src/towncrier/newsfragments/640.removal delete mode 100644 src/towncrier/newsfragments/643.feature delete mode 100644 src/towncrier/newsfragments/644.feature.rst delete mode 100644 src/towncrier/newsfragments/649.feature.rst delete mode 100644 src/towncrier/newsfragments/651.bugfix.md delete mode 100644 src/towncrier/newsfragments/654.bugfix.rst delete mode 100644 src/towncrier/newsfragments/655.bugfix.rst delete mode 100644 src/towncrier/newsfragments/657.misc diff --git a/NEWS.rst b/NEWS.rst index 35838b48..25f94a44 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -5,6 +5,40 @@ Release notes .. towncrier release notes start +Towncrier 24.8.0rc1 (2024-08-19) +================================ + +Features +-------- + +- Add ``.gitkeep`` as an ignored filename. (`#643 `_) +- Config `ignore` option now supports wildcard matching via `fnmatch `_. (`#644 `_) +- Add a config for enforcing issue names using regex. (`#649 `_) + + +Bugfixes +-------- + +- The template file is now ignored based only on the file name. (`#638 `_) +- Control of the header formatting is once again completely up to the user when they are writing markdown files (fixes a regression introduced in [#610](https://github.com/twisted/towncrier/pull/610)). (`#651 `_) +- Fixed an issue where `issue_template` failed recognizing the issue name of files with a non-category suffix (`.md`) (`#654 `_) +- Fixed a bug where orphan news fragments (e.g. +abc1234.feature) would fail when an `issue_pattern` is configured. Orphan news fragments are now excempt from `issue_pattern` checks. (`#655 `_) + + +Deprecations and Removals +------------------------- + +- Moved towncrier version definition from src/towncrier/_version.py to pyproject.toml + + towncrier.__version__ was removed, after being deprecated in 23.6.0. (`#640 `_) + + +Misc +---- + +- `#640 `_, `#657 `_ + + Towncrier 24.7.1 (2024-07-31) ============================= diff --git a/src/towncrier/newsfragments/638.bugfix b/src/towncrier/newsfragments/638.bugfix deleted file mode 100644 index 540da135..00000000 --- a/src/towncrier/newsfragments/638.bugfix +++ /dev/null @@ -1 +0,0 @@ -The template file is now ignored based only on the file name. diff --git a/src/towncrier/newsfragments/640.misc b/src/towncrier/newsfragments/640.misc deleted file mode 100644 index 32f045c1..00000000 --- a/src/towncrier/newsfragments/640.misc +++ /dev/null @@ -1 +0,0 @@ -Use importlib.metadata to get the towncrier's version. diff --git a/src/towncrier/newsfragments/640.removal b/src/towncrier/newsfragments/640.removal deleted file mode 100644 index a5fb5b82..00000000 --- a/src/towncrier/newsfragments/640.removal +++ /dev/null @@ -1,3 +0,0 @@ -Moved towncrier version definition from src/towncrier/_version.py to pyproject.toml - -towncrier.__version__ was removed, after being deprecated in 23.6.0. diff --git a/src/towncrier/newsfragments/643.feature b/src/towncrier/newsfragments/643.feature deleted file mode 100644 index 35a13bce..00000000 --- a/src/towncrier/newsfragments/643.feature +++ /dev/null @@ -1 +0,0 @@ -Add ``.gitkeep`` as an ignored filename. diff --git a/src/towncrier/newsfragments/644.feature.rst b/src/towncrier/newsfragments/644.feature.rst deleted file mode 100644 index 4c09a148..00000000 --- a/src/towncrier/newsfragments/644.feature.rst +++ /dev/null @@ -1 +0,0 @@ -Config `ignore` option now supports wildcard matching via `fnmatch `_. diff --git a/src/towncrier/newsfragments/649.feature.rst b/src/towncrier/newsfragments/649.feature.rst deleted file mode 100644 index 506f2ea0..00000000 --- a/src/towncrier/newsfragments/649.feature.rst +++ /dev/null @@ -1 +0,0 @@ -Add a config for enforcing issue names using regex. diff --git a/src/towncrier/newsfragments/651.bugfix.md b/src/towncrier/newsfragments/651.bugfix.md deleted file mode 100644 index 3b3f4c0e..00000000 --- a/src/towncrier/newsfragments/651.bugfix.md +++ /dev/null @@ -1 +0,0 @@ -Control of the header formatting is once again completely up to the user when they are writing markdown files (fixes a regression introduced in [#610](https://github.com/twisted/towncrier/pull/610)). diff --git a/src/towncrier/newsfragments/654.bugfix.rst b/src/towncrier/newsfragments/654.bugfix.rst deleted file mode 100644 index 0a827f70..00000000 --- a/src/towncrier/newsfragments/654.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed an issue where `issue_template` failed recognizing the issue name of files with a non-category suffix (`.md`) diff --git a/src/towncrier/newsfragments/655.bugfix.rst b/src/towncrier/newsfragments/655.bugfix.rst deleted file mode 100644 index ef5fde60..00000000 --- a/src/towncrier/newsfragments/655.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed a bug where orphan news fragments (e.g. +abc1234.feature) would fail when an `issue_pattern` is configured. Orphan news fragments are now excempt from `issue_pattern` checks. diff --git a/src/towncrier/newsfragments/657.misc b/src/towncrier/newsfragments/657.misc deleted file mode 100644 index e69de29b..00000000 From f944515bd9b2c46d2cc2fc75bae35f88e4890e0d Mon Sep 17 00:00:00 2001 From: Adi Roiban Date: Mon, 19 Aug 2024 01:21:50 +0100 Subject: [PATCH 3/5] Update release docs. --- RELEASE.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/RELEASE.rst b/RELEASE.rst index a3e91576..6ea705b5 100644 --- a/RELEASE.rst +++ b/RELEASE.rst @@ -23,7 +23,12 @@ In ``pyproject.toml`` the version is set using a PEP440 compliant string: version = "19.9.0rc1" -Run ``venv/bin/towncrier build --yes`` to generate the news release NEWS file. +Use `towncrier` to generate the news release NEWS file, but first, +make sure the new version is installed:: + + venv/bin/pip install -e . + venv/bin/towncrier build --yes + Commit and push to the primary repository, not a fork. It is important to not use a fork so that pushed tags end up in the primary repository, server provided secrets for publishing to PyPI are available, and maybe more. From 833647e31cde8fd68f0e53063b10e8f3ae4214c3 Mon Sep 17 00:00:00 2001 From: Adi Roiban Date: Fri, 23 Aug 2024 15:34:23 +0100 Subject: [PATCH 4/5] Update final release. --- NEWS.rst | 7 +++++-- pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/NEWS.rst b/NEWS.rst index 25f94a44..67f54a94 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -5,8 +5,11 @@ Release notes .. towncrier release notes start -Towncrier 24.8.0rc1 (2024-08-19) -================================ +Towncrier 24.8.0 (2024-08-23) +============================= + +No changes since the previous release candidate. + Features -------- diff --git a/pyproject.toml b/pyproject.toml index c6f68b0b..763035df 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ name = "towncrier" # For RC - 23.11.0rc1 (release candidate starts at 1) # For final - 23.11.0 # make sure to follow PEP440 -version = "24.8.0rc1" +version = "24.8.0" description = "Building newsfiles for your project." readme = "README.rst" license = "MIT" From 9fcc167bbad81fc3e4bbba834c33eb12429afd8b Mon Sep 17 00:00:00 2001 From: Adi Roiban Date: Fri, 23 Aug 2024 15:50:00 +0100 Subject: [PATCH 5/5] Add dev version. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 763035df..660ae1d7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ name = "towncrier" # For RC - 23.11.0rc1 (release candidate starts at 1) # For final - 23.11.0 # make sure to follow PEP440 -version = "24.8.0" +version = "24.8.0.dev0" description = "Building newsfiles for your project." readme = "README.rst" license = "MIT"