Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-sphinxcontrib-towncrier for
openSUSE:Factory checked in at 2026-04-23 17:07:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-sphinxcontrib-towncrier (Old)
and /work/SRC/openSUSE:Factory/.python-sphinxcontrib-towncrier.new.11940
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-sphinxcontrib-towncrier"
Thu Apr 23 17:07:33 2026 rev:5 rq:1348837 version:0.5.0a0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-sphinxcontrib-towncrier/python-sphinxcontrib-towncrier.changes
2025-06-16 11:13:25.533641083 +0200
+++
/work/SRC/openSUSE:Factory/.python-sphinxcontrib-towncrier.new.11940/python-sphinxcontrib-towncrier.changes
2026-04-23 17:11:28.341644760 +0200
@@ -1,0 +2,10 @@
+Thu Apr 16 01:44:12 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Update to 0.5.0a0:
+ * Added support for Towncrier 24.7.0rc1 and higher.
+ * The minimum supported Python version is now 3.9. And the lowest required
+ Towncrier is 23.
+- Add patch support-towncrier-25.8.patch:
+ * Support Towncrier 25.8 changes.
+
+-------------------------------------------------------------------
Old:
----
sphinxcontrib-towncrier-0.4.0a0.tar.gz
New:
----
sphinxcontrib_towncrier-0.5.0a0.tar.gz
support-towncrier-25.8.patch
----------(New B)----------
New: Towncrier is 23.
- Add patch support-towncrier-25.8.patch:
* Support Towncrier 25.8 changes.
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-sphinxcontrib-towncrier.spec ++++++
--- /var/tmp/diff_new_pack.vFS3iS/_old 2026-04-23 17:11:29.229680689 +0200
+++ /var/tmp/diff_new_pack.vFS3iS/_new 2026-04-23 17:11:29.233680851 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-sphinxcontrib-towncrier
#
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -26,12 +26,15 @@
%endif
%{?sle15_python_module_pythons}
Name: python-sphinxcontrib-towncrier%{psuffix}
-Version: 0.4.0a0
+Version: 0.5.0a0
Release: 0
Summary: An RST directive for injecting a Towncrier-generated changelog
draft
License: BSD-3-Clause
URL: https://github.com/sphinx-contrib/sphinxcontrib-towncrier
-Source:
https://files.pythonhosted.org/packages/source/s/sphinxcontrib-towncrier/sphinxcontrib-towncrier-%{version}.tar.gz
+Source:
https://files.pythonhosted.org/packages/source/s/sphinxcontrib-towncrier/sphinxcontrib_towncrier-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM
gh#sphinx-contrib/sphinxcontrib-towncrier#ab800bcd251a4c7ca558999faa740eb9586b91f5
+Patch0: support-towncrier-25.8.patch
+BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
@@ -39,15 +42,13 @@
BuildRequires: python-rpm-macros
# SECTION test requirements
%if %{with test}
-BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module sphinxcontrib-towncrier = %{version}}
-BuildRequires: %{python_module towncrier >= 19.2}
%endif
# /SECTION
BuildRequires: fdupes
Requires: python-Sphinx
-Requires: python-towncrier >= 19.2
+Requires: python-towncrier >= 23
BuildArch: noarch
%python_subpackages
@@ -55,7 +56,7 @@
An RST directive for injecting a Towncrier-generated changelog draft
containing fragments for the unreleased (next) project version
%prep
-%setup -q -n sphinxcontrib-towncrier-%{version}
+%autosetup -p1 -n sphinxcontrib_towncrier-%{version}
rm -v pytest.ini
%build
++++++ support-towncrier-25.8.patch ++++++
>From ab800bcd251a4c7ca558999faa740eb9586b91f5 Mon Sep 17 00:00:00 2001
From: Sviatoslav Sydorenko <[email protected]>
Date: Mon, 18 Aug 2025 17:41:01 +0200
Subject: [PATCH] Add Towncrier 25.8.0 to the text matrix
It does not require any runtime code modifications but one test needed
to be adjusted to match new behavior.
Resolves #121.
---
.coveragerc | 2 +-
.github/workflows/ci-cd.yml | 1 +
tests/_towncrier_test.py | 16 ++++++++++++++++
3 files changed, 18 insertions(+), 1 deletion(-)
Index: sphinxcontrib_towncrier-0.5.0a0/.github/workflows/ci-cd.yml
===================================================================
--- sphinxcontrib_towncrier-0.5.0a0.orig/.github/workflows/ci-cd.yml
+++ sphinxcontrib_towncrier-0.5.0a0/.github/workflows/ci-cd.yml
@@ -526,6 +526,7 @@ jobs:
strategy:
matrix:
towncrier-version:
+ - 25.8.0rc2
- 24.8.0
- 23.11.0
- 23.6.0
Index: sphinxcontrib_towncrier-0.5.0a0/tests/_towncrier_test.py
===================================================================
--- sphinxcontrib_towncrier-0.5.0a0.orig/tests/_towncrier_test.py
+++ sphinxcontrib_towncrier-0.5.0a0/tests/_towncrier_test.py
@@ -1,14 +1,23 @@
"""Towncrier config reader tests."""
+from importlib.metadata import version as _get_installed_project_version
from pathlib import Path
from typing import Union
import pytest
+from towncrier._settings.load import Config # noqa: WPS436
+
from sphinxcontrib.towncrier._towncrier import get_towncrier_config
+_TOWNCRIER_VERSION = _get_installed_project_version('towncrier')
+_TOWNCRIER_RELEASED_POST_2025_INCLUSIVE = int( # noqa: WPS114
+ _TOWNCRIER_VERSION.split('.', 1)[0],
+) >= 25 # noqa: WPS432
+
+
def test_towncrier_config_section_missing(
monkeypatch: pytest.MonkeyPatch,
tmp_path: Path,
@@ -25,6 +34,13 @@ def test_towncrier_config_section_missin
fr'`{empty_config_file !s}`: No \[tool\.towncrier\] section\.$'
)
+ if _TOWNCRIER_RELEASED_POST_2025_INCLUSIVE:
+ assert isinstance(
+ get_towncrier_config(tmp_path, empty_config_file),
+ Config,
+ )
+ return
+
with pytest.raises(LookupError, match=expected_error_msg):
get_towncrier_config(tmp_path, empty_config_file)