Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
packaging.metadata._Validator Class Reference
Inheritance diagram for packaging.metadata._Validator:
Inheritance graph
[legend]
Collaboration diagram for packaging.metadata._Validator:
Collaboration graph
[legend]

Public Member Functions

None __init__ (self, *_MetadataVersion added="1.0")
 
None __set_name__ (self, Metadata _owner, str name)
 
__get__ (self, Metadata instance, type[Metadata] _owner)
 

Public Attributes

 added
 
 name
 
 raw_name
 

Static Public Attributes

str name
 
str raw_name
 
_MetadataVersion added
 

Protected Member Functions

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)
 

Detailed Description

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).

Member Function Documentation

◆ _process_summary()

str packaging.metadata._Validator._process_summary (   self,
str  value 
)
protected
Check the field contains no newlines.

The documentation for this class was generated from the following file: