def versions_from_archive(self): if self.local_file.endswith('.egg'): trove = self.archive.get_content_of_file('EGG-INFO/PKG-INFO', True).splitlines() else: trove = self.archive.find_list_argument('classifiers') return utils.versions_from_trove(trove)
def versions_from_archive(self): py_vers = utils.versions_from_trove(self.metadata['classifiers']) base_python_version = py_vers[0] if py_vers else settings.DEFAULT_PYTHON_VERSION python_versions = py_vers[1:] if py_vers else [settings.DEFAULT_ADDITIONAL_VERSION] if hasattr(self, 'unsupported_version'): if base_python_version == self.unsupported_version: base_python_version = python_versions[0] python_versions = python_versions[1:] elif self.unsupported_version in python_versions: python_versions.remove(self.unsupported_version) return (base_python_version, python_versions)
def versions_from_archive(self): return utils.versions_from_trove(self.classifiers)
def versions_from_archive(self): return utils.versions_from_trove(self.distribution.metadata.classifiers)
def versions_from_archive(self): py_vers = utils.versions_from_trove(self.classifiers) return (py_vers[0] if py_vers else settings.DEFAULT_PYTHON_VERSION, py_vers[1:] if py_vers else [settings.DEFAULT_ADDITIONAL_VERSION])