forked from pool/python-regex
Compare commits
61 Commits
Author | SHA256 | Date | |
---|---|---|---|
64bce0c62c | |||
d07d678d53 | |||
144499ca61 | |||
9abc877641 | |||
1ace46455e | |||
16690117d2 | |||
4f1f0b13d4 | |||
fab408c0b3 | |||
19d51fc646 | |||
8a4dabdf9f | |||
f7a16e07f9 | |||
8ed0520a78 | |||
24b9fa4126 | |||
1f443c344c | |||
485b2716f0 | |||
46aac253b1 | |||
bbe3d32aa8 | |||
556d02979b | |||
99fc86cea7 | |||
6d59216d87 | |||
02b9ee4877 | |||
8cf6981979 | |||
657904e2c3 | |||
1b4b65a7de | |||
6a40cf24c5 | |||
831c345e3c | |||
c034248187 | |||
951ac7392f | |||
8b62ba92fc | |||
e6443040a5 | |||
2e7eaca18f | |||
ca9c4354d7 | |||
333f5e0160 | |||
5333a71a13 | |||
1bbbd046dd | |||
5eb378a104 | |||
|
a9f9e0a0db | ||
445d5ec747 | |||
940d46cb5c | |||
|
32d7c25f73 | ||
40df4665cf | |||
|
4281634b23 | ||
3ccbe4c9f4 | |||
|
7bdc5361fd | ||
cc78e8e478 | |||
|
f52ee01c7a | ||
5f6a838fd5 | |||
|
c317168b5e | ||
24b1cc3120 | |||
|
d183ac500d | ||
e34e25ffc4 | |||
|
d929270774 | ||
9bc3f13451 | |||
|
4f13089fcd | ||
0784fe6024 | |||
|
5832d55e05 | ||
|
dcdeba13f2 | ||
eff2dd31d8 | |||
67a1724b74 | |||
|
9da90d2b58 | ||
|
c388977b19 |
@@ -1,5 +1,274 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Sep 5 09:18:35 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 2025.9.11:
|
||||||
|
* Git PR 585: Fix AttributeError: 'AnyAll' object has no attribute
|
||||||
|
'_key'
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 9 16:03:02 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
|
||||||
|
|
||||||
|
- 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
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 6 20:28:06 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 2024.5.15:
|
||||||
|
* fix hangs with fuzzy and optionals
|
||||||
|
* Updated for Python 3.13.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 2 08:57:54 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 2024.4.28:
|
||||||
|
* Git issue 527: `VERBOSE`/`X` flag breaks `\N` escapes
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Apr 20 07:43:48 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- updatge to 2024.4.16:
|
||||||
|
* Git issue 525: segfault when fuzzy matching empty list
|
||||||
|
* The escape function no longer escapes \x00. It's not necessary.
|
||||||
|
Inline flags can now be turned off and apply to what follows.
|
||||||
|
Added \R to match line endings.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 4 11:37:39 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 2023.10.10:
|
||||||
|
* Updated to Unicode 15.1.0.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 7 08:18:52 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
|
||||||
|
|
||||||
|
- update to 2023.8.8:
|
||||||
|
* Git issue 508: Regex doesn't build using CPython main
|
||||||
|
(3.13.0a0)
|
||||||
|
* Removed usage of _PyBytes_Join and did a little tidying of
|
||||||
|
the code that makes the result string.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 7 08:11:04 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
|
||||||
|
|
||||||
|
- update to 2023.6.3:
|
||||||
|
* Git issue 498: Conditional negative lookahead inside positive
|
||||||
|
lookahead fails to match
|
||||||
|
* Conditional node needed an additional member that points to
|
||||||
|
the true branch.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun May 14 16:27:30 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 2023.5.5:
|
||||||
|
* Removed semicolon after 'else' in 'munge_name'.
|
||||||
|
* Fixed pyproject.toml and setup.py.
|
||||||
|
* pyproject.toml was missing.
|
||||||
|
* Added pyproject.toml.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 21 12:32:49 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- add sle15_python_module_pythons (jsc#PED-68)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 13 22:44:26 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Make calling of %{sle15modernpython} optional.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 27 07:36:39 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 2023.3.23:
|
||||||
|
* Backtracking failure matching regex
|
||||||
|
* Limit running time for failing fullmatch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 9 18:55:17 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||||
|
|
||||||
|
- update to 2022.10.31
|
||||||
|
* Updated text for supported Unicode and Python versions.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Sep 16 18:28:51 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 2022.9.13:
|
||||||
|
* update to unicode 15.0
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 12 20:17:19 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 2022.9.11:
|
||||||
|
* fix issue 474: regex has no equivalent to re.Match.groups() for captures
|
||||||
|
* fix segmentation fault when using conditional pattern (issue 479)
|
||||||
|
* use \v for vertical spacing
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jul 17 08:17:55 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 2022.7.9:
|
||||||
|
* Fix Emoji classified as letter
|
||||||
|
* Revisit compilation flag to prevent adding a single explicitly compiled regex to cache
|
||||||
|
* Fix Scoped inline flags 'a', 'u', and 'L' affecting global flags
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 14 22:03:41 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||||
|
|
||||||
|
- Update to 2022.6.2
|
||||||
|
* No upstream changelog available
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 24 07:25:05 UTC 2022 - Alberto Planas Dominguez <aplanas@suse.com>
|
||||||
|
|
||||||
|
- Update to 2022.4.24
|
||||||
|
* Many fixes, including drop of Python 2 and improvement of fuzzy
|
||||||
|
test coverage
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Aug 1 09:30:05 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 2021.7.6:
|
||||||
|
* drop-in replacement for python re
|
||||||
|
* fix fuzzy character restrictions not applying to insertions
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun May 9 14:40:45 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 2021.4.4:
|
||||||
|
* Wheels for arm64 mac os
|
||||||
|
* Fix fuzzy matching with wrong distance
|
||||||
|
* Fix regex fails with a quantified backreference
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Mar 13 14:14:36 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 2020.11.13:
|
||||||
|
* Fix Unexpected behavior in fuzzy matching with limited character set
|
||||||
|
* clock() calls for timeout cause slowdown in Docker
|
||||||
|
* Update lis of supported Python versions
|
||||||
|
* licensing change to Apache-2.0
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 7 04:29:20 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
- Update to 2020.9.27
|
||||||
|
* Fuzzy-matching fixes
|
||||||
|
* Fix Memory Error in regex.findall
|
||||||
|
* Added \h as an alias to [[:blank:]].
|
||||||
|
* Improved performance of string sets.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 15 15:25:57 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||||
|
|
||||||
|
- update to 2020.4.4
|
||||||
|
* Updated to Unicode 13.0.0.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 19 10:45:06 UTC 2020 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- version update to 2020.2.20
|
||||||
|
* no upstream changelog found
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 10 10:53:26 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Update to 2019.08.19:
|
||||||
|
* minor fixes
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 22 12:58:43 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Update to 2019.06.08:
|
||||||
|
* minor fixes
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 5 10:52:20 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com>
|
||||||
|
|
||||||
|
- Update to 2019.06.05
|
||||||
|
* Updated for Python 3.8.
|
||||||
|
* Updated to Unicode 12.1.0.
|
||||||
|
* For fullmatch, added check for end/start of string for
|
||||||
|
RE_OP_SUCCESS in try_match.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 14 17:26:10 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Update to 2019.04.14:
|
||||||
|
* no upstream changelog provided
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 2 03:23:26 UTC 2018 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- 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.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
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
|
||||||
|
|
||||||
|
- Update to 2017.06.07
|
||||||
|
* Too many changes to list
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Sep 17 00:36:59 UTC 2016 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Update to 2016.08.27
|
||||||
|
* Too many changes to list
|
||||||
|
- Complete rewrite of the .spec file.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 9 15:44:16 UTC 2012 - froh@suse.com
|
||||||
|
|
||||||
|
- update to current version 0.1.20120506
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Oct 4 16:18:57 UTC 2011 - jw@suse.com
|
Tue Oct 4 16:18:57 UTC 2011 - jw@suse.com
|
||||||
|
|
||||||
- initial pull from pypi
|
- initial pull from pypi
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-regex-regex
|
# spec file for package python-regex
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 jw@suse.de
|
# Copyright (c) 2025 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -12,49 +12,60 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
%define module_name regex
|
|
||||||
|
|
||||||
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-regex
|
Name: python-regex
|
||||||
Version: 0.1.20111004
|
Version: 2025.9.1
|
||||||
Release: 0
|
Release: 0
|
||||||
License: Python Software Foundation License
|
Summary: Alternative regular expression module for Python
|
||||||
Summary: Python library - mrab regex manipulation
|
License: Apache-2.0
|
||||||
Url: https://code.google.com/p/mrab-regex-hg/
|
Group: Development/Languages/Python
|
||||||
Group: Development/Libraries/Python
|
URL: https://github.com/mrabarnett/mrab-regex
|
||||||
Source0: http://pypi.python.org/packages/source/r/regex/regex-0.1.20111004.tar.bz2
|
Source: https://files.pythonhosted.org/packages/source/r/regex/regex-%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
BuildRequires: %{python_module devel}
|
||||||
BuildRoot: %{_tmppath}/%{module_name}-%{version}-build
|
BuildRequires: %{python_module pip}
|
||||||
%{py_requires}
|
BuildRequires: %{python_module pytest}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: python3-testsuite
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A new regex implementation intended eventually to replace Python's current re
|
An alternate regex implementation. It differs from "re" in that
|
||||||
module implementation. For testing and comparison with the current 're'
|
|
||||||
module, the new implementation is in the form of a module called 'regex'.
|
|
||||||
|
|
||||||
Additional features include
|
* Zero-width matches are handled like in Perl and PCRE:
|
||||||
* Approximate "fuzzy" matching
|
* ``.split`` will split a string at a zero-width match.
|
||||||
* Set operators
|
* ``.sub`` will handle zero-width matches correctly.
|
||||||
* Repeated captures
|
* Inline flags apply to the end of the group or pattern, and they can
|
||||||
|
be turned off.
|
||||||
Author: Matthew Barnett
|
* Nested sets and set operations are supported.
|
||||||
|
* Case-insensitive matches in Unicode use full case-folding by
|
||||||
|
default.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{module_name}-%{version}
|
%setup -q -n regex-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__python} setup.py build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
|
%pyproject_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
|
|
||||||
%clean
|
%check
|
||||||
rm -rf %{buildroot}
|
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 -f INSTALLED_FILES
|
%files %{python_files}
|
||||||
%defattr(-,root,root)
|
%license LICENSE.txt
|
||||||
|
%doc README.rst
|
||||||
|
%doc docs
|
||||||
|
%{python_sitearch}/regex
|
||||||
|
%{python_sitearch}/regex-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
||||||
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:bac2b81c6b1bcd72c334623dc572f93a8b2110d0017bd865ab1fdc95e7c2c42a
|
|
||||||
size 1070143
|
|
3
regex-2025.9.1.tar.gz
Normal file
3
regex-2025.9.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:88ac07b38d20b54d79e704e38aa3bd2c0f8027432164226bdee201a1c0c9c9ff
|
||||||
|
size 400852
|
Reference in New Issue
Block a user