mirror of
https://github.com/MISP/misp-galaxy.git
synced 2024-11-30 02:37:17 +00:00
21 lines
583 B
Python
21 lines
583 B
Python
|
from typing import Callable, List, Optional
|
||
|
|
||
|
from pip._internal.req.req_install import InstallRequirement
|
||
|
from pip._internal.req.req_set import RequirementSet
|
||
|
|
||
|
InstallRequirementProvider = Callable[
|
||
|
[str, Optional[InstallRequirement]], InstallRequirement
|
||
|
]
|
||
|
|
||
|
|
||
|
class BaseResolver:
|
||
|
def resolve(
|
||
|
self, root_reqs: List[InstallRequirement], check_supported_wheels: bool
|
||
|
) -> RequirementSet:
|
||
|
raise NotImplementedError()
|
||
|
|
||
|
def get_installation_order(
|
||
|
self, req_set: RequirementSet
|
||
|
) -> List[InstallRequirement]:
|
||
|
raise NotImplementedError()
|