Skip to content

Commit

Permalink
Merge pull request #1066 from javanlacerda/javan.fix.provides-extra
Browse files Browse the repository at this point in the history
Updates provides_extras to provides_extra to be consistent with pypi upload server
  • Loading branch information
sigmavirus24 committed Mar 24, 2024
2 parents b67075f + 637a6c0 commit 49b056b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/test_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def test_metadata_dictionary_keys():
"requires_external",
"requires_python",
# Metadata 2.1
"provides_extras",
"provides_extra",
"description_content_type",
# Metadata 2.2
"dynamic",
Expand Down Expand Up @@ -268,7 +268,7 @@ def test_metadata_dictionary_values(gpg_signature):
assert result["requires_python"] == meta.requires_python

# Metadata 2.1
assert result["provides_extras"] == meta.provides_extras
assert result["provides_extra"] == meta.provides_extras
assert result["description_content_type"] == meta.description_content_type

# Metadata 2.2
Expand Down
2 changes: 1 addition & 1 deletion twine/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def metadata_dictionary(self) -> Dict[str, MetadataValue]:
"requires_external": meta.requires_external,
"requires_python": meta.requires_python,
# Metadata 2.1
"provides_extras": meta.provides_extras,
"provides_extra": meta.provides_extras,
"description_content_type": meta.description_content_type,
# Metadata 2.2
"dynamic": meta.dynamic,
Expand Down

0 comments on commit 49b056b

Please sign in to comment.