Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions conda_libmamba_solver/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,27 @@
Entry points for the conda plugin system
"""

from conda import plugins
from conda.plugins import hookimpl
from conda.plugins.types import CondaSolver, CondaSubcommand

from .repoquery import configure_parser, repoquery
from .solver import LibMambaSolver


@plugins.hookimpl
@hookimpl
def conda_solvers():
"""
The conda plugin hook implementation to load the solver into conda.
"""
yield plugins.CondaSolver(
yield CondaSolver(
name="libmamba",
backend=LibMambaSolver,
)


@plugins.hookimpl
@hookimpl
def conda_subcommands():
yield plugins.CondaSubcommand(
yield CondaSubcommand(
name="repoquery",
summary="Advanced search for repodata.",
action=repoquery,
Expand Down
19 changes: 19 additions & 0 deletions news/691-conda-solver-type
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### Enhancements

* <news item>

### Bug fixes

* Import `CondaSolver` from its canonical location in `conda.plugins.types`. (#691)

### Deprecations

* <news item>

### Docs

* <news item>

### Other

* <news item>
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ filterwarnings = [
"ignore:`remote_definition`:FutureWarning:argparse",
"ignore:conda.core.prefix_data.python_record_for_prefix:PendingDeprecationWarning:conda.core.link",
"ignore:conda.core.prefix_data.PrefixDataType.__call__:PendingDeprecationWarning:conda_libmamba_solver.state",
"ignore:conda.env.specs.binstar:DeprecationWarning:conda",
"ignore:conda.env.specs.binstar:PendingDeprecationWarning:conda",
"ignore:.*conda.plugins.types.*:DeprecationWarning",
"ignore:.*conda.plugins.types.*:PendingDeprecationWarning",
"ignore:conda.trust:DeprecationWarning:conda",
"ignore:conda.trust:PendingDeprecationWarning:conda",
"ignore:conda.core.link.PrefixActions:DeprecationWarning:conda",
"ignore:conda.core.link.PrefixActions:PendingDeprecationWarning:conda",
]
markers = [
"integration: integration tests that usually require an internet connect",
Expand Down
Loading