コード例 #1
0
    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)
コード例 #2
0
 def _binary(*_, **__):
     raise exceptions.FailedDetectingPackageMetadataException(
         argument='entry_points',
         reason=exceptions.SetupPyNotFoundException(repo=repo_path))
コード例 #3
0
    def _nsis(*_, **__):

        raise exceptions.FailedDetectingPackageMetadataException(
            argument='something',
            reason=exceptions.SetupPyNotFoundException(repo=repo_path))
コード例 #4
0
    def _nsis(*_, **__):

        raise exceptions.FailedDetectingPackageMetadataException(
            argument='something',
            reason=exceptions.MissingSetupPyArgumentException(
                repo=repo_path, argument='something'))
コード例 #5
0
    def _binary(**__):

        raise exceptions.FailedDetectingPackageMetadataException(
            argument='entry_points',
            reason=exceptions.MissingSetupPyArgumentException(
                repo=repo_path, argument='entry_points'))