|
|
InvalidMetadata | _invalid_metadata (self, str msg, Exception|None cause=None) |
| |
|
_MetadataVersion | _process_metadata_version (self, str value) |
| |
|
str | _process_name (self, str value) |
| |
|
version_module.Version | _process_version (self, str value) |
| |
| str | _process_summary (self, str value) |
| |
|
str | _process_description_content_type (self, str value) |
| |
|
list[str] | _process_dynamic (self, list[str] value) |
| |
|
list[utils.NormalizedName] | _process_provides_extra (self, list[str] value) |
| |
|
specifiers.SpecifierSet | _process_requires_python (self, str value) |
| |
|
list[requirements.Requirement] | _process_requires_dist (self, list[str] value) |
| |
|
NormalizedLicenseExpression|None | _process_license_expression (self, str value) |
| |
|
list[str] | _process_license_files (self, list[str] value) |
| |
Validate a metadata field.
All _process_*() methods correspond to a core metadata field. The method is
called with the field's raw value. If the raw value is valid it is returned
in its "enriched" form (e.g. ``version.Version`` for the ``Version`` field).
If the raw value is invalid, :exc:`InvalidMetadata` is raised (with a cause
as appropriate).