Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-Pygments for openSUSE:Factory 
checked in at 2022-08-08 08:44:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Pygments (Old)
 and      /work/SRC/openSUSE:Factory/.python-Pygments.new.1521 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Pygments"

Mon Aug  8 08:44:52 2022 rev:37 rq:989964 version:2.12.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Pygments/python-Pygments.changes  
2022-05-17 17:23:33.551123287 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-Pygments.new.1521/python-Pygments.changes    
    2022-08-08 08:44:56.078406840 +0200
@@ -1,0 +2,17 @@
+Mon Jul 18 12:58:46 UTC 2022 - Matej Cepl <mc...@suse.com>
+
+- Add BR of wcag-contrast-ratio to enable more tests.
+
+-------------------------------------------------------------------
+Mon Jul 18 12:11:36 UTC 2022 - Matej Cepl <mc...@suse.com>
+
+- Removing a test file is too much a hack for me
+
+-------------------------------------------------------------------
+Fri Jul 15 14:30:49 UTC 2022 - Ben Greiner <c...@bnavigator.de>
+
+- Don't fall back to setuptools but to importlib-metadata for
+  plugin loading. (If a package for 15.X would be build, but
+  Pytest 7 is required for testing -- gh#pygments/pygments#2080)
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-Pygments.spec ++++++
--- /var/tmp/diff_new_pack.SwFpwa/_old  2022-08-08 08:44:56.538408193 +0200
+++ /var/tmp/diff_new_pack.SwFpwa/_new  2022-08-08 08:44:56.542408205 +0200
@@ -34,14 +34,16 @@
 URL:            http://pygments.org
 Source:         
https://files.pythonhosted.org/packages/source/P/Pygments/Pygments-%{version}.tar.gz
 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 pytest >= 7}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wcag-contrast-ratio}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros >= 20210929
-Requires:       python-setuptools
+# Preferred for plugin loading, see https://pygments.org/docs/plugins/
+%if 0%{?python_version_nodots} < 38
+Requires:       python-importlib-metadata
+%endif
 %if %{with libalternatives}
 Requires:       alts
 BuildRequires:  alts
@@ -81,7 +83,9 @@
 %fdupes %{buildroot}%{$python_sitelib}
 }
 
-%prepare_alternative pygmentize
+%check
+# skip test that requires wcag-contrast-ratio Python package
+%pytest
 
 %pre
 # If libalternatives is used: Removing old update-alternatives entries.
@@ -93,17 +97,12 @@
 %postun
 %python_uninstall_alternative pygmentize
 
-%check
-# skip test that requires wcag-contrast-ratio Python package
-rm ./tests/contrast/test_contrasts.py
-%pytest
-
 %files %{python_files}
 %license LICENSE
 %doc AUTHORS CHANGES
 %python_alternative %{_bindir}/pygmentize
 %python_alternative %{_mandir}/man1/pygmentize.1%{ext_man}
-%{python_sitelib}/pygments/
-%{python_sitelib}/Pygments-%{version}-py%{python_version}.egg-info/
+%{python_sitelib}/pygments
+%{python_sitelib}/Pygments-%{version}*-info
 
 %changelog

Reply via email to