def _setup_py_argument(self, argument): if not os.path.exists(self._setup_py_path): err = exceptions.SetupPyNotFoundException(repo=self._repo_location) else: self._debug('Reading {} from setup.py...'.format(argument)) value = self._setup_py.get(argument) if value is None: err = exceptions.MissingSetupPyArgumentException( repo=self._repo_location, argument=argument) else: return value raise exceptions.FailedDetectingPackageMetadataException( argument=argument, reason=err)
def _binary(*_, **__): raise exceptions.FailedDetectingPackageMetadataException( argument='entry_points', reason=exceptions.SetupPyNotFoundException(repo=repo_path))
def _nsis(*_, **__): raise exceptions.FailedDetectingPackageMetadataException( argument='something', reason=exceptions.SetupPyNotFoundException(repo=repo_path))
def _nsis(*_, **__): raise exceptions.FailedDetectingPackageMetadataException( argument='something', reason=exceptions.MissingSetupPyArgumentException( repo=repo_path, argument='something'))
def _binary(**__): raise exceptions.FailedDetectingPackageMetadataException( argument='entry_points', reason=exceptions.MissingSetupPyArgumentException( repo=repo_path, argument='entry_points'))