Accepting request 707618 from devel:languages:python

- Update to 2.4.2:
  - Fix encoding error when guessing lexer with given ``encoding`` option
    (#1438)
  - Updated lexers:
    * Coq (#1430)
    * MSDOS Session (PR#734)
    * NASM (#1517)
    * Objective-C (PR#813, #1508)
    * Prolog (#1511)
    * TypeScript (#1515)
  - Support CSS variables in stylesheets (PR#814, #1356)
  - Fix F# lexer name (PR#709)
  - Fix ``TerminalFormatter`` using bold for bright text (#1480)

OBS-URL: https://build.opensuse.org/request/show/707618
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pygments?expand=0&rev=28
This commit is contained in:
Dominique Leuenberger 2019-06-07 10:18:09 +00:00 committed by Git OBS Bridge
commit d3743d723f
4 changed files with 23 additions and 8 deletions

View File

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

3
Pygments-2.4.2.tar.gz Normal file
View File

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

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
Tue Jun 4 14:03:15 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 2.4.2:
- Fix encoding error when guessing lexer with given ``encoding`` option
(#1438)
- Updated lexers:
* Coq (#1430)
* MSDOS Session (PR#734)
* NASM (#1517)
* Objective-C (PR#813, #1508)
* Prolog (#1511)
* TypeScript (#1515)
- Support CSS variables in stylesheets (PR#814, #1356)
- Fix F# lexer name (PR#709)
- Fix ``TerminalFormatter`` using bold for bright text (#1480)
-------------------------------------------------------------------
Mon May 20 18:43:33 UTC 2019 - Todd R <toddrme2178@gmail.com>

View File

@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-Pygments
Version: 2.4.0
Version: 2.4.2
Release: 0
Summary: A syntax highlighting package written in Python
License: BSD-2-Clause
@ -68,7 +68,7 @@ rm tests/examplefiles/{Sorting,test}.mod
%{python_expand %$python_install
mv %{buildroot}%{_bindir}/pygmentize %{buildroot}%{_bindir}/pygmentize-%{$python_bin_suffix}
rm -rf %{buildroot}%{$python_sitelib}/tests
%fdupes -s %{buildroot}%{$python_sitelib}
%fdupes %{buildroot}%{$python_sitelib}
%if "%{python3_bin_suffix}" != ""
install -Dm0644 doc/pygmentize.1 %{buildroot}%{_mandir}/man1/pygmentize.1
%endif
@ -83,9 +83,7 @@ install -Dm0644 doc/pygmentize.1 %{buildroot}%{_mandir}/man1/pygmentize.1
%python_install_alternative pygmentize
%check
# export PYTHONDEBUG=1
export PYTHONPATH=tests
%python_expand py.test-%{$python_bin_suffix} --disable-warnings -v tests
%pytest
%files %{python_files}
%license LICENSE