Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pytest-json-report for 
openSUSE:Factory checked in at 2023-08-02 16:50:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-json-report (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-json-report.new.22712 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-json-report"

Wed Aug  2 16:50:06 2023 rev:4 rq:1101889 version:1.5.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-pytest-json-report/python-pytest-json-report.changes
      2022-11-30 15:01:13.869797054 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-json-report.new.22712/python-pytest-json-report.changes
   2023-08-02 16:52:00.466066202 +0200
@@ -1,0 +2,6 @@
+Wed Aug  2 06:39:01 UTC 2023 - Daniel Garcia <daniel.gar...@suse.com>
+
+- Add pytest-metadata-3.patch to make it compatible with
+  pytest-metadata 3.0.0 gh#numirias/pytest-json-report#90
+
+-------------------------------------------------------------------

New:
----
  pytest-metadata-3.patch

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

Other differences:
------------------
++++++ python-pytest-json-report.spec ++++++
--- /var/tmp/diff_new_pack.5W6HJy/_old  2023-08-02 16:52:00.946069102 +0200
+++ /var/tmp/diff_new_pack.5W6HJy/_new  2023-08-02 16:52:00.950069127 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pytest-json-report
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,6 +24,8 @@
 License:        MIT
 URL:            https://github.com/numirias/pytest-json-report
 Source:         
https://files.pythonhosted.org/packages/source/p/pytest-json-report/pytest-json-report-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM pytest-metadata-3.patch gh#numirias/pytest-json-report#90
+Patch0:         pytest-metadata-3.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  python-rpm-macros
 # SECTION test requirements

++++++ pytest-metadata-3.patch ++++++
>From db6174c82df854d5e390f09f4018710e7183461e Mon Sep 17 00:00:00 2001
From: eskerda <eske...@gmail.com>
Date: Mon, 12 Jun 2023 16:41:23 +0200
Subject: [PATCH] Get pytest metadata from stash object (fix #89)

---
 pytest_jsonreport/plugin.py | 3 ++-
 setup.py                    | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/pytest_jsonreport/plugin.py b/pytest_jsonreport/plugin.py
index 6ee4ea5..f768d69 100644
--- a/pytest_jsonreport/plugin.py
+++ b/pytest_jsonreport/plugin.py
@@ -7,6 +7,7 @@
 import time
 import warnings
 
+from pytest_metadata.plugin import metadata_key
 import pytest
 import _pytest.hookspec
 
@@ -228,7 +229,7 @@ def pytest_sessionfinish(self, session):
             duration=time.time() - self._start_time,
             exitcode=session.exitstatus,
             root=str(session.fspath),
-            environment=getattr(self._config, '_metadata', {}),
+            environment=self._config.stash.get(metadata_key, {}),
             summary=serialize.make_summary(self._json_tests, **summary_data),
         )
         if not self._config.option.json_report_summary:
diff --git a/setup.py b/setup.py
index 563fc6d..a60504f 100644
--- a/setup.py
+++ b/setup.py
@@ -26,7 +26,7 @@
     license='MIT',
     install_requires=[
         'pytest>=3.8.0',
-        'pytest-metadata',
+        'pytest-metadata>=3.0.0',
     ],
     entry_points={
         'pytest11': [

Reply via email to