From 2bb81471ecc14a04dee35b98c5a6228513c27d36 Mon Sep 17 00:00:00 2001 From: Hagen Wierstorf Date: Mon, 16 Dec 2024 13:00:45 +0100 Subject: [PATCH 1/2] DOC: fix default value for config.REPOSITORIES --- audb/core/config.py | 6 +++--- docs/conf.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/audb/core/config.py b/audb/core/config.py index 40099776..737f91f0 100644 --- a/audb/core/config.py +++ b/audb/core/config.py @@ -115,10 +115,10 @@ class config: A repository is defined by the object :class:`audb.Repository`, containing the following attributes: - * :attr:`audb.Repository.name`: repository name, e.g. ``'data-local'`` - * :attr:`audb.Repository.backend`: backend name, e.g. ``'artifactory'`` + * :attr:`audb.Repository.name`: repository name, e.g. ``"audb-public"`` + * :attr:`audb.Repository.backend`: backend name, e.g. ``"s3"`` * :attr:`audb.Repository.host`: host name, - e.g. ``'https://artifactory.audeering.com/artifactory'`` + e.g. ``"s3.dualstack.eu-north-1.amazonaws.com"`` """ diff --git a/docs/conf.py b/docs/conf.py index ae343c72..959215f1 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -96,9 +96,9 @@ # Cache databases to avoid progress bar in code examples ------------------ audb.config.REPOSITORIES = [ audb.Repository( - name="data-public", - host="https://audeering.jfrog.io/artifactory", - backend="artifactory", + name="audb-public", + host="s3.dualstack.eu-north-1.amazonaws.com", + backend="s3", ) ] database_name = "emodb" From aff8b0779acc0114dd58211433e88a4c4d4e3bd3 Mon Sep 17 00:00:00 2001 From: Hagen Wierstorf Date: Mon, 16 Dec 2024 13:05:10 +0100 Subject: [PATCH 2/2] Read default config file --- docs/conf.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 959215f1..885965d6 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -94,12 +94,12 @@ # Cache databases to avoid progress bar in code examples ------------------ +_config = audb.core.config.load_configuration_file( + audb.core.config.global_config_file, +) audb.config.REPOSITORIES = [ - audb.Repository( - name="audb-public", - host="s3.dualstack.eu-north-1.amazonaws.com", - backend="s3", - ) + audb.Repository(repo["name"], repo["host"], repo["backend"]) + for repo in _config["repositories"] ] database_name = "emodb" database_version = "1.4.1"