16
0

Accepting request 1330963 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1330963
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyproject-examples?expand=0&rev=3
This commit is contained in:
2026-02-05 16:57:15 +00:00
committed by Git OBS Bridge
3 changed files with 31 additions and 1 deletions

22
fix_regex.patch Normal file
View File

@@ -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"),
),

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Feb 4 09:40:11 UTC 2026 - Marius Grossu <marius.grossu@suse.com>
- 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 <ecsos@opensuse.org>

View File

@@ -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