Beispiel #1
0
def tmp_dir():
    pth = Path("tmp_cfgex")
    ensure_created(pth)

    yield pth

    rmdir(pth)
Beispiel #2
0
def tmp_dir():
    pth = Path("nb_test_config")
    ensure_created(pth)

    yield pth

    rmdir(pth)
def tmp_dir():
    pth = Path('toto_manage_clean')
    ensure_created(pth)

    yield pth

    rmdir(pth)
Beispiel #4
0
def tmp_dir():
    pth = Path('toto_manage_cfg')
    ensure_created(pth)
    init_pkg(pth)

    yield pth

    rmdir(pth)
def tmp_dir():
    pth = Path("toto_mg_ver")
    ensure_created(pth)
    ensure_created(pth / pkglts_dir)

    yield pth

    rmdir(pth)
def tmp_dir():
    pth = Path("tagadareqs")

    ensure_created(pth)

    yield pth

    rmdir(pth)
Beispiel #7
0
def tmp_dir():
    pth = Path("toto_mg_cfg")
    ensure_created(pth)
    ensure_created(pth / pkglts_dir)

    yield pth

    if pth.exists():
        rmdir(pth)
def tmp_dir():
    pth = Path("takapouet")

    ensure_created(pth)
    ensure_created(pth / "src")
    ensure_created(pth / "tgt")

    yield pth

    rmdir(pth)
Beispiel #9
0
def tmp_pths():
    pth = Path('toto_mg_rg')
    ensure_created(pth)
    init_pkg(pth)
    with open((pth / pkglts_dir / pkg_cfg_file), 'r') as fhr:
        pkg_cfg = json.load(fhr)

    pkg_cfg['base'] = dict(pkgname='toto',
                           namespace=None,
                           authors=[('moi', '*****@*****.**')],
                           url=None)
    pkg_cfg['src'] = dict(namespace_method="pkg_util")

    cfg = Config(pkg_cfg)
    write_pkg_config(cfg, pth)
    regenerate_package(cfg, pth)

    init_file = pth / "src/toto/__init__.py"

    yield pth, init_file

    rmdir(pth)