From 43704b1169dbc689048289f6f4460a2b5db68bc51713b60378822f568a82ecf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 11 Jun 2025 11:30:06 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rebulk?expand=0&rev=34 --- .gitattributes | 23 ++++++ .gitignore | 1 + python-rebulk.changes | 170 ++++++++++++++++++++++++++++++++++++++++++ python-rebulk.spec | 70 +++++++++++++++++ rebulk-3.2.0.tar.gz | 3 + 5 files changed, 267 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-rebulk.changes create mode 100644 python-rebulk.spec create mode 100644 rebulk-3.2.0.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-rebulk.changes b/python-rebulk.changes new file mode 100644 index 0000000..993afaa --- /dev/null +++ b/python-rebulk.changes @@ -0,0 +1,170 @@ +------------------------------------------------------------------- +Wed Jun 11 11:29:44 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Sat Feb 18 09:30:28 UTC 2023 - Luigi Baldoni + +- Update to version 3.2.0 + Features: + * dependencies: Add python 3.11 support and drop python 3.6 + support. + Fixes: + * Remove pytest-runner from setup_requires. + +------------------------------------------------------------------- +Tue Dec 7 19:42:56 UTC 2021 - pgajdos@suse.com + +- do not require pytest-runner for build, it is not needed + +------------------------------------------------------------------- +Fri Nov 5 05:38:42 UTC 2021 - Luigi Baldoni + +- Update to version 3.1.0 + * defaults: Add overrides support + * python: Add python 3.10 support, drop python 3.5 support + +------------------------------------------------------------------- +Sat Dec 26 10:13:50 UTC 2020 - Luigi Baldoni + +- Update to version 3.0.1 + * Fix broken package No such file or directory: 'CHANGELOG.md' + +------------------------------------------------------------------- +Thu Dec 24 09:55:48 UTC 2020 - Luigi Baldoni + +- Update to version 3.0.0 + * regex: Replace REGEX_DISABLED environment variable with + REBULK_REGEX_ENABLED + * Add python 3.8/3.9 support, drop python 2.7/3.4 support + * regex module is now disabled by default, even if it's + available in the python interpreter. You have to set + REBULK_REGEX_ENABLED=1 in your environment to enable it, + as this module may cause some issues. + +------------------------------------------------------------------- +Sat May 2 07:49:27 UTC 2020 - Luigi Baldoni + +- Update to version 2.0.1 + * Drop python 3.4 support + * Fix errors when regex module is available + * Cleanup chain matching code +- Drop fix-for-regex-2020.1.7.patch (merged upstream) + +------------------------------------------------------------------- +Tue Apr 21 09:54:25 UTC 2020 - Antonio Larrosa + +- Add patch to fix an incompatible change introduced in + python-regex 2020.1.7, where unused arguments now raise an + exception: + * fix-for-regex-2020.1.7.patch +- Use %pytest in %check section + +------------------------------------------------------------------- +Mon Oct 14 14:40:59 UTC 2019 - Matej Cepl + +- Replace %fdupes -s with plain %fdupes; hardlinks are better. + +------------------------------------------------------------------- +Fri Aug 30 07:40:35 UTC 2019 - Luigi Baldoni + +- Update to version 2.0.0 + * Add named method to Match class + * Add tagged method to Match class + * Enhance defaults feature + * Some code refactoring and bugfixes + * BREAKING CHANGE: This change how chain **kwargs and + .defaults() is transmitted to chained patterns, so upgrades + should be performed with care. + Chain **kwargs are now only used inside chain pattern itself, + and doesn't implicitly set chain .defaults() anymore. You + may have to repeat some chain **kwargs to its own .defaults() + for Rebulk to behave as before, or set them accordingly to + chained patterns. + +------------------------------------------------------------------- +Tue Aug 13 07:55:28 UTC 2019 - Luigi Baldoni + +- Re-enable debug test + +------------------------------------------------------------------- +Mon Aug 12 21:00:04 UTC 2019 - Luigi Baldoni + +- Update to version 1.0.1 + * Add python 3.8-dev support and make debug tests asserts less + strict + +------------------------------------------------------------------- +Tue Dec 4 12:53:35 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Sat Oct 13 05:58:00 UTC 2018 - aloisio@gmx.com + +- Update to version 1.0.0 + * Add python 3.7 support + +------------------------------------------------------------------- +Fri Sep 7 08:32:08 UTC 2018 - Jan Engelhardt + +- Trim name repetition in summary. Ensure neutrality of + description. + +------------------------------------------------------------------- +Mon Sep 3 08:57:02 UTC 2018 - Tomáš Chvátal + +- Write up the tests syntax to match up rest python packages + +------------------------------------------------------------------- +Sat Sep 1 11:11:27 UTC 2018 - aloisio@gmx.com + +- Update to version 0.9.0 + * Fix pylint issues + * Refactor Matches to_dict() method for better API + +- Enabled tests + +------------------------------------------------------------------- +Tue Mar 28 20:53:53 UTC 2017 - aloisio@gmx.com + +- Converted to single-spec +- Dropped python-rebulk-rpmlintrc + +------------------------------------------------------------------- +Thu Dec 15 15:14:53 UTC 2016 - aloisio@gmx.com + +- Update to version 0.8.2 + * Remove fake usage of kwargs, in favor of pylint local ignore + * Merge pull request #8 from ratoaq2/feature/performance-improvements + * Handle unused kwargs + * Performance improvements + + changes since version 0.8.1: + * Avoid dict comprehension (unsupported in Python 2.6) + * Fix unit tests + + changes since version 0.8.0: + * Add chain_breaker option to implement dynamic breaking of chain patterns + * Add pattern post processor + + changes since version 0.7.7: + * Remove twine workaround for zest releaser + * Fix chain patterns not properly detected in certain scenarios + +------------------------------------------------------------------- +Fri Sep 9 08:05:43 UTC 2016 - aloisio@gmx.com + +- update to version 0.7.3: + * Fix pylint issue + * Add initiator value in matches logs + * Use string representation for Regexp Pattern + * Fix missing parent on matches generated by chain() + * Add more logs for conflict solving + +------------------------------------------------------------------- +Mon Apr 25 13:41:36 UTC 2016 - aloisio@gmx.com + +- Initial version 0.7.1 + diff --git a/python-rebulk.spec b/python-rebulk.spec new file mode 100644 index 0000000..2516cc7 --- /dev/null +++ b/python-rebulk.spec @@ -0,0 +1,70 @@ +# +# spec file for package python-rebulk +# +# 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/ +# + + +Name: python-rebulk +Version: 3.2.0 +Release: 0 +Summary: Library for defining bulk search patterns to perform advanced string matching +License: MIT +URL: https://github.com/Toilal/rebulk +Source0: https://files.pythonhosted.org/packages/source/r/rebulk/rebulk-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Recommends: python-regex +BuildArch: noarch +%python_subpackages + +%description +ReBulk is a Python library that performs advanced searches in +strings that would be hard to implement using the re module or +String methods only. + +It includes some features like Patterns, Match, Rule that +allow building a custom and complex string matcher. + +%prep +%autosetup -n rebulk-%{version} +# Remove shebang from non-executable files +for i in {'builder','chain','debug','formatters','__init__','introspector','loose','match','pattern','processors','rebulk','remodule','rules','toposort','utils','validators','__version__'}; do + sed -i -e "1d" "rebulk/$i.py" +done +for i in {'default_rules_module','__init__','rebulk_rules_module','rules_module','test_chain','test_debug','test_introspector','test_loose','test_match','test_pattern','test_processors','test_rebulk','test_rules','test_toposort','test_validators'}; do + sed -i -e "1d" "rebulk/test/$i.py" +done + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest rebulk/test/ + +%files %{python_files} +%doc CHANGELOG.md README.md +%license LICENSE +%{python_sitelib}/rebulk +%{python_sitelib}/rebulk-%{version}*-info + +%changelog diff --git a/rebulk-3.2.0.tar.gz b/rebulk-3.2.0.tar.gz new file mode 100644 index 0000000..0bc4b66 --- /dev/null +++ b/rebulk-3.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d30bf80fca00fa9c697185ac475daac9bde5f646ce3338c9ff5d5dc1ebdfebc +size 261685