def __init__(self, use_environment: bool = True, base_dir: Path | None = None) -> None: self._config = deepcopy(self.default_config) self._use_environment = use_environment self._base_dir = base_dir self._config_source: ConfigSource = DictConfigSource() self._auth_config_source: ConfigSource = DictConfigSource()
def auth_config_source() -> DictConfigSource: source = DictConfigSource() return source
def config_source(config_cache_dir: Path) -> DictConfigSource: source = DictConfigSource() source.add_property("cache-dir", str(config_cache_dir)) return source
def config_source(): source = DictConfigSource() source.add_property("cache-dir", "/foo") return source
def config_source(): source = DictConfigSource() source.add_property("cache-dir", str(Path.cwd() / ".pypoetrycache")) return source