Skip to content

Commit a318f8e

Browse files
committed
Remove unused BackendInvalid
1 parent 7bb74e2 commit a318f8e

File tree

3 files changed

+0
-19
lines changed

3 files changed

+0
-19
lines changed

docs/pyproject_hooks.rst

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ Exceptions
3939

4040
Each exception has public attributes with the same name as their constructors.
4141

42-
.. autoexception:: pyproject_hooks.BackendInvalid
4342
.. autoexception:: pyproject_hooks.BackendUnavailable
4443
.. autoexception:: pyproject_hooks.HookMissing
4544
.. autoexception:: pyproject_hooks.UnsupportedOperation

src/pyproject_hooks/__init__.py

-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"""
33

44
from ._impl import (
5-
BackendInvalid,
65
BackendUnavailable,
76
BuildBackendHookCaller,
87
HookMissing,
@@ -14,7 +13,6 @@
1413
__version__ = "1.0.0"
1514
__all__ = [
1615
"BackendUnavailable",
17-
"BackendInvalid",
1816
"HookMissing",
1917
"UnsupportedOperation",
2018
"default_subprocess_runner",

src/pyproject_hooks/_impl.py

-16
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,6 @@ def __init__(self, traceback, message=None, backend_name=None, backend_path=None
3131
super().__init__(message or "Error while importing backend")
3232

3333

34-
class BackendInvalid(Exception):
35-
"""Will be raised if the backend is invalid.
36-
37-
.. deprecated:: 1.1.0
38-
``pyproject_hooks`` no longer produces ``BackendInvalid`` exceptions.
39-
Consider using ``BackendUnavailable`` to handle situations that
40-
previously would raise ``BackendInvalid``.
41-
Future versions of the library may remove this class.
42-
"""
43-
44-
def __init__(self, backend_name, backend_path, message):
45-
super().__init__(message)
46-
self.backend_name = backend_name
47-
self.backend_path = backend_path
48-
49-
5034
class HookMissing(Exception):
5135
"""Will be raised on missing hooks (if a fallback can't be used)."""
5236

0 commit comments

Comments
 (0)