python-pyproject-metadata/python-pyproject-metadata-test.patch
Jerry James adadbc0b55 Version 0.7.0.
Verify that license is valid SPDX.
2023-01-17 21:41:38 -07:00

46 lines
1.8 KiB
Diff

--- python-pyproject-metadata-0.7.0/tests/test_standard_metadata.py.orig 2023-01-17 19:01:58.000000000 -0700
+++ python-pyproject-metadata-0.7.0/tests/test_standard_metadata.py 2023-01-17 21:38:11.172958197 -0700
@@ -225,20 +225,6 @@ from .conftest import cd_package
'''),
('Field `project.dependencies` contains item with invalid type, expecting a string (got `99`)'),
),
- (
- textwrap.dedent('''
- [project]
- name = 'test'
- dependencies = [
- 'definitely not a valid PEP 508 requirement!',
- ]
- '''),
- (
- 'Field `project.dependencies` contains an invalid PEP 508 requirement '
- 'string `definitely not a valid PEP 508 requirement!` '
- '(`Expected end or semicolon (after name and no valid version specifier)'
- ),
- ),
# optional-dependencies
(
textwrap.dedent('''
@@ -277,21 +263,6 @@ from .conftest import cd_package
'expecting a PEP 508 requirement string (got `True`)'
),
),
- (
- textwrap.dedent('''
- [project]
- name = 'test'
- [project.optional-dependencies]
- test = [
- 'definitely not a valid PEP 508 requirement!',
- ]
- '''),
- (
- 'Field `project.optional-dependencies.test` contains an invalid '
- 'PEP 508 requirement string `definitely not a valid PEP 508 requirement!` '
- '(`Expected end or semicolon (after name and no valid version specifier)'
- ),
- ),
# requires-python
(
textwrap.dedent('''