From 3529e02d1bd0e30aed88c54fbb013342bf25e0d7c99555a0505aca9084d26bb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 4 Feb 2026 13:41:43 +0000 Subject: [PATCH] Accepting request 1330892 from home:mgrossu:branches:devel:languages:python - Add fix_regex.patch: relax regex because of new version of packaging - Add fix_regex.patch: relax regex because of new version of packaging (gh#repo-helper/pyproject-examples#52) OBS-URL: https://build.opensuse.org/request/show/1330892 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyproject-examples?expand=0&rev=5 --- fix_regex.patch | 22 ++++++++++++++++++++++ python-pyproject-examples.changes | 6 ++++++ python-pyproject-examples.spec | 4 +++- 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 fix_regex.patch 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