Compare commits
3 commits
2c1f2e7d9b
...
5b3fd6201f
| Author | SHA1 | Date | |
|---|---|---|---|
| 5b3fd6201f | |||
| f69f8df131 | |||
| 24d87c3395 |
8 changed files with 29 additions and 13 deletions
|
|
@ -1,3 +1,10 @@
|
|||
## 1.2.0rc4 (2026-06-21)
|
||||
|
||||
### Feat
|
||||
|
||||
- add secret_manager information
|
||||
- tags for family
|
||||
|
||||
## 1.2.0rc3 (2026-06-18)
|
||||
|
||||
### Fix
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[project]
|
||||
name = "rougail"
|
||||
version = "1.2.0rc3"
|
||||
version = "1.2.0rc4"
|
||||
|
||||
[tool.commitizen]
|
||||
name = "cz_conventional_commits"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
|||
|
||||
[project]
|
||||
name = "rougail-base"
|
||||
version = "1.2.0rc3"
|
||||
version = "1.2.0rc4"
|
||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||
readme = "README.md"
|
||||
description = "A consistency handling system that was initially designed in the configuration management"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
|||
|
||||
[project]
|
||||
name = "rougail"
|
||||
version = "1.2.0rc3"
|
||||
version = "1.2.0rc4"
|
||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||
readme = "README.md"
|
||||
description = "A consistency handling system that was initially designed in the configuration management"
|
||||
|
|
@ -25,9 +25,9 @@ classifiers = [
|
|||
|
||||
]
|
||||
dependencies = [
|
||||
"ruamel.yaml ~= 0.19.1",
|
||||
"ruamel.yaml ~= 0.19.1", # same version as rougail-user-data-yaml
|
||||
"pydantic ~= 2.13.4",
|
||||
"rougail-base == 1.2.0rc3",
|
||||
"rougail-base == 1.2.0rc4",
|
||||
]
|
||||
|
||||
[tool.flit.sdist]
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
__version__ = "1.2.0rc3"
|
||||
__version__ = "1.2.0rc4"
|
||||
|
|
|
|||
|
|
@ -77,6 +77,7 @@ class Annotator(Walk):
|
|||
"""convert families"""
|
||||
for family in self.get_families():
|
||||
self.family_variable_property(family)
|
||||
self.convert_tag(family)
|
||||
# collect for force_default_on_freeze
|
||||
if family.hidden:
|
||||
if family.hidden is True:
|
||||
|
|
@ -164,13 +165,17 @@ class Annotator(Walk):
|
|||
self.objectspace.properties.add(path, "notunique", True)
|
||||
if variable.auto_save:
|
||||
self.objectspace.properties.add(path, "force_store_value", True)
|
||||
if variable.tags:
|
||||
for tag in variable.tags:
|
||||
self.check_tag(tag, variable.xmlfiles)
|
||||
self.objectspace.properties.add(variable.path, tag, True)
|
||||
self.objectspace.informations.add(
|
||||
variable.path, "tags", tuple(variable.tags)
|
||||
)
|
||||
self.convert_tag(variable)
|
||||
|
||||
def convert_tag(self, variable):
|
||||
if not variable.tags:
|
||||
return
|
||||
for tag in variable.tags:
|
||||
self.check_tag(tag, variable.xmlfiles)
|
||||
self.objectspace.properties.add(variable.path, tag, True)
|
||||
self.objectspace.informations.add(
|
||||
variable.path, "tags", tuple(variable.tags)
|
||||
)
|
||||
|
||||
def check_tag(
|
||||
self,
|
||||
|
|
|
|||
|
|
@ -106,6 +106,9 @@ class Annotator(Walk): # pylint: disable=R0903
|
|||
'the variable "{0}" has attribute "secret_manager" so must not have default value'
|
||||
)
|
||||
raise DictConsistencyError(msg.format(path), 59, variable.xmlfiles)
|
||||
self.objectspace.informations.add(
|
||||
path, "secret_manager", True
|
||||
)
|
||||
|
||||
def convert_variable(self):
|
||||
"""convert variable"""
|
||||
|
|
|
|||
|
|
@ -1063,6 +1063,7 @@ class Family(BaseModel):
|
|||
# properties
|
||||
hidden: Union[bool, Calculation] = False
|
||||
disabled: Union[bool, Calculation] = False
|
||||
tags: Optional[List[StrictStr]] = None
|
||||
# others
|
||||
namespace: Optional[StrictStr]
|
||||
path: StrictStr
|
||||
|
|
|
|||
Loading…
Reference in a new issue