Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pyroma for openSUSE:Factory 
checked in at 2026-10-02 23:03:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyroma (Old)
 and      /work/SRC/openSUSE:Factory/.python-pyroma.new.1631729 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyroma"

Fri Oct  2 23:03:52 2026 rev:7 rq:1381985 version:5.0.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyroma/python-pyroma.changes      
2024-03-25 21:18:40.392499283 +0100
+++ /work/SRC/openSUSE:Factory/.python-pyroma.new.1631729/python-pyroma.changes 
2026-10-02 23:04:22.670889668 +0200
@@ -1,0 +2,14 @@
+Fri Oct  2 04:55:49 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Update to 5.0.1:
+  * Passing in multiple tests to be skipped now actually works.
+  * Changed the internal metadata names to match Core Metadata.
+  * Added a rating for if the wheel fails to build.
+  * Removed support for fetching data via monkey-patching setup.py.
+  * Added support for License-Expression as per PEP 639.
+  * Added a --skip-tests parameter to allow skipping of certain tests.
+  * Allow private classifiers
+- Add patch no-more-pkg-resources.patch:
+  * Use pathlib, rather than pkg_resources. 
+
+-------------------------------------------------------------------

Old:
----
  pyroma-4.2.tar.gz

New:
----
  no-more-pkg-resources.patch
  pyroma-5.0.1.tar.gz

----------(New B)----------
  New:  * Allow private classifiers
- Add patch no-more-pkg-resources.patch:
  * Use pathlib, rather than pkg_resources. 
----------(New E)----------

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

Other differences:
------------------
++++++ python-pyroma.spec ++++++
--- /var/tmp/diff_new_pack.YsqnYc/_old  2026-10-02 23:04:24.013945881 +0200
+++ /var/tmp/diff_new_pack.YsqnYc/_new  2026-10-02 23:04:24.016946006 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pyroma
 #
-# Copyright (c) 2024 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
@@ -17,16 +17,18 @@
 
 
 Name:           python-pyroma
-Version:        4.2
+Version:        5.0.1
 Release:        0
 Summary:        Test a Python project's adherence to packaging guidelines
 License:        MIT
 URL:            https://github.com/regebro/pyroma
 Source:         
https://files.pythonhosted.org/packages/source/p/pyroma/pyroma-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM Based on gh#regebro/pyroma#123
+Patch0:         no-more-pkg-resources.patch
 BuildRequires:  %{python_module Pygments}
-BuildRequires:  %{python_module base >= 3.8}
+BuildRequires:  %{python_module base >= 3.10}
 BuildRequires:  %{python_module build >= 0.7}
-BuildRequires:  %{python_module docutils}
+BuildRequires:  %{python_module docutils >= 0.22}
 BuildRequires:  %{python_module flit-core}
 BuildRequires:  %{python_module packaging}
 BuildRequires:  %{python_module pip}
@@ -39,7 +41,7 @@
 BuildRequires:  python-rpm-macros
 Requires:       python-Pygments
 Requires:       python-build >= 0.7
-Requires:       python-docutils
+Requires:       python-docutils >= 0.22
 Requires:       python-packaging
 Requires:       python-requests
 Requires:       python-setuptools >= 42
@@ -59,7 +61,7 @@
 well as a script, also called pyroma.
 
 %prep
-%setup -q -n pyroma-%{version}
+%autosetup -p1 -n pyroma-%{version}
 
 %build
 export LANG=en_US.UTF-8
@@ -74,7 +76,10 @@
 %check
 export LANG=en_US.UTF-8
 # Requires network
-%pytest -k 'not (test_complete or test_distribute)'
+donttest="test_complete or test_distribute"
+# Requires check-manifest, a full git checkout and probably a pony
+donttest+=" or (RatingsTest and (test_custom_test or test_minimal or 
test_only_config))"
+%pytest -k "not ($donttest)"
 
 %post
 %python_install_alternative pyroma

++++++ no-more-pkg-resources.patch ++++++
>From 7a82936b9d32f24ff70420bf9a4990a11cb9de6e Mon Sep 17 00:00:00 2001
From: Hugo van Kemenade <[email protected]>
Date: Wed, 10 Dec 2025 15:36:36 +0200
Subject: [PATCH 1/2] Fix PendingDeprecationWarning from docutils

PendingDeprecationWarning: Argument "writer_name" will be removed in Docutils 
2.0. Specify writer name in the "writer" argument.
---
 pyroma/ratings.py | 2 +-
 setup.cfg         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Index: pyroma-5.0.1/pyroma/ratings.py
