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