Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pytest-profiling for 
openSUSE:Factory checked in at 2026-10-13 17:44:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-profiling (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-profiling.new.3698736 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-profiling"

Tue Oct 13 17:44:36 2026 rev:8 rq:1384461 version:1.8.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-pytest-profiling/python-pytest-profiling.changes
  2025-02-04 18:14:35.772645153 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-profiling.new.3698736/python-pytest-profiling.changes
     2026-10-13 17:44:51.656097336 +0200
@@ -1,0 +2,6 @@
+Tue Oct 13 00:35:10 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch no-more-pkg-resources.patch:
+  * Use importlib.{metadata,resources} in the testsuite.
+
+-------------------------------------------------------------------

New:
----
  _scmsync.obsinfo
  build.specials.obscpio
  no-more-pkg-resources.patch

----------(New B)----------
  New:
- Add patch no-more-pkg-resources.patch:
  * Use importlib.{metadata,resources} in the testsuite.
----------(New E)----------

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

Other differences:
------------------
++++++ python-pytest-profiling.spec ++++++
--- /var/tmp/diff_new_pack.H3crNo/_old  2026-10-13 17:44:52.902149556 +0200
+++ /var/tmp/diff_new_pack.H3crNo/_new  2026-10-13 17:44:52.903149598 +0200
@@ -25,6 +25,8 @@
 Source:         
https://files.pythonhosted.org/packages/source/p/pytest-profiling/pytest-profiling-%{version}.tar.gz
 # https://github.com/man-group/pytest-plugins/issues/209
 Patch0:         python-pytest-profiling-no-six.patch
+# PATCH-FIX-OPENSUSE Use importlib.{metadata,resources} in the testsuite
+Patch1:         no-more-pkg-resources.patch
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools-git}
 BuildRequires:  %{python_module setuptools}

++++++ _scmsync.obsinfo ++++++
mtime: 1791851718
commit: 0ebe28569be8a03ee87de51d03d4e167386ea50d61a99df34ae6a0f7788c28f3
url: https://src.opensuse.org/python-pytest/python-pytest-profiling
revision: 0ebe28569be8a03ee87de51d03d4e167386ea50d61a99df34ae6a0f7788c28f3
trackingbranch: main
projectscmsync: https://src.opensuse.org/python-pytest/_ObsPrj.git

++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore      1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore      2026-10-13 02:35:18.000000000 +0200
@@ -0,0 +1 @@
+.osc

++++++ no-more-pkg-resources.patch ++++++
Index: pytest-profiling-1.8.1/tests/integration/test_profile_integration.py
===================================================================
--- pytest-profiling-1.8.1.orig/tests/integration/test_profile_integration.py
+++ pytest-profiling-1.8.1/tests/integration/test_profile_integration.py
@@ -1,7 +1,8 @@
+from importlib.metadata import version
+from importlib.resources import files
 import shutil
 import sys
 
-from pkg_resources import resource_filename, get_distribution
 import pytest
 
 from pytest_virtualenv import VirtualEnv
@@ -10,11 +11,11 @@ from pytest_virtualenv import VirtualEnv
 @pytest.fixture(scope="session")
 def virtualenv():
     with VirtualEnv() as venv:
-        test_dir = resource_filename("pytest_profiling", 
"tests/integration/profile")
+        test_dir = 
str(files("pytest_profiling").joinpath("tests/integration/profile"))
         venv.install_package("more-itertools")
-        
venv.install_package("pytest=={}".format(get_distribution("pytest").version))
+        venv.install_package("pytest=={}".format(version("pytest")))
         venv.install_package("pytest-cov")
-        venv.install_package(resource_filename("pytest_profiling", "."))
+        venv.install_package(str(files("pytest_profiling")))
 
         pyversion = sys.version_info
         if (pyversion.major, pyversion.minor) < (3, 8):

Reply via email to