Skip to content

Commit

Permalink
Sort metadata fields in test more rigorously
Browse files Browse the repository at this point in the history
  • Loading branch information
dnicolodi committed Nov 25, 2024
1 parent 9870c8b commit 3bc839b
Showing 1 changed file with 27 additions and 28 deletions.
55 changes: 27 additions & 28 deletions tests/test_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,52 +173,51 @@ def test_package_safe_name_is_correct(pkg_name, expected_name):

def test_metadata_dictionary_keys():
assert set(package_file.PackageMetadata.__annotations__) == {
# identify release
# Metadata 1.0 - PEP 241
"metadata_version",
"name",
"version",
# file content
"filetype",
"pyversion",
# additional meta-data
"metadata_version",
"platforms",
"summary",
"description",
"keywords",
"home_page",
"author",
"author_email",
"maintainer",
"maintainer_email",
"license",
"description",
"keywords",
"platforms",
"classifiers",
"download_url",
# Metadata 1.1 - PEP 314
"supported_platforms",
"comment",
"md5_digest",
"sha256_digest",
"blake2_256_digest",
"gpg_signature",
"attestations",
# PEP 314
"download_url",
"classifiers",
"provides",
"requires",
"obsoletes",
# Metadata 1.2
"project_urls",
# Metadata 1.2 - PEP 345
"maintainer",
"maintainer_email",
"requires_dist",
"provides_dist",
"obsoletes_dist",
"requires_dist",
"requires_external",
"requires_python",
# Metadata 2.1
"provides_extra",
"requires_external",
"project_urls",
# Metadata 2.1 - PEP 566
"description_content_type",
# Metadata 2.2
"provides_extra",
# Metadata 2.2 - PEP 643
"dynamic",
# Metadata 2.4
# Metadata 2.4 - PEP 639
"license_expression",
"license_files",
# additional meta-data
"filetype",
"pyversion",
"comment",
"md5_digest",
"sha256_digest",
"blake2_256_digest",
"gpg_signature",
"attestations",
}


Expand Down

0 comments on commit 3bc839b

Please sign in to comment.