conda_recipe_manager.scanner.dependency.base_dep_scanner
- Description:
Provides a base class for all dependency scanners to be derived from.
Functions
|
Convenience constructor for the ProjectDependency structure. |
Classes
Base class for all Dependency Scanner classes. |
|
|
A dependency found by scanning a software project's files. |
- class conda_recipe_manager.scanner.dependency.base_dep_scanner.BaseDependencyScanner[source]
Bases:
object
Base class for all Dependency Scanner classes.
- get_message_table() MessageTable [source]
Returns the internal message table.
- Returns:
Message table object containing logged messages.
- abstract scan() set[ProjectDependency] [source]
Actively scans a project for dependencies. Implementation is dependent on the type of scanner used.
- Returns:
A set of unique dependencies found by the scanner.
- class conda_recipe_manager.scanner.dependency.base_dep_scanner.ProjectDependency(data: DependencyData, type: DependencySection)[source]
Bases:
NamedTuple
A dependency found by scanning a software project's files.
Not to be confused with the conda_recipe_manager.parser.dependency.Dependency type, which can be derived from recipe file information.
- count(value, /)
Return number of occurrences of value.
- index(value, start=0, stop=9223372036854775807, /)
Return first index of value.
Raises ValueError if the value is not present.
- data: MatchSpec | DependencyVariable
Alias for field number 0
- type: DependencySection
Alias for field number 1
- conda_recipe_manager.scanner.dependency.base_dep_scanner.new_project_dependency(s: str, t: DependencySection) ProjectDependency [source]
Convenience constructor for the ProjectDependency structure.
- Parameters:
s -- String containing the dependency name and optional version constraints.
t -- Type of dependency. This also correlates with the section this dependency should be put in, in a conda recipe file.
- Returns:
A newly constructed ProjectDependency instance.