Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
CheckCommand Class Reference
Inheritance diagram for CheckCommand:
Collaboration diagram for CheckCommand:

Public Member Functions

int run (self, Values options, List[str] args)
 
- Public Member Functions inherited from Command
None __init__ (self, str name, str summary, bool isolated=False)
 
None add_options (self)
 
None handle_pip_version_check (self, Values options)
 
Tuple[Values, List[str]] parse_args (self, List[str] args)
 
int main (self, List[str] args)
 
- Public Member Functions inherited from CommandContextMixIn
Generator[None, None, Nonemain_context (self)
 
_T enter_context (self, ContextManager[_T] context_provider)
 

Static Public Attributes

str usage
 
- Static Public Attributes inherited from Command
str usage = ""
 
bool ignore_require_venv = False
 

Additional Inherited Members

- Data Fields inherited from Command
 name
 
 summary
 
 parser
 
 cmd_opts
 
 tempdir_registry
 
 verbosity
 
- Protected Member Functions inherited from Command
int _main (self, List[str] args)
 
- Protected Attributes inherited from CommandContextMixIn
 _in_main_context
 
 _main_context
 

Detailed Description

Verify installed packages have compatible dependencies.

Definition at line 17 of file check.py.

Member Function Documentation

◆ run()

int run (   self,
Values  options,
List[str]  args 
)

Reimplemented from Command.

Definition at line 23 of file check.py.

23 def run(self, options: Values, args: List[str]) -> int:
24 package_set, parsing_probs = create_package_set_from_installed()
25 warn_legacy_versions_and_specifiers(package_set)
26 missing, conflicting = check_package_set(package_set)
27
28 for project_name in missing:
29 version = package_set[project_name].version
30 for dependency in missing[project_name]:
31 write_output(
32 "%s %s requires %s, which is not installed.",
33 project_name,
34 version,
35 dependency[0],
36 )
37
38 for project_name in conflicting:
39 version = package_set[project_name].version
40 for dep_name, dep_version, req in conflicting[project_name]:
41 write_output(
42 "%s %s has requirement %s, but you have %s %s.",
43 project_name,
44 version,
45 req,
46 dep_name,
47 dep_version,
48 )
49
50 if missing or conflicting or parsing_probs:
51 return ERROR
52 else:
53 write_output("No broken requirements found.")
54 return SUCCESS

Field Documentation

◆ usage

str usage
static
Initial value:
= """
%prog [options]"""

Definition at line 20 of file check.py.


The documentation for this class was generated from the following file: