Compare commits

..

No commits in common. "8df55289ebf997a237f124d47ea2a81948395d9e" and "053228753dda4a86e1006f4c31f1042cbc929036" have entirely different histories.

6 changed files with 11 additions and 22 deletions

View file

@ -1,15 +1,3 @@
## 1.2.2 (2026-08-21)
### Fix
- control if option is not just an unknown dyn family or dyn option
## 1.2.1 (2026-08-19)
### Fix
- in each layers a dynamic family could be add, so aggregate all of those families
## 1.2.0 (2026-06-21)
### Feat

View file

@ -1,6 +1,6 @@
[project]
name = "rougail"
version = "1.2.2"
version = "1.2.0"
[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.2"
version = "1.2.0"
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.2"
version = "1.2.0"
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
readme = "README.md"
description = "A consistency handling system that was initially designed in the configuration management"
@ -27,7 +27,7 @@ classifiers = [
dependencies = [
"ruamel.yaml ~= 0.19.1", # same version as rougail-user-data-yaml
"pydantic ~= 2.13.4",
"rougail-base == 1.2.2",
"rougail-base == 1.2.0",
]
[tool.flit.sdist]

View file

@ -1 +1 @@
__version__ = "1.2.2"
__version__ = "1.2.0"

View file

@ -115,7 +115,7 @@ class UserData:
option.name()
except (ConfigError, PropertiesOptionError):
pass
except (AttributeError, AttributeOptionError):
except AttributeError:
self._not_found_is_dynamic(self.config, path, cache, added, data[-1])
def _not_found_is_dynamic(self, config, path, cache, added, data):
@ -173,11 +173,12 @@ class UserData:
# it's the good dynamic variable but it's not linked to a variable
# so cannot change the variable
continue
option = self.config.option(dynamic_variable)
option_type = option.information.get(
option_type = self.config.option(dynamic_variable).information.get(
"type"
)
dyn_options_values = option.value.default(uncalculated=True)
dyn_options_values = (
self.config.option(dynamic_variable).get().impl_getdefault()
)
if "{{ identifier }}" in dynamic_variable:
for s in identifiers:
dynamic_variable = dynamic_variable.replace(
@ -185,7 +186,7 @@ class UserData:
)
# do not add values in variable if has already a value
if dynamic_variable not in self.values and not dyn_options_values:
self.values[dynamic_variable] = [{"values": option.value.get()}]
self.values[dynamic_variable] = [{"values": []}]
added.append(dynamic_variable)
elif dynamic_variable not in added:
continue