diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..1b6b200 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,42 @@ +[build-system] +build-backend = "flit_core.buildapi" +requires = ["flit_core >=3.8.0,<4"] + +[project] +name = "rougail.user_output_formatter" +version = "0.1.0a0" +authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}] +readme = "README.md" +description = "Rougail output formatter" +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.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "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 >= 1.1,<2", +] + +[project.urls] +Home = "https://forge.cloud.silique.fr/stove/rougail-output-formatter" + +[tool.commitizen] +name = "cz_conventional_commits" +tag_format = "$version" +version_scheme = "pep440" +version_provider = "pep621" +update_changelog_on_bump = true +changelog_merge_prerelease = true diff --git a/src/rougail/output_formatter/config.py b/src/rougail/output_formatter/config.py index 725017d..2bf57be 100644 --- a/src/rougail/output_formatter/config.py +++ b/src/rougail/output_formatter/config.py @@ -29,14 +29,14 @@ load_unexist_redefine: type: boolean default: jinja: >- - {% if step.output == 'formatter' %} + {% if step.output is not propertyerror and step.output == 'formatter' %} true {% else %} false {% endif %} hidden: jinja: >- - {% if step.output == 'formatter' %} + {% if step.output is not propertyerror and step.output == 'formatter' %} load_unexist_redefine is always true with 'formatter' output {% endif %} """