forked from pool/python-regex
- Update to 2024.11.06:
* Git issue 546: Partial match not working in some instances with non-greedy capture - from 2024.9.14: * Reverted to actions/download-artifact@v3 and actions/upload-artifact@v3 in main.yml because GitHub Actions failed when using them. - from 2024.9.13: * Updated to actions/upload-artifact@v4 in main.yml. - from 2024.9.12: * Updated to actions/download-artifact@v4 in main.yml. - from 2024.9.11: * Updated to Unicode 16.0.0. - from 2024.7.24: * Git issue 539: Bug: Partial matching fails on a simple example - from 2024.6.22: * Git issue 535: Regex fails Unicode 15.1 GraphemeBreakTest due to missing new GB9c rule implementation OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-regex?expand=0&rev=58
This commit is contained in:
71
python-regex.spec
Normal file
71
python-regex.spec
Normal file
@@ -0,0 +1,71 @@
|
||||
#
|
||||
# spec file for package python-regex
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# 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 https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-regex
|
||||
Version: 2024.11.6
|
||||
Release: 0
|
||||
Summary: Alternative regular expression module for Python
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/mrabarnett/mrab-regex
|
||||
Source: https://files.pythonhosted.org/packages/source/r/regex/regex-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
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
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
|
||||
%check
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
# test_main invokes unittest.main, which raises SystemExit, which fails on pytest.
|
||||
%pytest_arch %{buildroot}%{$python_sitearch}/regex -k 'not test_main'
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
%doc README.rst
|
||||
%doc docs
|
||||
%{python_sitearch}/regex
|
||||
%{python_sitearch}/regex-%{version}.dist-info
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user