def upload_conan(self, conan_ref, force=False, all_packages=False):
        export_path = self._paths.export(conan_ref)
        if os.path.exists(export_path):
            if not force:
                self._check_package_date(conan_ref)

            self._user_io.out.info("Uploading %s" % str(conan_ref))
            self._remote_proxy.upload_conan(conan_ref)

            if all_packages:
                for index, package_id in enumerate(self._paths.conan_packages(conan_ref)):
                    total = len(self._paths.conan_packages(conan_ref))
                    self.upload_package(PackageReference(conan_ref, package_id), index + 1, total)
        else:
            self._user_io.out.error("There is no local conanfile exported as %s"
                                    % str(conan_ref))
Uploads the conans identified by conan_ref
dataset/ETHPy150Open conan-io/conan/conans/client/uploader.py/ConanUploader.upload_conan