diff --git a/Pygments-2.14.0.tar.gz b/Pygments-2.14.0.tar.gz deleted file mode 100644 index cf1f9a8..0000000 --- a/Pygments-2.14.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b3ed06a9e8ac9a9aae5a6f5dbe78a8a58655d17b43b93c078f094ddc476ae297 -size 4434562 diff --git a/Pygments-2.15.1.tar.gz b/Pygments-2.15.1.tar.gz new file mode 100644 index 0000000..8191c31 --- /dev/null +++ b/Pygments-2.15.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8ace4d3c1dd481894b2005f560ead0f9f19ee64fe983366be1a21e171d12775c +size 4819591 diff --git a/python-Pygments.changes b/python-Pygments.changes index d54aebd..b42bed8 100644 --- a/python-Pygments.changes +++ b/python-Pygments.changes @@ -1,3 +1,77 @@ +------------------------------------------------------------------- +Fri Apr 21 12:21:13 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Wed Apr 19 09:06:59 UTC 2023 - Benoît Monin + +- update to 2.15.1: + * Updated lexers: + + Java properties: Fix catastrophic backtracking (#2356, #2404) + * Fix Python console traceback lexing being too strict + and sometimes reordering output (#2407, #2410, #2412) + +------------------------------------------------------------------- +Mon Apr 10 17:49:07 UTC 2023 - Benoît Monin + +- update to 2.15.0: + * Added lexers: + + Carbon (#2362, #2365, #2366, #2367, #2368, #2369, #2370) + + Dax (#2335, #2345) + + MediaWiki Wikitext (#2373, #827) + + PostgreSQL Explain (#2398) + + WGSL (WebGPU Shading Language) (#2386) + + X++ (#2339) + * Updated lexers: + + AMDGPU: Add support for scratch_ instructions, the attr*.* + argument, as well as the off modifier (#2327). + + APDL: Miscellaneous improvements (#2314) + + bash/tcsh: + - Move break to keywords (#2377) + - Improve bash math expansion lexing (#2255, #2353) + + Chapel: Support attributes (#2376) + + CMake: Implement bracket style comments (#2338, #2354) + + CSS: Improve lexing of numbers inside function calls (#2382, + #2383) + + diff: Support normal diff syntax, as opposed to unified diff + syntax (#2321) + + GLSL, HLSL: + - Support line continuations in preprocessor code (#2350) + - Improve preprocessor directive handling (#2357) + + LilyPond: minor update of builtins + + PHP: support attributes (#2055, #2347, #2360), fix anonymous + classes without parameters (#2359), improve lexing of + variable variable syntax (#2358) + + Python: + - Add missing builtins (#2334) + - Fix inconsistent lexing of None (#2406) + + Rebol/Red: Don’t require script headers (#2348, #2349) + + Spice: Update keywords (#2336) + + SQL+Jinja (analyse_text method): Fix catastrophic + backtracking (#2355) + + Terraform: Add hcl alias (#2375) + * Declare support for Python 3.11 and drop support for Python 3.6 + (#2324). + * Update native style to improve contrast (#2325). + * Update github-dark` style to match latest Primer style (#2401) + * Revert a change that made guessing lexers based on file names + slower on Python 3.10 and older (#2328). + * Fix some places where a locale-dependent encoding could + unintentionally be used instead of UTF-8 (#2326). + * Fix Python traceback handling (#2226, #2329). + * Groff formatter: sort color definitions for reproducibility + (#2343) + * Move project metadata to pyproject.toml, remove setup.py and + setup.cfg (#2342) + * The top-level Makefile has been removed. +- increase required python version to 3.7 +- set a minimum version for setuptools to match the requirement + from upstream +- since setup.py is gone: + * require pip and wheel to build + * use pyproject macros to build and install + ------------------------------------------------------------------- Mon Jan 2 13:54:50 UTC 2023 - Benoît Monin diff --git a/python-Pygments.spec b/python-Pygments.spec index ee1b5a0..3fa38a7 100644 --- a/python-Pygments.spec +++ b/python-Pygments.spec @@ -22,19 +22,21 @@ %else %bcond_with libalternatives %endif - +%{?sle15_python_module_pythons} Name: python-Pygments -Version: 2.14.0 +Version: 2.15.1 Release: 0 Summary: A syntax highlighting package written in Python License: BSD-2-Clause Group: Development/Languages/Python URL: https://pygments.org Source: https://files.pythonhosted.org/packages/source/P/Pygments/Pygments-%{version}.tar.gz -BuildRequires: %{python_module base >= 3.6} +BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest >= 7} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module setuptools >= 61} BuildRequires: %{python_module wcag-contrast-ratio} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros >= 20210929 # Preferred for plugin loading, see https://pygments.org/docs/plugins/ @@ -69,10 +71,10 @@ source code. Highlights are: %autosetup -n Pygments-%{version} -p1 %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install install -Dm0644 doc/pygmentize.1 %{buildroot}%{_mandir}/man1/pygmentize.1 %python_clone -a %{buildroot}%{_bindir}/pygmentize %python_clone -a %{buildroot}%{_mandir}/man1/pygmentize.1