Accepting request 520560 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/520560
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-regex?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2017-09-05 13:16:21 +00:00 committed by Git OBS Bridge
commit 0784fe6024
4 changed files with 46 additions and 15 deletions

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
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
- 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 +38,4 @@ Tue Oct 4 16:18:57 UTC 2011 - jw@suse.com
- initial pull from pypi

View File

@ -16,34 +16,47 @@
#
%{?!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
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-devel
BuildRequires: %{python_module devel}
BuildRequires: python-rpm-macros
BuildRequires: python3-testsuite
%python_subpackages
%description
This new regex implementation is intended eventually to
replace Pythons 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}
%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/*

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e45784bbe5a0ce4a954fbc5e0f72909798257241147271d4906bc617fd59261b
size 603244

3
regex-2017.07.28.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:27ab18243b1a0aa1467027be93b118c9fcd60dd2e4020da579fad3008bc4638f
size 607577