diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..b64824d --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,5 @@ +## 0.1.0a0 (2025-12-21) + +### Feat + +- first version diff --git a/README.fr.md b/README.fr.md index 948dd45..18eede0 100644 --- a/README.fr.md +++ b/README.fr.md @@ -8,6 +8,7 @@ include_toc: true > [!NOTE] > +> L'objectif n'est pas d'afficher toutes les variables de la configuration, mais seulement une sélection à l'aide du mécanisme d'étiquetage.\ > **Chemin** : table\ > *`désactivé`*\ > **Désactivé** : si table n'est pas mis dans "[Sélection pour sortie](#step.output)" diff --git a/README.md b/README.md index c527e64..3cbde04 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ include_toc: true > [!NOTE] > +> The goal is not to display all the variables in the configuration, but only a selection using the labeling mechanism.\ > **Path**: table\ > *`disabled`*\ > **Disabled**: if table is not set in "[Select for output](#step.output)" diff --git a/locale/fr/LC_MESSAGES/rougail_output_table.po b/locale/fr/LC_MESSAGES/rougail_output_table.po index e463025..3897ca8 100644 --- a/locale/fr/LC_MESSAGES/rougail_output_table.po +++ b/locale/fr/LC_MESSAGES/rougail_output_table.po @@ -5,8 +5,8 @@ msgid "" msgstr "" "Project-Id-Version: \n" -"POT-Creation-Date: 2025-12-21 21:18+0100\n" -"PO-Revision-Date: 2025-12-21 21:26+0100\n" +"POT-Creation-Date: 2025-12-21 21:58+0100\n" +"PO-Revision-Date: 2025-12-21 22:00+0100\n" "Last-Translator: \n" "Language-Team: \n" "Language: fr\n" @@ -24,15 +24,23 @@ msgstr "\"step.output\" n'est pas mis à \"{0}\"" msgid "Displays the data in a table" msgstr "Affiche les données dans un tableau" -#: src/rougail/output_table/config.py:33 +#: src/rougail/output_table/config.py:29 +msgid "" +"The goal is not to display all the variables in the configuration, but only " +"a selection using the labeling mechanism." +msgstr "" +"L'objectif n'est pas d'afficher toutes les variables de la configuration, " +"mais seulement une sélection à l'aide du mécanisme d'étiquetage." + +#: src/rougail/output_table/config.py:34 msgid "if table is not set in \"step.output\"" msgstr "si table n'est pas mis dans \"step.output\"" -#: src/rougail/output_table/config.py:36 +#: src/rougail/output_table/config.py:37 msgid "Content of the first column" msgstr "Contenu de la première colonne" -#: src/rougail/output_table/config.py:47 +#: src/rougail/output_table/config.py:48 msgid "" "First column is description if \"_.columns\" has only one value, otherwise " "it's namespace" @@ -40,23 +48,23 @@ msgstr "" "La première colonne est description si \"_.columns\" n'a qu'une valeur, " "sinon c'est namespace" -#: src/rougail/output_table/config.py:52 +#: src/rougail/output_table/config.py:53 msgid "Tag name must not have the same name has first column" msgstr "" "Le nom de l'étiquette ne doit pas avoir le même nom que la première colonne" -#: src/rougail/output_table/config.py:55 src/rougail/output_table/config.py:60 +#: src/rougail/output_table/config.py:56 src/rougail/output_table/config.py:61 msgid "Tag names" msgstr "Noms des étiquettes" -#: src/rougail/output_table/config.py:56 +#: src/rougail/output_table/config.py:57 msgid "" "Each tag creates a column. The content of the columns comes from the " "variables with the defined tags." msgstr "" "Chaque étiquette créée une colonne. Le contenu des colonnes viennent des " -"variables avec les étiquettes définis" +"variables avec les étiquettes définis." -#: src/rougail/output_table/config.py:69 +#: src/rougail/output_table/config.py:70 msgid "Add header in table" msgstr "Ajouter l'entête dans le tableau" diff --git a/locale/rougail_output_table.pot b/locale/rougail_output_table.pot index 8ef9b1d..13dbb7d 100644 --- a/locale/rougail_output_table.pot +++ b/locale/rougail_output_table.pot @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2025-12-21 21:30+0100\n" +"POT-Creation-Date: 2025-12-21 22:00+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -23,31 +23,35 @@ msgstr "" msgid "Displays the data in a table" msgstr "" -#: src/rougail/output_table/config.py:33 +#: src/rougail/output_table/config.py:29 +msgid "The goal is not to display all the variables in the configuration, but only a selection using the labeling mechanism." +msgstr "" + +#: src/rougail/output_table/config.py:34 msgid "if table is not set in \"step.output\"" msgstr "" -#: src/rougail/output_table/config.py:36 +#: src/rougail/output_table/config.py:37 msgid "Content of the first column" msgstr "" -#: src/rougail/output_table/config.py:47 +#: src/rougail/output_table/config.py:48 msgid "First column is description if \"_.columns\" has only one value, otherwise it's namespace" msgstr "" -#: src/rougail/output_table/config.py:52 +#: src/rougail/output_table/config.py:53 msgid "Tag name must not have the same name has first column" msgstr "" -#: src/rougail/output_table/config.py:55 src/rougail/output_table/config.py:60 +#: src/rougail/output_table/config.py:56 src/rougail/output_table/config.py:61 msgid "Tag names" msgstr "" -#: src/rougail/output_table/config.py:56 +#: src/rougail/output_table/config.py:57 msgid "Each tag creates a column. The content of the columns comes from the variables with the defined tags." msgstr "" -#: src/rougail/output_table/config.py:69 +#: src/rougail/output_table/config.py:70 msgid "Add header in table" msgstr "" diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..1083766 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,44 @@ +[build-system] +build-backend = "flit_core.buildapi" +requires = ["flit_core >=3.8.0,<4"] + +[project] +name = "rougail.output_table" +version = "0.1.0a0" +authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}] +readme = "README.md" +description = "Rougail output table" +requires-python = ">=3.8" +license = {file = "LICENSE"} +classifiers = [ + "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)", + "Programming Language :: Python", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", + "Programming Language :: Python :: 3", + "Operating System :: OS Independent", + "Natural Language :: English", + "Natural Language :: French", + +] +dependencies = [ + "rougail-base > 1.1,<2", + "tabulate ~= 0.9.0", +] + +[project.urls] +Home = "https://forge.cloud.silique.fr/stove/rougail-output-exporter" + +[tool.commitizen] +name = "cz_conventional_commits" +tag_format = "$version" +version_scheme = "pep440" +version_provider = "pep621" +version_files = [ + "src/rougail/output_doc/__version__.py", + "pyproject.toml:version" +] +update_changelog_on_bump = true +changelog_merge_prerelease = true diff --git a/src/rougail/output_table/config.py b/src/rougail/output_table/config.py index 863b8b0..bb3bee4 100644 --- a/src/rougail/output_table/config.py +++ b/src/rougail/output_table/config.py @@ -26,6 +26,7 @@ def get_rougail_config( rougail_options = f""" table: description: {_('Displays the data in a table')} + help: {_('The goal is not to display all the variables in the configuration, but only a selection using the labeling mechanism.')} disabled: jinja: |- {{{{ step.output is propertyerror or step.output != 'table' }}}} diff --git a/src/rougail/output_table/locale/fr/LC_MESSAGES/rougail_output_table.mo b/src/rougail/output_table/locale/fr/LC_MESSAGES/rougail_output_table.mo index 481d7cc..af6fdb0 100644 Binary files a/src/rougail/output_table/locale/fr/LC_MESSAGES/rougail_output_table.mo and b/src/rougail/output_table/locale/fr/LC_MESSAGES/rougail_output_table.mo differ