Compare commits

..

2 commits

Author SHA1 Message Date
b087aa39f7 bump: version 1.2.0a45 → 1.2.0a46 2025-12-22 09:58:58 +01:00
0adf0d3f73 fix: duplicate description 2025-12-22 09:58:44 +01:00
7 changed files with 17 additions and 8 deletions

View file

@ -1,3 +1,9 @@
## 1.2.0a46 (2025-12-22)
### Fix
- duplicate description
## 1.2.0a45 (2025-12-22)
### Feat

View file

@ -1,6 +1,6 @@
[project]
name = "rougail"
version = "1.2.0a45"
version = "1.2.0a46"
[tool.commitizen]
name = "cz_conventional_commits"

View file

@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
[project]
name = "rougail-base"
version = "1.2.0a45"
version = "1.2.0a46"
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
readme = "README.md"
description = "A consistency handling system that was initially designed in the configuration management"

View file

@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
[project]
name = "rougail"
version = "1.2.0a45"
version = "1.2.0a46"
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
description = "A consistency handling system that was initially designed in the configuration management"
classifiers = [
@ -18,7 +18,7 @@ classifiers = [
dependencies = [
"ruamel.yaml ~= 0.18.6",
"pydantic ~= 2.9.2",
"rougail-base == 1.2.0a45",
"rougail-base == 1.2.0a46",
]
[tool.flit.sdist]

View file

@ -1 +1 @@
__version__ = "1.2.0a45"
__version__ = "1.2.0a46"

View file

@ -28,6 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
from pathlib import Path
from tiramisu import Config
from tiramisu.error import display_list
from ruamel.yaml import YAML
from ..utils import _, load_modules
from ..tiramisu import normalize_family
@ -468,11 +469,13 @@ secret_manager: # {_("The secret manager")}
"""
for hidden_output in hidden_outputs:
rougail_process += """ {% if _.output is not propertyerror and _.output == 'NAME' %}
Cannot load user data for NAME output
Cannot load user data for NAME output
{% endif %}
description: _('cannot load user data for NAME output')""".replace(
""".replace(
"NAME", hidden_output
)
rougail_process += f""" description: _('outputs {0} did not allow user data')
""".format(display_list(hidden_outputs, add_quote=True, separator="or"))
elif objects:
rougail_process += " default: {DEFAULT}".format(
DEFAULT=objects[0]["name"]

View file

@ -377,7 +377,7 @@ class UserData:
[_(prop) for prop in err.proptype], add_quote=False
)
err_path = err.subconfig.path
err_description = err.subconfig.option.impl_get_display_name(err.subconfig)
err_description = err.subconfig.option.impl_get_display_name(err.subconfig, with_quote=True)
display_name = option.description(with_quote=True)
if index is not None:
if path == err_path: