Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-twine for openSUSE:Factory 
checked in at 2026-08-01 18:27:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-twine (Old)
 and      /work/SRC/openSUSE:Factory/.python-twine.new.16738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-twine"

Sat Aug  1 18:27:34 2026 rev:22 rq:1366852 version:6.2.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-twine/python-twine.changes        
2025-10-03 15:42:14.085547682 +0200
+++ /work/SRC/openSUSE:Factory/.python-twine.new.16738/python-twine.changes     
2026-08-01 18:27:58.257016633 +0200
@@ -1,0 +2,6 @@
+Tue Jul 21 03:51:40 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch support-new-docutils.patch:
+  * Support changes required by new readme_renderer/docutils.
+
+-------------------------------------------------------------------

New:
----
  support-new-docutils.patch

----------(New B)----------
  New:
- Add patch support-new-docutils.patch:
  * Support changes required by new readme_renderer/docutils.
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-twine.spec ++++++
--- /var/tmp/diff_new_pack.1QUlN5/_old  2026-08-01 18:27:58.941039840 +0200
+++ /var/tmp/diff_new_pack.1QUlN5/_new  2026-08-01 18:27:58.945039976 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-twine
 #
-# Copyright (c) 2025 SUSE LLC and contributors
+# 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
@@ -30,6 +30,8 @@
 URL:            https://github.com/pypa/twine
 Source:         
https://files.pythonhosted.org/packages/source/t/twine/twine-%{version}.tar.gz
 Patch0:         0001-remove-disable-socket-pytest-opt.patch
+# PATCH-FIX-UPSTREAM Two patches from gh#pypa/twine#1330
+Patch1:         support-new-docutils.patch
 BuildRequires:  %{python_module id}
 BuildRequires:  %{python_module importlib-metadata >= 3.6}
 BuildRequires:  %{python_module jaraco.envs}

++++++ support-new-docutils.patch ++++++
>From 2daa0a296145faaf2e78b79199bbaf3533a732b7 Mon Sep 17 00:00:00 2001
From: William Woodruff <[email protected]>
Date: Sat, 6 Jun 2026 14:54:53 -0400
Subject: [PATCH 2/4] test_check: fix expected error

---
 tests/test_check.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test_check.py b/tests/test_check.py
index 7a1d9820..e66fc570 100644
--- a/tests/test_check.py
+++ b/tests/test_check.py
@@ -119,7 +119,7 @@ def test_fails_rst_syntax_error(tmp_path, capsys, caplog):
             logging.ERROR,
             "`long_description` has syntax errors in markup "
             "and would not be rendered on PyPI.\n"
-            "line 2: Warning: Document or section may not begin with a 
transition.",
+            "line 2: Warning: Transition at the end of the document.",
         ),
     ]
 

>From 02accc9cf798e7713d7711583a1e9595f8c64ecd Mon Sep 17 00:00:00 2001
From: William Woodruff <[email protected]>
Date: Mon, 6 Jul 2026 09:19:37 -0400
Subject: [PATCH 4/4] Rewrite assertion

Signed-off-by: William Woodruff <[email protected]>
---
 tests/test_check.py | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/tests/test_check.py b/tests/test_check.py
index e66fc570..5f027fb9 100644
--- a/tests/test_check.py
+++ b/tests/test_check.py
@@ -141,16 +141,14 @@ def test_fails_rst_no_content(tmp_path, capsys, caplog):
     assert check.check([sdist])
 
     assert capsys.readouterr().out == f"Checking {sdist}: FAILED\n"
-
-    assert caplog.record_tuples == [
-        (
-            "twine.commands.check",
-            logging.ERROR,
-            "`long_description` has syntax errors in markup "
-            "and would not be rendered on PyPI.\n"
-            "No content rendered from RST source.",
-        ),
-    ]
+    assert len(caplog.record_tuples) == 1
+
+    # Note: we intentionally don't check the full error message below,
+    # since readme_renderer/docutils doesn't guarantee it.
+    error = caplog.record_tuples[0]
+    assert error[0] == "twine.commands.check"
+    assert error[1] == logging.ERROR
+    assert "syntax errors" in error[2]
 
 
 def test_passes_rst_description(tmp_path, capsys, caplog):

Reply via email to