forked from pool/python-Pygments
Compare commits
18 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 710dcf7144 | |||
| fb6fd9bc45 | |||
| 38b665f89c | |||
| 709380b11c | |||
| 157f195a11 | |||
| 26c9019df4 | |||
| f8eedab652 | |||
|
|
dcf7ab8331 | ||
|
|
625bb98fb6 | ||
| 4b04594242 | |||
| 1e3a45b8ac | |||
| 3611a3bc52 | |||
| 965a93db19 | |||
| 6c476ed6d2 | |||
| f544e30964 | |||
| 3473806d2f | |||
| e3c91fb8b2 | |||
| ceb19f606c |
3
_multibuild
Normal file
3
_multibuild
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
||||||
BIN
pygments-2.18.0.tar.gz
LFS
BIN
pygments-2.18.0.tar.gz
LFS
Binary file not shown.
3
pygments-2.19.2.tar.gz
Normal file
3
pygments-2.19.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:636cb2477cec7f8952536970bc533bc43743542f70392ae026374600add5b887
|
||||||
|
size 4968631
|
||||||
@@ -1,3 +1,110 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
||||||
|
|
||||||
|
- Skip testcase that breaks with pytest 8.4.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jun 21 15:48:13 UTC 2025 - Benoît Monin <benoit.monin@gmx.fr>
|
||||||
|
|
||||||
|
- update to version 2.19.2:
|
||||||
|
* Lua: Fix regression introduced in 2.19.0 (#2882, #2839)
|
||||||
|
- skip random input tests because they get stuck from time to time
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 14 07:19:25 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Redownload source file to have the same version released in pypi.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 10 17:25:50 UTC 2025 - Guang Yee <gyee@suse.com>
|
||||||
|
|
||||||
|
- 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
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 23 11:20:48 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Drop dependency on ca-certificates-mozilla-prebuilt to really
|
||||||
|
avoid buildcycles
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 6 18:00:26 UTC 2025 - Benoît Monin <benoit.monin@gmx.fr>
|
||||||
|
|
||||||
|
- update to version 2.19.1:
|
||||||
|
* Ini: Fix quoted string regression introduced in 2.19.0
|
||||||
|
* Lua: Fix a regression introduced in 2.19.0
|
||||||
|
- additional changes from version 2.19.0:
|
||||||
|
* New lexers:
|
||||||
|
+ CodeQL (#2819)
|
||||||
|
+ Debian Sources (#2788, #2747)
|
||||||
|
+ Gleam (#2662)
|
||||||
|
+ GoogleSQL (#2820, #2814)
|
||||||
|
+ JSON5 (#2734, #1880)
|
||||||
|
+ Maple (#2763, #2548)
|
||||||
|
+ NumbaIR (#2433)
|
||||||
|
+ PDDL (#2799, #2616)
|
||||||
|
+ Rego (#2794)
|
||||||
|
+ TableGen (#2751)
|
||||||
|
+ Vue.js (#2832)
|
||||||
|
* Updated lexers:
|
||||||
|
+ BQN: Various improvements (#2789)
|
||||||
|
+ C#: Fix number highlighting (#986, #2727), add ``file``
|
||||||
|
keyword (#2726, #2805, #2806), add various other keywords
|
||||||
|
(#2745, #2770)
|
||||||
|
+ CSS: Add ``revert`` (#2766, #2775)
|
||||||
|
+ Debian control: Add ``Change-By`` field (#2757)
|
||||||
|
+ Elip: Improve punctuation handling (#2651)
|
||||||
|
+ Igor: Add ``int`` (#2801)
|
||||||
|
+ Ini: Fix quoted strings with embedded comment characters
|
||||||
|
(#2767, #2720)
|
||||||
|
+ Java: Support functions returning types containing a question
|
||||||
|
mark (#2737)
|
||||||
|
+ JavaScript: Support private identiiers (#2729, #2671)
|
||||||
|
+ LLVM: Add ``splat``, improve floating-point number parsing
|
||||||
|
(#2755)
|
||||||
|
+ Lua: Improve variable detection, add built-in functions
|
||||||
|
(#2829)
|
||||||
|
+ Macaulay2: Update to 1.24.11 (#2800)
|
||||||
|
+ PostgreSQL: Add more ``EXPLAIN`` keywords (#2785),
|
||||||
|
handle ``/`` (#2774)
|
||||||
|
+ S-Lexer: Fix keywords (#2082, #2750)
|
||||||
|
+ TransactSQL: Fix single-line comments (#2717)
|
||||||
|
+ Turtle: Fix triple quoted strings (#2744, #2758)
|
||||||
|
+ Typst: Various improvements (#2724)
|
||||||
|
+ Various: Add ``^`` as an operator to Matlab, Octave and
|
||||||
|
Scilab (#2798)
|
||||||
|
+ Vyper: Add ``staticcall`` and ``extcall`` (#2719)
|
||||||
|
* Mark file extensions for ``HTML/XML+Evoque`` as aliases (#2743)
|
||||||
|
* Add a color for ``Operator.Word`` to the ``rrt`` style (#2709)
|
||||||
|
* Fix broken link in the documentation (#2803, #2804)
|
||||||
|
* Drop executable bit where not needed (#2781)
|
||||||
|
* Reduce Mojo priority relative to Python in ``analyze_text´`
|
||||||
|
(#2771, #2772)
|
||||||
|
* Fix documentation builds (#2712)
|
||||||
|
* Match example file names to the lexer's name (#2713, #2715)
|
||||||
|
* Ensure lexer metadata is present (#2714)
|
||||||
|
* Search more directories on macOS for fonts (#2809)
|
||||||
|
* Improve test robustness (#2812)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Aug 3 11:42:54 UTC 2024 - Benoît Monin <benoit.monin@gmx.fr>
|
||||||
|
|
||||||
|
- fix build by forcing pip to use the prebuilt CA bundle
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 11 14:24:45 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- add buildignores to avoid bootstrap buildcycle
|
||||||
|
p11-kit/gtk-doc/python-Pygments which comes via
|
||||||
|
pip/ca-certificates
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon May 6 14:52:55 UTC 2024 - Benoît Monin <benoit.monin@gmx.fr>
|
Mon May 6 14:52:55 UTC 2024 - Benoît Monin <benoit.monin@gmx.fr>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-Pygments
|
# spec file for package python-Pygments
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 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,42 +16,53 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
#
|
%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.18.0
|
Version: 2.19.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A syntax highlighting package written in Python
|
Summary: A syntax highlighting package written in Python
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://pygments.org
|
URL: https://pygments.org
|
||||||
Source: https://files.pythonhosted.org/packages/source/P/Pygments/pygments-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pygments/pygments-%{version}.tar.gz
|
||||||
# PATCH-FIX-UPSTREAM skip-wcag-contrast-ratio.patch gh#pygments/pygments!2564 mcepl@suse.com
|
# PATCH-FIX-UPSTREAM skip-wcag-contrast-ratio.patch gh#pygments/pygments!2564 mcepl@suse.com
|
||||||
# Don't make wcag-contrast-ratio mandatory for testing
|
# Don't make wcag-contrast-ratio mandatory for testing
|
||||||
Patch0: skip-wcag-contrast-ratio.patch
|
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-tools
|
||||||
|
Provides: python-pygments = %{version}
|
||||||
|
Obsoletes: python-pygments < %{version}
|
||||||
|
BuildArch: noarch
|
||||||
%if %{with libalternatives}
|
%if %{with libalternatives}
|
||||||
Requires: alts
|
|
||||||
BuildRequires: alts
|
BuildRequires: alts
|
||||||
|
Requires: alts
|
||||||
%else
|
%else
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
%endif
|
%endif
|
||||||
Provides: python-pygments = %{version}
|
|
||||||
Obsoletes: python-pygments < %{version}
|
|
||||||
BuildArch: noarch
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -71,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
|
||||||
|
|
||||||
@@ -82,10 +94,19 @@ 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
|
||||||
%pytest
|
# skip test_guess_lexer_modula2 as we have to remove it's depent artifacts
|
||||||
|
# in exmplefiles because of potential licensing concerns
|
||||||
|
# See https://github.com/pygments/pygments/issues/2872
|
||||||
|
# skip random input tests as they get stuck (missing entropy?)
|
||||||
|
# test_lexer_classes breaks with pytest 8.4.
|
||||||
|
%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
|
||||||
@@ -103,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
|
||||||
|
|||||||
Reference in New Issue
Block a user