From 2446aabe07a4de4429e4b2e05d56e6f2881905f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Mon, 2 Nov 2026 13:50:29 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20build:=20require=20release-creat?= =?UTF-8?q?or=204.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Release-creator 4.4 accepts descriptive changelog fragment names. Admit the fresh release through the package cutoff and update its lock entry. --- pylock.toml | 22 +++++++++++----------- pyproject.toml | 8 ++++---- tests/validate_news/test_news.py | 2 +- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/pylock.toml b/pylock.toml index 55f8007..cb9b1e2 100644 --- a/pylock.toml +++ b/pylock.toml @@ -1045,7 +1045,7 @@ sha256 = "d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f" [[packages]] name = "release-creator" -version = "4.3.2" +version = "4.4.0" marker = "\"release-prepare\" in dependency_groups or \"test\" in dependency_groups" requires-python = ">=3.15" dependencies = [ @@ -1059,22 +1059,22 @@ dependencies = [ index = "https://pypi.org/simple/" [packages.sdist] -name = "release_creator-4.3.2.tar.gz" -upload-time = 2026-10-30 15:13:18.343799+00:00 -url = "https://files.pythonhosted.org/packages/f0/c2/74e28c7bc45765ebdcb20e544355df99e8875ca7c9cfb1fe7a85f12cf7ff/release_creator-4.3.2.tar.gz" -size = 170282 +name = "release_creator-4.4.0.tar.gz" +upload-time = 2026-11-02 21:44:48.475063+00:00 +url = "https://files.pythonhosted.org/packages/d8/cf/8f376cc925c26fa5434d327ba03f4ed709b80d2077edda865fc3b2fe1940/release_creator-4.4.0.tar.gz" +size = 171450 [packages.sdist.hashes] -sha256 = "0d20015989042d2c538f9f8e2483d3689b95ed39081f382503e845e4be2b4214" +sha256 = "263d518ddee6371fa13d25bd07f7b5af0fa7a6e421b16f1e8143b0a9443bc84d" [[packages.wheels]] -name = "release_creator-4.3.2-py3-none-any.whl" -upload-time = 2026-10-30 15:13:16.650268+00:00 -url = "https://files.pythonhosted.org/packages/2a/34/60c756df7e260a3d70717b37d2e427e25ea6fad9ad7e4e48218bf8f89942/release_creator-4.3.2-py3-none-any.whl" -size = 54072 +name = "release_creator-4.4.0-py3-none-any.whl" +upload-time = 2026-11-02 21:44:47.195366+00:00 +url = "https://files.pythonhosted.org/packages/7b/29/6f2a3158b082b3bf8a94eb93662d80b4db4212abea0fc1fae07ac9a043da/release_creator-4.4.0-py3-none-any.whl" +size = 54784 [packages.wheels.hashes] -sha256 = "a3faa98095df08f1a4839695882fc7a74220c03cb69f369bb37b4adf7d110a36" +sha256 = "560ed208cca0dc53bc227878e5596e3e26e44fa277658c5d0dc662901d95f8cb" [[packages]] name = "setuptools" diff --git a/pyproject.toml b/pyproject.toml index fc6416f..05f08a8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ license-files = [ "LICENSE" ] [dependency-groups] build = [ "Cython>=3.0", "setuptools>=80" ] -release-prepare = [ "release-creator>=4.3.2", "towncrier>=26.9", "prek>=0.2" ] +release-prepare = [ "release-creator>=4.4", "towncrier>=26.9", "prek>=0.2" ] test = [ "certifi", "coverage[toml]>=7.10", @@ -20,7 +20,7 @@ test = [ "pytest-mock>=3.16", "pytest-xdist>=3", "pyyaml>=6", - "release-creator>=4.3.2", + "release-creator>=4.4", "tomlkit>=0.13", "tox>=4.64.7", "tox-uv>=1.36.1", @@ -36,9 +36,9 @@ uploaded-prior-to = "P7D" python = ">=3.15,<3.16" platforms = ["linux_x86_64"] -# Temporary: release-creator 4.3.2 is younger than seven days. Delete after 2026-11-06. +# release-creator 4.4.0 needs a seven-day cutoff exception through 2026-11-09. [tool.nab.packages.release-creator] -uploaded-prior-to = 2026-10-30T15:13:19Z +uploaded-prior-to = 2026-11-02T21:45:00Z [tool.ruff] line-length = 120 diff --git a/tests/validate_news/test_news.py b/tests/validate_news/test_news.py index 46e9d49..274a667 100644 --- a/tests/validate_news/test_news.py +++ b/tests/validate_news/test_news.py @@ -62,6 +62,7 @@ def test_validate_news_without_fragment( "name", [ pytest.param("+addition.feature.md", id="named"), + pytest.param("addition.feature.md", id="bare-name"), pytest.param("+addition.feature.1.md", id="named-multiple"), pytest.param("123.feature.2.md", id="numbered-multiple"), ], @@ -117,7 +118,6 @@ def test_validate_news_reads_rst_categories( ("name", "content", "error"), [ pytest.param("+addition.unknown.md", "Add a feature.\n", "unsupported changelog fragment", id="category"), - pytest.param("addition.feature.md", "Add a feature.\n", "unsupported changelog fragment", id="name"), pytest.param("+addition.feature.x.md", "Add a feature.\n", "unsupported changelog fragment", id="ordinal"), pytest.param("+addition.feature.md", " \n", "empty changelog fragment", id="empty"), ],