示例#1
0
 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
     }
示例#2
0
 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
     }
示例#3
0
 def installed_package_names(self):
     # type: () -> List[str]
     return get_canonical_names(
         [pkg.key for pkg in self.installed_packages])