14
0

Accepting request 943586 from home:marxin:branches:devel:languages:python

- Update to 2.11.1:
  https://github.com/pygments/pygments/blob/master/CHANGES
- Remove one test as it requires wcag-contrast-ratio Python package.

I verified python-pelican package can be built with updated Pygments.

OBS-URL: https://build.opensuse.org/request/show/943586
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pygments?expand=0&rev=79
This commit is contained in:
2022-01-04 17:47:14 +00:00
committed by Git OBS Bridge
parent 49e9ec500a
commit c2e2356a47
4 changed files with 15 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-Pygments
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -26,8 +26,7 @@
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-Pygments
# DO NOT UPGRADE UNTIL PELICAN IS COMPATIBLE!
Version: 2.9.0
Version: 2.11.1
Release: 0
Summary: A syntax highlighting package written in Python
License: BSD-2-Clause
@@ -38,6 +37,7 @@ BuildRequires: %{python_module base >= 3.5}
# We need pytest just because of its test runner, it seems even
# python3 stdlib unittest runner doesn't work
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros >= 20210929
@@ -97,6 +97,8 @@ install -Dm0644 doc/pygmentize.1 %{buildroot}%{_mandir}/man1/pygmentize.1
%python_uninstall_alternative pygmentize
%check
# skip test that requires wcag-contrast-ratio Python package
rm ./tests/contrast/test_contrasts.py
%pytest
%files %{python_files}