File size: 3,955 Bytes
71687cf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# Copyright (C) 2012 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
"""
In this module, you will find everything relevant to conda's plugin system.
It contains all of the code that plugin authors will use to write plugins,
as well as conda's internal implementations of plugins.

**Modules relevant for plugin authors**

- :mod:`conda.plugins.hookspec`: all available hook specifications are listed here, including
  examples of how to use them
- :mod:`conda.plugins.types`: important types to use when defining plugin hooks

**Modules relevant for internal development**

- :mod:`conda.plugins.manager`: includes our custom subclass of pluggy's
  `PluginManager <https://pluggy.readthedocs.io/en/stable/api_reference.html#pluggy.PluginManager>`_ class

**Modules with internal plugin implementations**

- :mod:`conda.plugins.solvers`: implementation of the "classic" solver
- :mod:`conda.plugins.subcommands.doctor`: ``conda doctor`` and ``conda check`` subcommands (with ``--fix`` support)
- :mod:`conda.plugins.virtual_packages`: registers virtual packages in conda

"""

from ..deprecations import deprecated
from . import types
from .hookspec import hookimpl

__all__ = ["hookimpl", "types"]

deprecated.constant(
    "26.3",
    "26.9",
    "CondaAuthHandler",
    types.CondaAuthHandler,
    addendum="Use `conda.plugins.types.CondaAuthHandler` instead.",
)
deprecated.constant(
    "26.3",
    "26.9",
    "CondaEnvironmentSpecifier",
    types.CondaEnvironmentSpecifier,
    addendum="Use `conda.plugins.types.CondaEnvironmentSpecifier` instead.",
)
deprecated.constant(
    "26.3",
    "26.9",
    "CondaHealthCheck",
    types.CondaHealthCheck,
    addendum="Use `conda.plugins.types.CondaHealthCheck` instead.",
)
deprecated.constant(
    "26.3",
    "26.9",
    "CondaPostCommand",
    types.CondaPostCommand,
    addendum="Use `conda.plugins.types.CondaPostCommand` instead.",
)
deprecated.constant(
    "26.3",
    "26.9",
    "CondaPostSolve",
    types.CondaPostSolve,
    addendum="Use `conda.plugins.types.CondaPostSolve` instead.",
)
deprecated.constant(
    "26.3",
    "26.9",
    "CondaPostTransactionAction",
    types.CondaPostTransactionAction,
    addendum="Use `conda.plugins.types.CondaPostTransactionAction` instead.",
)
deprecated.constant(
    "26.3",
    "26.9",
    "CondaPreCommand",
    types.CondaPreCommand,
    addendum="Use `conda.plugins.types.CondaPreCommand` instead.",
)
deprecated.constant(
    "26.3",
    "26.9",
    "CondaPrefixDataLoader",
    types.CondaPrefixDataLoader,
    addendum="Use `conda.plugins.types.CondaPrefixDataLoader` instead.",
)
deprecated.constant(
    "26.3",
    "26.9",
    "CondaPreSolve",
    types.CondaPreSolve,
    addendum="Use `conda.plugins.types.CondaPreSolve` instead.",
)
deprecated.constant(
    "26.3",
    "26.9",
    "CondaPreTransactionAction",
    types.CondaPreTransactionAction,
    addendum="Use `conda.plugins.types.CondaPreTransactionAction` instead.",
)
deprecated.constant(
    "26.3",
    "26.9",
    "CondaReporterBackend",
    types.CondaReporterBackend,
    addendum="Use `conda.plugins.types.CondaReporterBackend` instead.",
)
deprecated.constant(
    "26.3",
    "26.9",
    "CondaRequestHeader",
    types.CondaRequestHeader,
    addendum="Use `conda.plugins.types.CondaRequestHeader` instead.",
)
deprecated.constant(
    "26.3",
    "26.9",
    "CondaSetting",
    types.CondaSetting,
    addendum="Use `conda.plugins.types.CondaSetting` instead.",
)
deprecated.constant(
    "26.3",
    "26.9",
    "CondaSolver",
    types.CondaSolver,
    addendum="Use `conda.plugins.types.CondaSolver` instead.",
)
deprecated.constant(
    "26.3",
    "26.9",
    "CondaSubcommand",
    types.CondaSubcommand,
    addendum="Use `conda.plugins.types.CondaSubcommand` instead.",
)
deprecated.constant(
    "26.3",
    "26.9",
    "CondaVirtualPackage",
    types.CondaVirtualPackage,
    addendum="Use `conda.plugins.types.CondaVirtualPackage` instead.",
)