"jyquickhelper", "mlstatpy", "pyensae", "pymmails", "pymyinstall", "pyquickhelper", "pyrsslocal", "pysqllike", "python3_module_template", "teachpyx", # "ensae_teaching_cs" ] ################## # valeurs par défaut # emplacement local de la documentation location = "d:\\jenkins\\pymy\\%s%s\\dist\\%s" rootw = "/www/htdocs/app/%s/%s" # destination sur le site FTP # seconde destination pour le site lesenfantscodaient.fr rootw2 = "/lesenfantscodaient.fr" google_id = code_google # identifiant google analytics ################## # La fonction :func:`publish_teachings_to_web cache` cache beaucoup de chose. publish_teachings_to_web(login=user, ftpsite=ftpsite, google_id=google_id, location=location, rootw=rootw, rootw2=rootw2, modules=modules, password=pwd, force_allow=["xavierdupre"])
rootw = "/www/htdocs/app/%s/%s" # destination sur le site FTP # seconde destination pour le site lesenfantscodaient.fr rootw2 = "/lesenfantscodaient.fr" google_id = code_google # identifiant google analytics suffix = ("_UT_%d%d_std" % sys.version_info[:2], ) modules0 = modules modules = [ _ for _ in modules if os.path.exists(location % (_, _, suffix[0], "html")) ] if len(modules) == 0: _ = modules0[0] one = location % (_, _, suffix[0], "html") raise ValueError("No module can be updated, for example '{0}'".format(one)) print("List of modules to publish:") for i, mod in enumerate(sorted(modules)): print(" {0}/{1}: {2}".format(i + 1, len(modules), mod)) ################## # La fonction :func:`publish_teachings_to_web cache` cache beaucoup de chose. publish_teachings_to_web(login=user, ftpsite=ftpsite, google_id=google_id, location=location, rootw=rootw, rootw2=rootw2, modules=modules, password=pwd, suffix=suffix, force_allow=["xavierdupre"])
else: print("[] Unable to find '{}'.".format(folder)) # benchmark scikit-learn CPP folder = "/var/lib/jenkins/workspace/_benchmarks/_benchmarks_SKLBENCHONNX_CPP_39_std/asv-skl2onnx/html" name = "asv-skl2onnx-cpp" if os.path.exists(folder): root_web = (root_template2 % ('benches', name)) other_projects.append( dict(status_file="status_benches_%s.txt" % name, local="scikit-learn_benchmarks_full", root_web=root_web, root_local=folder)) print("+ publish '{}'".format(folder)) else: print("[] Unable to find '{}'.".format(folder)) # publish publish_teachings_to_web(login=user, ftpsite=ftpsite, google_id=google_id, location=location, rootw=rootw, modules=modules, password=pwd, suffix=suffix, force_allow=["xavierdupre"], exc=False, additional_projects=other_projects, ftps=ftps)
if True: params = {"password": "", login: ""} params = open_window_params(params, title="password", help_string="password", key_save="my_password") password = params["password"] login = params["loging"] else: raise NotImplementedError() publish_teachings_to_web( login=login, ftpsite="ftp.xavierdupre.fr", google_id="UA-2815364-1", modules=[ "pyquickhelper", "pyensae", "pymyinstall", "pysqllike", "pyrsslocal", "pymmails", "python3_module_template", "actuariat_python", "code_beatrix", "ensae_projects", "jupytalk", "mlstatpy", "ensae_teaching_cs", ], password=password, )
import ensae_teaching_cs except ImportError: sys.path.append(r"../ensae_teaching_cs/src") from pyquickhelper.filehelper import TransferFTP, FileTreeNode, FolderTransferFTP from pyquickhelper.funcwin import open_window_params from ensae_teaching_cs.automation.ftp_publish_helper import publish_teachings_to_web if True: params = {"password": "", login: ""} params = open_window_params(params, title="password", help_string="password", key_save="my_password") password = params["password"] login = params["loging"] else: raise NotImplementedError() publish_teachings_to_web(login=login, ftpsite="ftp.xavierdupre.fr", google_id="UA-2815364-1", modules=[ "pyquickhelper", "pyensae", "pymyinstall", "pysqllike", "pyrsslocal", "pymmails", "python3_module_template", "actuariat_python", "code_beatrix", "ensae_projects", "jupytalk", "mlstatpy", "ensae_teaching_cs" ], password=password)