twine.package module
- twine.package._safe_name(name: str) str [source]
Convert an arbitrary string to a standard distribution name.
Any runs of non-alphanumeric/. characters are replaced with a single ‘-‘.
Copied from pkg_resources.safe_name for compatibility with warehouse. See https://github.com/pypa/twine/issues/743.
- class twine.package.PackageFile[source]
- __init__(filename: str, comment: Optional[str], metadata: Distribution, python_version: Optional[str], filetype: Optional[str]) None [source]
- class twine.package.Hexdigest[source]
Hexdigest(md5, sha2, blake2)
- static __new__(_cls, md5: Optional[str], sha2: Optional[str], blake2: Optional[str])
Create new instance of Hexdigest(md5, sha2, blake2)
- _asdict()
Return a new dict which maps field names to their values.
- _field_defaults = {}
- _fields = ('md5', 'sha2', 'blake2')
- classmethod _make(iterable)
Make a new Hexdigest object from a sequence or iterable
- _replace(**kwds)
Return a new Hexdigest object replacing specified fields with new values