python-regex/python-regex.spec
Todd R 4f13089fcd Accepting request 620100 from home:TheBlackCat:branches:devel:languages:python
- Update to 2018.06.21
  * Fixed Regex matches with `re` but not with `regex` module
  * Fixed that the reported positions of fuzzy changes were
    sometimes incorrect.
  * Updated Unicode word and grapheme boundaries for Unicode
    11.0.0, which I had overlooked...
  * Updated to Unicode 11.0.0.
  * Fixed an off-by-one bug where a lazy repeat is followed by a
    character (quick check).
  * Fixed that the Unicode normalization quick check properties
    weren't handled correctly.
  * Further changes to match re module's behaviour on zero-width
    matching for Python 3.7.
  * Added 'fuzzy_changes' attribute to match object to indicate
    positions of changes in fuzzy match.

OBS-URL: https://build.opensuse.org/request/show/620100
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-regex?expand=0&rev=9
2018-07-02 03:29:07 +00:00

66 lines
2.0 KiB
RPMSpec

#
# spec file for package python-regex
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-regex
Version: 2018.06.21
Release: 0
Summary: Alternative regular expression module for Python
License: Python-2.0
Group: Development/Languages/Python
Url: https://bitbucket.org/mrabarnett/mrab-regex
Source: https://files.pythonhosted.org/packages/source/r/regex/regex-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: python-rpm-macros
BuildRequires: python3-testsuite
%python_subpackages
%description
An alternate regex implementation. It differs from "re" in that
* Zero-width matches are handled like in Perl and PCRE:
* ``.split`` will split a string at a zero-width match.
* ``.sub`` will handle zero-width matches correctly.
* Inline flags apply to the end of the group or pattern, and they can
be turned off.
* Nested sets and set operations are supported.
* Case-insensitive matches in Unicode use full case-folding by
default.
%prep
%setup -q -n regex-%{version}
%build
%python_build
%install
%python_install
%check
%{python_expand PYTHONPATH=%{buildroot}%{$python_sitearch}
$python -B %{buildroot}%{$python_sitearch}/test_regex.py
}
%files %{python_files}
%defattr(-,root,root)
%doc README
%doc docs/*
%{python_sitearch}/*
%changelog