Accepting request 1078284 from home:benoit_monin:branches:devel:languages:python
- update to 2.15.0 - 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 OBS-URL: https://build.opensuse.org/request/show/1078284 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pygments?expand=0&rev=92
This commit is contained in:
parent
2cd5a065fd
commit
d4ae05f938
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b3ed06a9e8ac9a9aae5a6f5dbe78a8a58655d17b43b93c078f094ddc476ae297
|
||||
size 4434562
|
3
Pygments-2.15.0.tar.gz
Normal file
3
Pygments-2.15.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f7e36cffc4c517fbc252861b9a6e4644ca0e5abadf9a113c72d1358ad09b9500
|
||||
size 4818485
|
@ -1,3 +1,63 @@
|
||||
-------------------------------------------------------------------
|
||||
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: 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 <benoit.monin@gmx.fr>
|
||||
|
||||
|
@ -24,17 +24,19 @@
|
||||
%endif
|
||||
|
||||
Name: python-Pygments
|
||||
Version: 2.14.0
|
||||
Version: 2.15.0
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user