예제 #1
0
def config_source():
    source = DictConfigSource()
    source.add_property("cache-dir", "/foo")

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

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

    return source