mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
initial import of the packaging package in the standard library
This commit is contained in:
parent
566f8a646e
commit
1231a4e097
193 changed files with 30376 additions and 149 deletions
39
Lib/packaging/pypi/errors.py
Normal file
39
Lib/packaging/pypi/errors.py
Normal file
|
@ -0,0 +1,39 @@
|
|||
"""Exceptions raised by packaging.pypi code."""
|
||||
|
||||
from packaging.errors import PackagingPyPIError
|
||||
|
||||
|
||||
class ProjectNotFound(PackagingPyPIError):
|
||||
"""Project has not been found"""
|
||||
|
||||
|
||||
class DistributionNotFound(PackagingPyPIError):
|
||||
"""The release has not been found"""
|
||||
|
||||
|
||||
class ReleaseNotFound(PackagingPyPIError):
|
||||
"""The release has not been found"""
|
||||
|
||||
|
||||
class CantParseArchiveName(PackagingPyPIError):
|
||||
"""An archive name can't be parsed to find distribution name and version"""
|
||||
|
||||
|
||||
class DownloadError(PackagingPyPIError):
|
||||
"""An error has occurs while downloading"""
|
||||
|
||||
|
||||
class HashDoesNotMatch(DownloadError):
|
||||
"""Compared hashes does not match"""
|
||||
|
||||
|
||||
class UnsupportedHashName(PackagingPyPIError):
|
||||
"""A unsupported hashname has been used"""
|
||||
|
||||
|
||||
class UnableToDownload(PackagingPyPIError):
|
||||
"""All mirrors have been tried, without success"""
|
||||
|
||||
|
||||
class InvalidSearchField(PackagingPyPIError):
|
||||
"""An invalid search field has been used"""
|
Loading…
Add table
Add a link
Reference in a new issue