def upload(self, pattern, force=False, all_packages=False, confirm=False, retry=None, retry_wait=None, skip_upload=False): """Upload all the recipes matching 'pattern'""" if is_a_reference(pattern): ref = ConanFileReference.loads(pattern) export_path = self._paths.export(ref) if not os.path.exists(export_path): raise NotFoundException( "There is no local conanfile exported as %s" % str(ref)) references = [ ref, ] confirm = True else: references = self._search_manager.search(pattern) if not references: raise NotFoundException("No packages found matching pattern '%s'" % pattern) for conan_ref in references: upload = True if not confirm: msg = "Are you sure you want to upload '%s'?" % str(conan_ref) upload = self._user_io.request_boolean(msg) if upload: self._upload(conan_ref, force, all_packages, retry, retry_wait, skip_upload)
def upload(self, pattern, package=None, remote=None, all=False, force=False, confirm=False, retry=2, retry_wait=5, skip_upload=False, integrity_check=False): """ Uploads a package recipe and the generated binary packages to a specified remote """ if package and not is_a_reference(pattern): raise ConanException( "-p parameter only allowed with a valid recipe reference, " "not with a pattern") self._manager.upload(pattern, package, remote, all_packages=all, force=force, confirm=confirm, retry=retry, retry_wait=retry_wait, skip_upload=skip_upload, integrity_check=integrity_check)
def upload(self, pattern, package=None, remote=None, all=False, force=False, confirm=False, retry=2, retry_wait=5, skip_upload=False): """ Uploads a package recipe and the generated binary packages to a specified remote """ if package and not is_a_reference(pattern): raise ConanException("-p parameter only allowed with a valid recipe reference, " "not with a pattern") self._manager.upload(pattern, package, remote, all_packages=all, force=force, confirm=confirm, retry=retry, retry_wait=retry_wait, skip_upload=skip_upload)
def upload(self, pattern, force=False, all_packages=False, confirm=False, retry=None, retry_wait=None, skip_upload=False): """Upload all the recipes matching 'pattern'""" if is_a_reference(pattern): ref = ConanFileReference.loads(pattern) export_path = self._paths.export(ref) if not os.path.exists(export_path): raise NotFoundException("There is no local conanfile exported as %s" % str(ref)) references = [ref, ] confirm = True else: references = self._search_manager.search(pattern) if not references: raise NotFoundException("No packages found matching pattern '%s'" % pattern) for conan_ref in references: upload = True if not confirm: msg = "Are you sure you want to upload '%s'?" % str(conan_ref) upload = self._user_io.request_boolean(msg) if upload: self._upload(conan_ref, force, all_packages, retry, retry_wait, skip_upload)