示例#1
0
def main():
    """
    this one simply runs the freezing for all templates

    this is the one you should always use
    """
    with freeze.maybe_transient_venv_dir(None, False) as venv:
        for template, out in RUNS:
            args = argparse.Namespace(venv=venv,
                                      keep=True,
                                      template=str(HERE.joinpath(template)),
                                      out=str(HERE.joinpath(out)))
            freeze.main(args)
示例#2
0
def main():
    """
    this one simply runs the freezing for all templates

    this is the one you should always use
    """
    with freeze.maybe_transient_venv_dir(None, False) as venv:
        for template, out in RUNS:
            args = argparse.Namespace(
                venv=venv,
                keep=True,
                template=str(HERE.joinpath(template)),
                out=str(HERE.joinpath(out))
            )
            freeze.main(args)
示例#3
0
def main():
    """
    this one simply runs the freezing for all templates

    this is the one you should always use
    """
    with freeze.maybe_transient_venv_dir(None, False) as venv:
        for template, out in RUNS:
            out = out.replace(
                '.txt', '.py{major}.txt'.format(major=sys.version_info[0]))
            args = argparse.Namespace(venv=venv,
                                      keep=True,
                                      template=str(HERE.joinpath(template)),
                                      out=str(HERE.joinpath(out)))
            freeze.main(args)
示例#4
0
def main(conf):

    """
    this one simply runs the freezing for all templates

    this is the one you should always use
    """
    with freeze.maybe_transient_venv_dir(None, False) as venv:
        for template, out in RUNS:
            out = out.replace(".txt", ".py{major}.txt".format(major=sys.version_info[0]))
            args = argparse.Namespace(
                venv=venv,
                keep=True,
                template=str(HERE.joinpath(template)),
                out=str(HERE.joinpath(out)),
                upgrade_only=conf.upgrade_only,
            )
            freeze.main(args)