diff --git a/python-package/basedosdados/configs/config.toml b/python-package/basedosdados/templates/config.toml similarity index 65% rename from python-package/basedosdados/configs/config.toml rename to python-package/basedosdados/templates/config.toml index 59a364022..127733b17 100644 --- a/python-package/basedosdados/configs/config.toml +++ b/python-package/basedosdados/templates/config.toml @@ -1,5 +1,5 @@ -# What is the bucket that you are saving all the data? It should be -# an unique name. +# What is the bucket that you are saving all the data? +# It should be an unique name. bucket_name = "" [gcloud-projects] @@ -13,4 +13,4 @@ bucket_name = "" credentials_path = "" [api] -url = "" \ No newline at end of file +url = "" diff --git a/python-package/basedosdados/configs/templates/dataset/README.md b/python-package/basedosdados/templates/dataset/README.md similarity index 100% rename from python-package/basedosdados/configs/templates/dataset/README.md rename to python-package/basedosdados/templates/dataset/README.md diff --git a/python-package/basedosdados/configs/templates/dataset/dataset_description.txt b/python-package/basedosdados/templates/dataset/dataset_description.txt similarity index 98% rename from python-package/basedosdados/configs/templates/dataset/dataset_description.txt rename to python-package/basedosdados/templates/dataset/dataset_description.txt index ec628262a..bc8001c8e 100644 --- a/python-package/basedosdados/configs/templates/dataset/dataset_description.txt +++ b/python-package/basedosdados/templates/dataset/dataset_description.txt @@ -40,4 +40,4 @@ Grupos - {{ partition }} {% endfor -%} {%- endif %} -{% endcall -%} \ No newline at end of file +{% endcall -%} diff --git a/python-package/basedosdados/configs/templates/table/publish.sql b/python-package/basedosdados/templates/table/publish.sql similarity index 100% rename from python-package/basedosdados/configs/templates/table/publish.sql rename to python-package/basedosdados/templates/table/publish.sql diff --git a/python-package/basedosdados/configs/templates/table/table_description.txt b/python-package/basedosdados/templates/table/table_description.txt similarity index 99% rename from python-package/basedosdados/configs/templates/table/table_description.txt rename to python-package/basedosdados/templates/table/table_description.txt index c52f26948..6c4f93ff6 100644 --- a/python-package/basedosdados/configs/templates/table/table_description.txt +++ b/python-package/basedosdados/templates/table/table_description.txt @@ -104,4 +104,4 @@ Tratamento Frequencia de Atualização ------------------------- {{ update_frequency }}{% endcall %} -{% endif %} \ No newline at end of file +{% endif %} diff --git a/python-package/basedosdados/upload/base.py b/python-package/basedosdados/upload/base.py index c9b1b5d0f..cbbb8b145 100644 --- a/python-package/basedosdados/upload/base.py +++ b/python-package/basedosdados/upload/base.py @@ -232,7 +232,7 @@ def _init_config(self, force): if (not config_file.exists()) or (force): # Load config file c_file = tomlkit.parse( - (Path(__file__).resolve().parents[1] / "configs" / "config.toml") + (Path(__file__).resolve().parents[1] / "templates" / "config.toml") .open("r", encoding="utf-8") .read() )