14
0

- Update to 2.3.1:

* Update lexers
  * Minimum Python versions changed to 2.7 and 3.5
  *  Added support for Python 3.7 generator changes (PR#772)
  * Fix incorrect token type in SCSS for single-quote strings (#1322)
  * Use `terminal256` formatter if `TERM` contains `256` (PR#666)
  * Fix incorrect handling of GitHub style fences in Markdown (PR#741, #1389)
  * Fix `%a` not being highlighted in Python3 strings (PR#727)
- Drop patch python_37.diff which was merged upstream
- Refresh patch denose.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pygments?expand=0&rev=50
This commit is contained in:
Tomáš Chvátal
2019-02-11 11:15:42 +00:00
committed by Git OBS Bridge
parent 3318ee464e
commit 2cc7d8a540
6 changed files with 40 additions and 51 deletions

View File

@@ -18,19 +18,18 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-Pygments
Version: 2.2.0
Version: 2.3.1
Release: 0
Summary: Pygments is a syntax highlighting package written in Python
License: BSD-2-Clause
Group: Development/Languages/Python
URL: http://pygments.org
Source: https://files.pythonhosted.org/packages/source/P/Pygments/Pygments-%{version}.tar.gz
Patch0: python_37.diff
Patch1: denose.patch
BuildRequires: %{python_module setuptools}
# We need pytest just because of its test runner, it seems even
# python3 stdlib unittest runner doesn't work
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-setuptools
@@ -59,6 +58,7 @@ source code. Highlights are:
%prep
%setup -q -n Pygments-%{version}
%autopatch -p1
# Remove non-oss licensed files, see bnc# 760344
rm tests/examplefiles/{Sorting,test}.mod