-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAINT: remove workarounds for bugs fixed in pyproject-metadata 0.8.0
Update tests to consider only pyproject-metadata 0.8.0 behavior.
- Loading branch information
Showing
4 changed files
with
8 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ description = 'Some package with all of the PEP 621 metadata' | |
readme = 'README.md' | ||
requires-python = '>=3.7' | ||
license = {file = 'LICENSE'} | ||
keywords = ['full', 'metadata'] | ||
keywords = ['full', 'metadata', 'keyword with spaces'] | ||
authors = [ | ||
{email = '[email protected]'}, | ||
{name = 'Jane Doe'} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,12 +31,12 @@ def test_pep621(sdist_full_metadata): | |
with tarfile.open(sdist_full_metadata, 'r:gz') as sdist: | ||
sdist_pkg_info = sdist.extractfile('full_metadata-1.2.3/PKG-INFO').read().decode() | ||
|
||
metadata = re.escape(textwrap.dedent('''\ | ||
metadata = textwrap.dedent('''\ | ||
Metadata-Version: 2.1 | ||
Name: full-metadata | ||
Version: 1.2.3 | ||
Summary: Some package with all of the PEP 621 metadata | ||
Keywords: full metadata | ||
Keywords: full,metadata,keyword with spaces | ||
Home-page: https://example.com | ||
Author: Jane Doe | ||
Author-Email: Unknown <[email protected]> | ||
|
@@ -66,11 +66,9 @@ def test_pep621(sdist_full_metadata): | |
# full-metadata | ||
An example package with all of the PEP 621 metadata! | ||
''')) | ||
''') | ||
|
||
# pyproject-metadata 0.8.0 and later uses a comma to separate keywords | ||
expr = metadata.replace(r'Keywords:\ full\ metadata', r'Keywords:\ full[ ,]metadata') | ||
assert re.fullmatch(expr, sdist_pkg_info) | ||
assert sdist_pkg_info == metadata | ||
|
||
|
||
def test_dynamic_version(sdist_dynamic_version): | ||
|