15
0

- 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/package/show/devel:languages:python/python-Pygments?expand=0&rev=57
This commit is contained in:
Tomáš Chvátal
2019-06-04 14:04:44 +00:00
committed by Git OBS Bridge
parent 7b5b0aea36
commit 8ab74062fa
4 changed files with 23 additions and 8 deletions

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