From dcdeba13f2a482c6151e2c7f7d583d2d2838e0b84ba4bdc26c7ccd70a77bb39f Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 31 Aug 2017 06:20:37 +0000 Subject: [PATCH 1/2] Accepting request 519846 from devel:languages:python:singlespec-staging 1 OBS-URL: https://build.opensuse.org/request/show/519846 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-regex?expand=0&rev=6 --- python-regex.changes | 12 ++++++++++++ python-regex.spec | 19 ++++++++++++++----- regex-2017.06.07.tar.gz | 3 --- regex-2017.07.28.tar.gz | 3 +++ 4 files changed, 29 insertions(+), 8 deletions(-) delete mode 100644 regex-2017.06.07.tar.gz create mode 100644 regex-2017.07.28.tar.gz diff --git a/python-regex.changes b/python-regex.changes index 3be0ae8..3753e4a 100644 --- a/python-regex.changes +++ b/python-regex.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Thu Aug 31 06:19:11 UTC 2017 - toddrme2178@gmail.com + +- Update to 2017.07.28 + * Too many changes to list + +------------------------------------------------------------------- +Thu Aug 24 13:53:27 UTC 2017 - jmatejek@suse.com + +- singlespec auto-conversion + ------------------------------------------------------------------- Fri Jun 16 18:08:36 UTC 2017 - ecsos@opensuse.org @@ -21,3 +32,4 @@ Tue Oct 4 16:18:57 UTC 2011 - jw@suse.com - initial pull from pypi + diff --git a/python-regex.spec b/python-regex.spec index 2f3dd0f..77d8644 100644 --- a/python-regex.spec +++ b/python-regex.spec @@ -16,15 +16,19 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-regex -Version: 2017.06.07 +Version: 2017.07.28 Release: 0 Summary: Alternative regular expression module, to replace re License: Python-2.0 Group: Development/Libraries/Python Url: https://bitbucket.org/mrabarnett/mrab-regex Source: https://files.pythonhosted.org/packages/source/r/regex/regex-%{version}.tar.gz -BuildRequires: python-devel +BuildRequires: %{python_module devel} +BuildRequires: python3-testsuite +BuildRequires: python-rpm-macros +%python_subpackages %description This new regex implementation is intended eventually to @@ -38,12 +42,17 @@ the new implementation is in the form of a module called %setup -q -n regex-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install -%files +%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/* diff --git a/regex-2017.06.07.tar.gz b/regex-2017.06.07.tar.gz deleted file mode 100644 index b731f16..0000000 --- a/regex-2017.06.07.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e45784bbe5a0ce4a954fbc5e0f72909798257241147271d4906bc617fd59261b -size 603244 diff --git a/regex-2017.07.28.tar.gz b/regex-2017.07.28.tar.gz new file mode 100644 index 0000000..34a3471 --- /dev/null +++ b/regex-2017.07.28.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:27ab18243b1a0aa1467027be93b118c9fcd60dd2e4020da579fad3008bc4638f +size 607577 From 5832d55e0577048ce54beab48705dc377135f861915526cf227c676bcba02cb8 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Mon, 4 Sep 2017 05:31:45 +0000 Subject: [PATCH 2/2] 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}