diff --git a/fix_regex.patch b/fix_regex.patch new file mode 100644 index 0000000..d2f54b0 --- /dev/null +++ b/fix_regex.patch @@ -0,0 +1,22 @@ +Index: pyproject_examples-2023.6.30/pyproject_examples/__init__.py +=================================================================== +--- pyproject_examples-2023.6.30.orig/pyproject_examples/__init__.py ++++ pyproject_examples-2023.6.30/pyproject_examples/__init__.py +@@ -159,7 +159,7 @@ bad_pep621_config = [ + pytest.param( + f'{MINIMAL_CONFIG}\ndependencies = ["foo]]]"]', + InvalidRequirement, +- r"'foo]]]'\n Expected end or semicolon \(after name and no valid version specifier\)\n foo]]]\n \^", ++ r"'foo]]]'.*", + id="dependencies_invalid_requirement", + marks=pytest.mark.skipif(sys.version_info < (3, 7), reason="Error differs on 3.6"), + ), +@@ -243,7 +243,7 @@ bad_buildsystem_config = [ + pytest.param( + '[build-system]\nrequires = ["foo]]]"]', + InvalidRequirement, +- r"'foo]]]'\n Expected end or semicolon \(after name and no valid version specifier\)\n foo]]]\n \^", ++ r"'foo]]]'.*", + id="requires_invalid_requirement", + marks=pytest.mark.skipif(sys.version_info < (3, 7), reason="Error differs on 3.6"), + ), diff --git a/python-pyproject-examples.changes b/python-pyproject-examples.changes index 74bea7a..003df07 100644 --- a/python-pyproject-examples.changes +++ b/python-pyproject-examples.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Feb 4 09:40:11 UTC 2026 - Marius Grossu + +- Add fix_regex.patch: relax regex because of new version of packaging + (gh#repo-helper/pyproject-examples#52) + ------------------------------------------------------------------- Thu Feb 27 10:00:28 UTC 2025 - ecsos diff --git a/python-pyproject-examples.spec b/python-pyproject-examples.spec index 5c8de16..75d38ff 100644 --- a/python-pyproject-examples.spec +++ b/python-pyproject-examples.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyproject-examples # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,6 +24,8 @@ Summary: Example pyproject.toml configs for testing License: MIT URL: https://github.com/repo-helper/pyproject-examples Source: https://files.pythonhosted.org/packages/source/p/pyproject-examples/pyproject_examples-%{version}.tar.gz +# PATCH-FIX-UPSTREAM fix_regex.patch -- based on PR +Patch0: fix_regex.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module whey} BuildRequires: fdupes