15
0

18 Commits

Author SHA256 Message Date
710dcf7144 Accepting request 1313838 from devel:languages:python
- Build tests with _multibuild to avoid cycles with pytest dependency.

OBS-URL: https://build.opensuse.org/request/show/1313838
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pygments?expand=0&rev=52
2025-10-28 13:45:16 +00:00
fb6fd9bc45 - Build tests with _multibuild to avoid cycles with pytest dependency.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pygments?expand=0&rev=129
2025-10-27 12:51:26 +00:00
38b665f89c Accepting request 1291573 from devel:languages:python
- Skip testcase that breaks with pytest 8.4.

OBS-URL: https://build.opensuse.org/request/show/1291573
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pygments?expand=0&rev=51
2025-07-10 21:14:59 +00:00
709380b11c - Skip testcase that breaks with pytest 8.4.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pygments?expand=0&rev=127
2025-07-10 02:55:56 +00:00
157f195a11 Accepting request 1287798 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1287798
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pygments?expand=0&rev=50
2025-06-24 18:45:52 +00:00
26c9019df4 Accepting request 1287583 from home:benoit_monin:branches:devel:languages:python
- update to version 2.19.2
- skip random input tests because they get stuck from time to time

OBS-URL: https://build.opensuse.org/request/show/1287583
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pygments?expand=0&rev=125
2025-06-23 05:37:58 +00:00
f8eedab652 Accepting request 1277326 from devel:languages:python
- Redownload source file to have the same version released in pypi.

OBS-URL: https://build.opensuse.org/request/show/1277326
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pygments?expand=0&rev=49
2025-05-15 14:59:48 +00:00
OBS User buildservice-autocommit
dcf7ab8331 auto commit by copy to link target
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pygments?expand=0&rev=124
2025-05-15 14:59:48 +00:00
OBS User buildservice-autocommit
625bb98fb6 Updating link to change in openSUSE:Factory/python-Pygments revision 49
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pygments?expand=0&rev=1316268b92399a310284d77bfb741698
2025-05-15 14:59:48 +00:00
4b04594242 - Redownload source file to have the same version released in pypi.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pygments?expand=0&rev=123
2025-05-14 07:22:29 +00:00
1e3a45b8ac Accepting request 1251963 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1251963
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pygments?expand=0&rev=48
2025-03-11 19:42:32 +00:00
3611a3bc52 - Remove files from testsamples that licensedigger flagged as high risks.
Also created an issue upstream for potential licensing issues. See
  https://github.com/pygments/pygments/issues/2872
- Disable tests which depended on those files

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pygments?expand=0&rev=121
2025-03-11 07:56:11 +00:00
965a93db19 Accepting request 1239845 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1239845
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pygments?expand=0&rev=47
2025-01-23 16:57:23 +00:00
6c476ed6d2 - Drop dependency on ca-certificates-mozilla-prebuilt to really
avoid buildcycles

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pygments?expand=0&rev=119
2025-01-23 11:32:10 +00:00
f544e30964 update to version 2.19.1
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pygments?expand=0&rev=118
2025-01-06 21:56:27 +00:00
3473806d2f Accepting request 1191413 from home:benoit_monin:branches:devel:languages:python
fix build by forcing pip to use the prebuilt CA bundle

OBS-URL: https://build.opensuse.org/request/show/1191413
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pygments?expand=0&rev=117
2024-08-09 08:55:04 +00:00
e3c91fb8b2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pygments?expand=0&rev=116 2024-07-15 14:30:18 +00:00
ceb19f606c - add buildignores to avoid bootstrap buildcycle
p11-kit/gtk-doc/python-Pygments which comes via
  pip/ca-certificates

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pygments?expand=0&rev=115
2024-07-11 14:25:32 +00:00
3 changed files with 28 additions and 4 deletions

3
_multibuild Normal file
View File

@@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Oct 27 12:29:34 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
- Build tests with _multibuild to avoid cycles with pytest dependency.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jul 10 02:55:32 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com> Thu Jul 10 02:55:32 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-Pygments # spec file for package python-Pygments
# #
# Copyright (c) 2025 SUSE LLC # Copyright (c) 2025 SUSE LLC and contributors
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,14 +16,22 @@
# #
# %global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%if 0%{?suse_version} > 1500 %if 0%{?suse_version} > 1500
%bcond_without libalternatives %bcond_without libalternatives
%else %else
%bcond_with libalternatives %bcond_with libalternatives
%endif %endif
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-Pygments Name: python-Pygments%{psuffix}
Version: 2.19.2 Version: 2.19.2
Release: 0 Release: 0
Summary: A syntax highlighting package written in Python Summary: A syntax highlighting package written in Python
@@ -37,8 +45,10 @@ Patch0: skip-wcag-contrast-ratio.patch
BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module hatchling} BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest >= 7}
BuildRequires: %{python_module wheel} BuildRequires: %{python_module wheel}
%if %{with test}
BuildRequires: %{python_module pytest >= 7}
%endif
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros >= 20210929 BuildRequires: python-rpm-macros >= 20210929
#!BuildIgnore: ca-certificates:p11-kit #!BuildIgnore: ca-certificates:p11-kit
@@ -72,6 +82,7 @@ source code. Highlights are:
# Remove unneeded executable bit # Remove unneeded executable bit
chmod -x pygments/formatters/_mapping.py pygments/lexers/gsql.py chmod -x pygments/formatters/_mapping.py pygments/lexers/gsql.py
%if !%{with test}
%build %build
%pyproject_wheel %pyproject_wheel
@@ -83,7 +94,9 @@ install -Dm0644 doc/pygmentize.1 %{buildroot}%{_mandir}/man1/pygmentize.1
%{python_expand rm -rf %{buildroot}%{$python_sitelib}/tests %{python_expand rm -rf %{buildroot}%{$python_sitelib}/tests
%fdupes %{buildroot}%{$python_sitelib} %fdupes %{buildroot}%{$python_sitelib}
} }
%endif
%if %{with test}
%check %check
# skip test_guess_lexer_modula2 as we have to remove it's depent artifacts # skip test_guess_lexer_modula2 as we have to remove it's depent artifacts
# in exmplefiles because of potential licensing concerns # in exmplefiles because of potential licensing concerns
@@ -91,7 +104,9 @@ install -Dm0644 doc/pygmentize.1 %{buildroot}%{_mandir}/man1/pygmentize.1
# skip random input tests as they get stuck (missing entropy?) # skip random input tests as they get stuck (missing entropy?)
# test_lexer_classes breaks with pytest 8.4. # test_lexer_classes breaks with pytest 8.4.
%pytest -k "not (test_guess_lexer_modula2 or test_random_input or test_lexer_classes)" %pytest -k "not (test_guess_lexer_modula2 or test_random_input or test_lexer_classes)"
%endif
%if !%{with test}
%pre %pre
# If libalternatives is used: Removing old update-alternatives entries. # If libalternatives is used: Removing old update-alternatives entries.
%python_libalternatives_reset_alternative pygmentize %python_libalternatives_reset_alternative pygmentize
@@ -109,5 +124,6 @@ install -Dm0644 doc/pygmentize.1 %{buildroot}%{_mandir}/man1/pygmentize.1
%python_alternative %{_mandir}/man1/pygmentize.1%{ext_man} %python_alternative %{_mandir}/man1/pygmentize.1%{ext_man}
%{python_sitelib}/pygments %{python_sitelib}/pygments
%{python_sitelib}/pygments-%{version}*-info %{python_sitelib}/pygments-%{version}*-info
%endif
%changelog %changelog