===================================================================
--- pyroma-5.0.1.orig/pyroma/ratings.py
+++ pyroma-5.0.1/pyroma/ratings.py
@@ -423,7 +423,7 @@ class ValidREST(BaseTest):
         settings = {"warning_stream": stream}
 
         try:
-            publish_parts(source=source, writer_name="html4css1", 
settings_overrides=settings)
+            publish_parts(source=source, writer="html4css1", 
settings_overrides=settings)
         except SystemMessage as e:
             self._message = e.args[0]
         errors = stream.getvalue().strip()
Index: pyroma-5.0.1/setup.cfg
===================================================================
--- pyroma-5.0.1.orig/setup.cfg
+++ pyroma-5.0.1/setup.cfg
@@ -36,7 +36,7 @@ package_dir =
 python_requires = >=3.9
 install_requires = 
        build>=0.7.0
-       docutils
+       docutils>=0.22
        packaging
        pygments
        requests
Index: pyroma-5.0.1/pyroma/tests.py
===================================================================
--- pyroma-5.0.1.orig/pyroma/tests.py
+++ pyroma-5.0.1/pyroma/tests.py
@@ -5,15 +5,15 @@ import os
 import unittest
 
 import unittest.mock
-from pkg_resources import resource_filename, resource_string
+from pathlib import Path
+
 from xmlrpc import client as xmlrpclib
 
 from pyroma import projectdata, distributiondata, pypidata
 from pyroma.ratings import rate
 
-long_description = resource_string(__name__, os.path.join("testdata", 
"complete", "README.txt"))
-if not isinstance(long_description, str):
-    long_description = long_description.decode()
+TESTDATA_DIR = Path(__file__).parent / "testdata"
+long_description = (TESTDATA_DIR / "complete" / 
"README.txt").read_text(encoding="UTF-8")
 # Translate newlines to universal format
 long_description = io.StringIO(long_description, newline=None).read()
 
@@ -59,7 +59,7 @@ COMPLETE = {
 
 class ProxyStub:
     def set_debug_context(self, dataname, real_class, developmode):
-        filename = resource_filename(__name__, os.path.join("testdata", 
"xmlrpcdata", dataname))
+        filename = TESTDATA_DIR / "xmlrpcdata" / dataname
         data = {}
         with open(filename, encoding="UTF-8") as f:
             exec(f.read(), None, data)
@@ -118,7 +118,7 @@ class RatingsTest(unittest.TestCase):
     maxDiff = None
 
     def _get_file_rating(self, dirname, skip_tests=None):
-        directory = resource_filename(__name__, os.path.join("testdata", 
dirname))
+        directory = TESTDATA_DIR / dirname
         data = projectdata.get_data(directory)
         return rate(data, skip_tests)
 
@@ -308,11 +308,11 @@ class PyPITest(unittest.TestCase):
     @unittest.mock.patch("pyroma.pypidata._get_project_data")
     @unittest.mock.patch("requests.get")
     def test_complete(self, requestmock, projectdatamock):
-        datafile = resource_filename(__name__, os.path.join("testdata", 
"jsondata", "complete.json"))
+        datafile = TESTDATA_DIR / "jsondata" / "complete.json"
         with open(datafile, encoding="UTF-8") as file:
             projectdatamock.return_value = json.load(file)
 
-        srcfile = resource_filename(__name__, os.path.join("testdata", 
"distributions", "complete-1.0.dev1.tar.gz"))
+        srcfile = TESTDATA_DIR / "distributions" / "complete-1.0.dev1.tar.gz"
         with open(srcfile, "rb") as file:
             requestmock.return_value = unittest.mock.Mock()
             requestmock.return_value.content = file.read()
@@ -328,7 +328,7 @@ class ProjectDataTest(unittest.TestCase)
     maxDiff = None
 
     def test_complete(self):
-        directory = resource_filename(__name__, os.path.join("testdata", 
"complete"))
+        directory = TESTDATA_DIR / "complete"
 
         data = projectdata.get_data(directory)
         del data["_path"]  # This changes, so I just ignore it
@@ -339,9 +339,9 @@ class DistroDataTest(unittest.TestCase):
     maxDiff = None
 
     def test_complete(self):
-        directory = resource_filename(__name__, os.path.join("testdata", 
"distributions"))
+        directory = TESTDATA_DIR / "distributions"
 
         for filename in os.listdir(directory):
             if filename.startswith("complete"):
-                data = distributiondata.get_data(os.path.join(directory, 
filename))
+                data = distributiondata.get_data(directory / filename)
                 self.assertEqual(data, COMPLETE)

++++++ pyroma-4.2.tar.gz -> pyroma-5.0.1.tar.gz ++++++
++++ 3654 lines of diff (skipped)

Reply via email to