From 5832d55e0577048ce54beab48705dc377135f861915526cf227c676bcba02cb8 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Mon, 4 Sep 2017 05:31:45 +0000 Subject: [PATCH] Accepting request 520332 from home:jengelh:branches:devel:languages:python - Specify in description what makes regex worthwhile to have. Fix RPM group. OBS-URL: https://build.opensuse.org/request/show/520332 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-regex?expand=0&rev=7 --- python-regex.changes | 6 ++++++ python-regex.spec | 20 ++++++++++++-------- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/python-regex.changes b/python-regex.changes index 3753e4a..62d54be 100644 --- a/python-regex.changes +++ b/python-regex.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Sep 2 09:22:13 UTC 2017 - jengelh@inai.de + +- Specify in description what makes regex worthwhile to have. + Fix RPM group. + ------------------------------------------------------------------- Thu Aug 31 06:19:11 UTC 2017 - toddrme2178@gmail.com diff --git a/python-regex.spec b/python-regex.spec index 77d8644..971c17f 100644 --- a/python-regex.spec +++ b/python-regex.spec @@ -20,23 +20,27 @@ Name: python-regex Version: 2017.07.28 Release: 0 -Summary: Alternative regular expression module, to replace re +Summary: Alternative regular expression module for Python License: Python-2.0 -Group: Development/Libraries/Python +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: python3-testsuite BuildRequires: python-rpm-macros +BuildRequires: python3-testsuite %python_subpackages %description -This new regex implementation is intended eventually to -replace Python’s current re module implementation. +An alternate regex implementation. It differs from "re" in that -For testing and comparison with the current 're' module -the new implementation is in the form of a module called -'regex'. +* 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}