def pipfile_package_names(self): # type: () -> Dict[str, Set[str]] dev_keys = get_canonical_names(self.dev_packages.keys()) default_keys = get_canonical_names(self.packages.keys()) return { "dev": dev_keys, "default": default_keys, "combined": dev_keys | default_keys }
def lockfile_package_names(self): # type: () -> Dict[str, Set[str]] dev_keys = get_canonical_names(self.lockfile_content["develop"].keys()) default_keys = get_canonical_names( self.lockfile_content["default"].keys()) return { "dev": dev_keys, "default": default_keys, "combined": dev_keys | default_keys }
def installed_package_names(self): # type: () -> List[str] return get_canonical_names( [pkg.key for pkg in self.installed_packages])