From 7a6601f27e3fc988b1cc84cd34e3a47f09ffdc8dc478ebc01e727da4d7ed02bc Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 18 Jul 2022 13:12:36 +0000 Subject: [PATCH] Accepting request 989963 from home:mcepl:branches:devel:languages:python - Add BR of wcag-contrast-ratio to enable more tests. OBS-URL: https://build.opensuse.org/request/show/989963 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pygments?expand=0&rev=85 --- python-Pygments.changes | 5 +++++ python-Pygments.spec | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/python-Pygments.changes b/python-Pygments.changes index 0ac9939..8370055 100644 --- a/python-Pygments.changes +++ b/python-Pygments.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jul 18 12:58:46 UTC 2022 - Matej Cepl + +- Add BR of wcag-contrast-ratio to enable more tests. + ------------------------------------------------------------------- Mon Jul 18 12:11:36 UTC 2022 - Matej Cepl diff --git a/python-Pygments.spec b/python-Pygments.spec index ca124d8..609c56a 100644 --- a/python-Pygments.spec +++ b/python-Pygments.spec @@ -37,6 +37,7 @@ BuildRequires: %{python_module base >= 3.5} BuildRequires: %{python_module lxml} BuildRequires: %{python_module pytest >= 7} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wcag-contrast-ratio} BuildRequires: fdupes BuildRequires: python-rpm-macros >= 20210929 # Preferred for plugin loading, see https://pygments.org/docs/plugins/ @@ -84,7 +85,7 @@ install -Dm0644 doc/pygmentize.1 %{buildroot}%{_mandir}/man1/pygmentize.1 %check # skip test that requires wcag-contrast-ratio Python package -%pytest --ignore tests/contrast/test_contrasts.py +%pytest %pre # If libalternatives is used: Removing old update-alternatives entries.