From 2eb8a628391189d0bec1e773f24d4c397db57523fbed8629085d88bbfe81e896 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 29 Jul 2024 04:22:36 +0000 Subject: [PATCH] - Switch to pyproject macros. - Skip a test that fails with Pytest 8.3. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pygments-pytest?expand=0&rev=27 --- python-pygments-pytest.changes | 6 ++++++ python-pygments-pytest.spec | 11 +++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/python-pygments-pytest.changes b/python-pygments-pytest.changes index a421a42..ff7bd9d 100644 --- a/python-pygments-pytest.changes +++ b/python-pygments-pytest.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jul 29 04:21:50 UTC 2024 - Steve Kowalik + +- Switch to pyproject macros. +- Skip a test that fails with Pytest 8.3. + ------------------------------------------------------------------- Sun Jan 7 20:53:30 UTC 2024 - Dirk Müller diff --git a/python-pygments-pytest.spec b/python-pygments-pytest.spec index 4e67a80..81b1ac2 100644 --- a/python-pygments-pytest.spec +++ b/python-pygments-pytest.spec @@ -24,10 +24,12 @@ Summary: A pygments lexer for pytest output License: MIT URL: https://github.com/asottile/pygments-pytest Source: https://github.com/asottile/pygments-pytest/archive/v%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pygments-ansi-color >= 0.0.3} BuildRequires: %{python_module pygments} BuildRequires: %{python_module pytest >= 4.0.1} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-pygments @@ -42,20 +44,21 @@ This library provides a pygments lexer called "pytest". %setup -q -n pygments-pytest-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest +# https://github.com/pytest-dev/pygments-pytest/issues/135 +%pytest -k 'not test_warnings' %files %{python_files} %doc README.md %license LICENSE %pycache_only %{python_sitelib}/__pycache__/*.pyc %{python_sitelib}/pygments_pytest.py -%{python_sitelib}/pygments_pytest-%{version}*-info +%{python_sitelib}/pygments_pytest-%{version}.dist-info %changelog