Inherits from
- EggDBCommand: enthought.setuptools.egg_db_command.EggDBCommand
Attributes
- description
description = 'Validate the dependencies listed as being required by an egg match those actually imported in the source.'
Method summary
- calculate_differences(self, deps, imported)
- finalize_options(self)
- get_declared_dependencies(self)
- get_imports(self)
- get_imports_from_module(self, path)
- get_requirements(self)
- initialize_options(self)
- run(self)
Methods
- calculate_differences(self, deps, imported)
Return a tuple of sets representing the not imported, and not declared packages / modules.
- finalize_options(self)
- get_declared_dependencies(self)
Return a list of the eggs required by setup.py.
The returned list is built by parsing the list of eggs in the 'install_requires' section, and the extras section of the setup.py.
- get_imports(self)
Return a dictionary of the imports within the sources in this egg.
The key is the full specification of the symbol being imported and the value is a list of all the source modules that imported that symbol.
This list is built by scanning the python source inside the packages listed as being part of the egg. We do not actually import any source!
- get_imports_from_module(self, path)
Return a list of the symbols imported in the specified module.
- get_requirements(self)
Return a dictionary of required eggs derived from actual imports.
The returned dictionary documents all known eggs and extras required by the imports in the source files that make up this egg. The keys are the egg and extras names, in a format of "<egg_name>[<extra1>,...]". The values are dictionaries where the keys are the imported symbols that caused us to require this egg & extra, and the values are lists of all the source modules that imported that symbol.
- initialize_options(self)
- run(self)