Accepting request 1083107 from devel:languages:python

- add sle15_python_module_pythons (jsc#PED-68)

- 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)

- 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:

OBS-URL: https://build.opensuse.org/request/show/1083107
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pygments?expand=0&rev=40
This commit is contained in:
Dominique Leuenberger 2023-05-03 10:56:13 +00:00 committed by Git OBS Bridge
commit 9ddade1d98
4 changed files with 85 additions and 9 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b3ed06a9e8ac9a9aae5a6f5dbe78a8a58655d17b43b93c078f094ddc476ae297
size 4434562

BIN
Pygments-2.15.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,77 @@
-------------------------------------------------------------------
Fri Apr 21 12:21:13 UTC 2023 - Dirk Müller <dmueller@suse.com>
- add sle15_python_module_pythons (jsc#PED-68)
-------------------------------------------------------------------
Wed Apr 19 09:06:59 UTC 2023 - Benoît Monin <benoit.monin@gmx.fr>
- 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 <benoit.monin@gmx.fr>
- 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: Dont 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 <benoit.monin@gmx.fr>

View File

@ -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