- Add fix_regex.patch: relax regex because of new version of packaging (gh#repo-helper/pyproject-examples#52) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyproject-examples?expand=0&rev=5
23 lines
1.1 KiB
Diff
23 lines
1.1 KiB
Diff
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"),
|
|
),
|