Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pytest-metadata for
openSUSE:Factory checked in at 2024-02-04 19:10:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-metadata (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-metadata.new.1815 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-metadata"
Sun Feb 4 19:10:02 2024 rev:8 rq:1143994 version:3.1.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-pytest-metadata/python-pytest-metadata.changes
2023-07-25 11:53:17.182219428 +0200
+++
/work/SRC/openSUSE:Factory/.python-pytest-metadata.new.1815/python-pytest-metadata.changes
2024-02-04 19:12:26.355608935 +0100
@@ -1,0 +2,6 @@
+Sun Feb 4 12:14:54 UTC 2024 - Dirk Müller <[email protected]>
+
+- update to 3.1.0:
+ * Support Pytest 8.0
+
+-------------------------------------------------------------------
Old:
----
pytest_metadata-3.0.0.tar.gz
New:
----
pytest_metadata-3.1.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-metadata.spec ++++++
--- /var/tmp/diff_new_pack.JAFKbf/_old 2024-02-04 19:12:26.787624503 +0100
+++ /var/tmp/diff_new_pack.JAFKbf/_new 2024-02-04 19:12:26.787624503 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-pytest-metadata
#
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-pytest-metadata
-Version: 3.0.0
+Version: 3.1.0
Release: 0
Summary: Pytest plugin for test session metadata
License: MPL-2.0
++++++ pytest_metadata-3.0.0.tar.gz -> pytest_metadata-3.1.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest_metadata-3.0.0/.pre-commit-config.yaml
new/pytest_metadata-3.1.0/.pre-commit-config.yaml
--- old/pytest_metadata-3.0.0/.pre-commit-config.yaml 2023-05-27
20:29:13.000000000 +0200
+++ new/pytest_metadata-3.1.0/.pre-commit-config.yaml 2024-02-01
16:24:23.000000000 +0100
@@ -1,19 +1,19 @@
repos:
- repo: https://github.com/psf/black
- rev: 23.3.0
+ rev: 24.1.1
hooks:
- id: black
args: [--safe, --quiet]
language_version: python3
- repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v4.4.0
+ rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/PyCQA/flake8
- rev: 6.0.0
+ rev: 7.0.0
hooks:
- id: flake8
exclude: docs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest_metadata-3.0.0/CHANGES.rst
new/pytest_metadata-3.1.0/CHANGES.rst
--- old/pytest_metadata-3.0.0/CHANGES.rst 2023-05-27 20:29:13.000000000
+0200
+++ new/pytest_metadata-3.1.0/CHANGES.rst 2024-02-01 16:24:23.000000000
+0100
@@ -1,6 +1,11 @@
Release Notes
-------------
+3.1.0 (2024-02-01)
+------------------
+
+* Support Pytest 8.0
+
3.0.0 (2023-05-27)
------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest_metadata-3.0.0/PKG-INFO
new/pytest_metadata-3.1.0/PKG-INFO
--- old/pytest_metadata-3.0.0/PKG-INFO 2023-05-27 20:29:13.000000000 +0200
+++ new/pytest_metadata-3.1.0/PKG-INFO 2024-02-01 16:24:23.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: pytest-metadata
-Version: 3.0.0
+Version: 3.1.0
Summary: pytest plugin for test session metadata
Project-URL: Homepage, https://github.com/pytest-dev/pytest-metadata
Project-URL: Tracker, https://github.com/pytest-dev/pytest-metadata/issues
@@ -13,22 +13,22 @@
Classifier: Development Status :: 5 - Production/Stable
Classifier: Framework :: Pytest
Classifier: Intended Audience :: Developers
-Classifier: License :: OSI Approved :: MIT License
+Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
Classifier: Natural Language :: English
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
-Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
+Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Utilities
-Requires-Python: >=3.7
+Requires-Python: >=3.8
Requires-Dist: pytest>=7.0.0
Provides-Extra: test
Requires-Dist: black>=22.1.0; extra == 'test'
@@ -66,7 +66,7 @@
You will need the following in order to use pytest-metadata:
-- Python 3.7+ or PyPy3
+- Python 3.8+ or PyPy3
Installation
------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest_metadata-3.0.0/README.rst
new/pytest_metadata-3.1.0/README.rst
--- old/pytest_metadata-3.0.0/README.rst 2023-05-27 20:29:13.000000000
+0200
+++ new/pytest_metadata-3.1.0/README.rst 2024-02-01 16:24:23.000000000
+0100
@@ -27,7 +27,7 @@
You will need the following in order to use pytest-metadata:
-- Python 3.7+ or PyPy3
+- Python 3.8+ or PyPy3
Installation
------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest_metadata-3.0.0/pyproject.toml
new/pytest_metadata-3.1.0/pyproject.toml
--- old/pytest_metadata-3.0.0/pyproject.toml 2023-05-27 20:29:13.000000000
+0200
+++ new/pytest_metadata-3.1.0/pyproject.toml 2024-02-01 16:24:23.000000000
+0100
@@ -10,7 +10,7 @@
description = "pytest plugin for test session metadata"
readme = "README.rst"
license = "MPL-2.0"
-requires-python = ">=3.7"
+requires-python = ">=3.8"
keywords = [
"pytest",
"metadata",
@@ -23,16 +23,16 @@
"Development Status :: 5 - Production/Stable",
"Framework :: Pytest",
"Intended Audience :: Developers",
- "License :: OSI Approved :: MIT License",
+ "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Natural Language :: English",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS :: MacOS X",
- "Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
+ "Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Quality Assurance",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest_metadata-3.0.0/src/pytest_metadata/__version.py
new/pytest_metadata-3.1.0/src/pytest_metadata/__version.py
--- old/pytest_metadata-3.0.0/src/pytest_metadata/__version.py 2023-05-27
20:29:13.000000000 +0200
+++ new/pytest_metadata-3.1.0/src/pytest_metadata/__version.py 2024-02-01
16:24:23.000000000 +0100
@@ -1,4 +1,16 @@
# file generated by setuptools_scm
# don't change, don't track in version control
-__version__ = version = '3.0.0'
-__version_tuple__ = version_tuple = (3, 0, 0)
+TYPE_CHECKING = False
+if TYPE_CHECKING:
+ from typing import Tuple, Union
+ VERSION_TUPLE = Tuple[Union[int, str], ...]
+else:
+ VERSION_TUPLE = object
+
+version: str
+__version__: str
+__version_tuple__: VERSION_TUPLE
+version_tuple: VERSION_TUPLE
+
+__version__ = version = '3.1.0'
+__version_tuple__ = version_tuple = (3, 1, 0)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest_metadata-3.0.0/src/pytest_metadata/plugin.py
new/pytest_metadata-3.1.0/src/pytest_metadata/plugin.py
--- old/pytest_metadata-3.0.0/src/pytest_metadata/plugin.py 2023-05-27
20:29:13.000000000 +0200
+++ new/pytest_metadata-3.1.0/src/pytest_metadata/plugin.py 2024-02-01
16:24:23.000000000 +0100
@@ -94,6 +94,7 @@
config.stash[metadata_key].update(
json.loads(config.getoption("metadata_from_json"))
)
+
if config.getoption("metadata_from_json_file"):
with open(config.getoption("metadata_from_json_file"), "r") as
json_file:
config.stash[metadata_key].update(json.load(json_file))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest_metadata-3.0.0/tests/test_metadata.py
new/pytest_metadata-3.1.0/tests/test_metadata.py
--- old/pytest_metadata-3.0.0/tests/test_metadata.py 2023-05-27
20:29:13.000000000 +0200
+++ new/pytest_metadata-3.1.0/tests/test_metadata.py 2024-02-01
16:24:23.000000000 +0100
@@ -3,13 +3,12 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import pytest
from xml.etree import ElementTree as ET
-from tempfile import NamedTemporaryFile
pytest_plugins = ("pytester",)
-def test_metadata(testdir):
- testdir.makepyfile(
+def test_metadata(pytester):
+ pytester.makepyfile(
"""
def test_pass(metadata):
for k in ['Python', 'Platform', 'Packages']:
@@ -17,39 +16,41 @@
assert 'JENKINS_URL' not in metadata
"""
)
- result = testdir.runpytest()
+ result = pytester.runpytest()
assert result.ret == 0
-def test_environment_variables(testdir, monkeypatch):
+def test_environment_variables(pytester, monkeypatch):
monkeypatch.setenv("JENKINS_URL", "foo")
monkeypatch.setenv("GIT_COMMIT", "bar")
- testdir.makepyfile(
+ pytester.makepyfile(
"""
def test_pass(metadata):
assert metadata.get('JENKINS_URL') == 'foo'
assert metadata.get('GIT_COMMIT') == 'bar'
"""
)
- result = testdir.runpytest()
+ result = pytester.runpytest()
assert result.ret == 0
-def test_additional_metadata(testdir):
- testdir.makepyfile(
+def test_additional_metadata(pytester):
+ pytester.makepyfile(
"""
def test_pass(metadata):
assert metadata.get('Dave') == 'Hunt'
assert metadata.get('Jim') == 'Bob'
"""
)
- result = testdir.runpytest("--metadata", "Dave", "Hunt", "--metadata",
"Jim", "Bob")
+ result = pytester.runpytest(
+ "--metadata", "Dave", "Hunt", "--metadata", "Jim", "Bob"
+ )
assert result.ret == 0
@pytest.mark.parametrize("junit_format", ["xunit1", "xunit2"])
-def test_junit_integration(testdir, junit_format):
- testdir.makepyfile(
+def test_junit_integration(pytester, junit_format):
+ pytester.makepyfile(
"""
import pytest
@@ -59,7 +60,7 @@
pass
"""
)
- result = testdir.runpytest(
+ result = pytester.runpytest(
"--metadata",
"Daffy",
"Duck",
@@ -67,7 +68,7 @@
"--override-ini='junit_family={}'".format(junit_format),
)
assert result.ret == 0
- results_file = testdir.tmpdir.join("results.xml")
+ results_file = pytester.path.joinpath("results.xml")
assert results_file.exists()
with results_file.open() as fd:
xml = ET.parse(fd)
@@ -77,34 +78,32 @@
assert {"name": "Daffy", "value": "Duck"} in xml_metadata
-def test_additional_metadata_from_json(testdir):
- testdir.makepyfile(
+def test_additional_metadata_from_json(pytester):
+ pytester.makepyfile(
"""
def test_pass(metadata):
assert metadata.get('Imran') == 'Mumtaz'
"""
)
- result = testdir.runpytest("--metadata-from-json", '{"Imran": "Mumtaz"}')
+ result = pytester.runpytest("--metadata-from-json", '{"Imran": "Mumtaz"}')
assert result.ret == 0
-def test_additional_metadata_from_json_file(testdir):
- testdir.makepyfile(
+def test_additional_metadata_from_json_file(pytester):
+ pytester.makepyfile(
"""
def test_pass(metadata):
assert metadata.get('John') == 'Cena'
"""
)
+ pytester.makefile(".json", temp='{"John": "Cena"}')
- json_temp = NamedTemporaryFile(delete=False)
- json_temp.write('{"John": "Cena"}'.encode(encoding="utf-8"))
- json_temp.flush()
- result = testdir.runpytest("--metadata-from-json-file", json_temp.name)
+ result = pytester.runpytest("--metadata-from-json-file", "temp.json")
assert result.ret == 0
-def test_additional_metadata_using_key_values_json_str_and_file(testdir):
- testdir.makepyfile(
+def test_additional_metadata_using_key_values_json_str_and_file(pytester):
+ pytester.makepyfile(
"""
def test_pass(metadata):
assert metadata.get('John') == 'Cena'
@@ -112,23 +111,22 @@
assert metadata.get('Andre') == 'The Giant'
"""
)
- json_temp = NamedTemporaryFile(delete=False)
- json_temp.write('{"Andre": "The Giant"}'.encode(encoding="utf-8"))
- json_temp.flush()
- result = testdir.runpytest(
+ pytester.makefile(".json", temp='{"Andre": "The Giant"}')
+
+ result = pytester.runpytest(
"--metadata",
"John",
"Cena",
"--metadata-from-json",
'{"Dwayne": "Johnson"}',
"--metadata-from-json-file",
- json_temp.name,
+ "temp.json",
)
assert result.ret == 0
-def test_metadata_hook(testdir):
- testdir.makeconftest(
+def test_metadata_hook(pytester):
+ pytester.makeconftest(
"""
import pytest
@pytest.hookimpl(optionalhook=True)
@@ -136,18 +134,18 @@
metadata['Dave'] = 'Hunt'
"""
)
- testdir.makepyfile(
+ pytester.makepyfile(
"""
def test_pass(metadata):
assert metadata.get('Dave') == 'Hunt'
"""
)
- result = testdir.runpytest()
+ result = pytester.runpytest()
assert result.ret == 0
-def test_report_header(testdir):
- result = testdir.runpytest()
+def test_report_header(pytester):
+ result = pytester.runpytest()
assert not any(line.startswith("metadata:") for line in
result.stdout.lines)
- result = testdir.runpytest("-v")
+ result = pytester.runpytest("-v")
assert any(line.startswith("metadata:") for line in result.stdout.lines)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest_metadata-3.0.0/tox.ini
new/pytest_metadata-3.1.0/tox.ini
--- old/pytest_metadata-3.0.0/tox.ini 2023-05-27 20:29:13.000000000 +0200
+++ new/pytest_metadata-3.1.0/tox.ini 2024-02-01 16:24:23.000000000 +0100
@@ -1,5 +1,5 @@
[tox]
-envlist = py{3.7, 3.8, 3.9, 3.10, py3.9}, linting
+envlist = py{3.8, 3.9, 3.10, 3.11, 3.12, py3.10}, linting
isolated_build = True
[testenv]