Esempio n. 1
0
def config_source():
    source = DictConfigSource()
    source.add_property("cache-dir", "/foo")

    return source
Esempio n. 2
0
def config_source(config_cache_dir: Path) -> DictConfigSource:
    source = DictConfigSource()
    source.add_property("cache-dir", str(config_cache_dir))

    return source
Esempio n. 3
0
def config_source():
    source = DictConfigSource()
    source.add_property("cache-dir", str(Path.cwd() / ".pypoetrycache"))

    return source