Compare commits

..

2 commits

9 changed files with 24 additions and 10 deletions

View file

@ -1,3 +1,10 @@
## 1.2.0a40 (2025-11-03)
### Feat
- can add name for a tiramisu config
- active warnings for validators
## 1.2.0a39 (2025-10-29)
### Feat

View file

@ -1,6 +1,6 @@
[project]
name = "rougail"
version = "1.2.0a39"
version = "1.2.0a40"
[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.0a39"
version = "1.2.0a40"
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.0a39"
version = "1.2.0a40"
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.0a39",
"rougail-base == 1.2.0a40",
]
[tool.flit.sdist]

View file

@ -1 +1 @@
__version__ = "1.2.0a39"
__version__ = "1.2.0a40"

View file

@ -81,6 +81,7 @@ class _RougailConfig:
self.add_extra_options,
)
if self.root:
rougailconfig.generate_config()
rougailconfig.config.value.importation(self.config.value.exportation())
rougailconfig.config.property.importation(
self.config.property.exportation()

View file

@ -15,6 +15,7 @@ You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
from typing import Optional
from tiramisu import Config
from warnings import warn
@ -47,11 +48,12 @@ class Rougail(UserDatas):
exec(tiram_obj, custom_types, optiondescription) # pylint: disable=W0122
return optiondescription["option_0"]
def run(self):
def run(self, *, name: Optional[str] = None):
"""Get Tiramisu Config"""
if not self.config:
self.config = Config(
self.get_root_option(),
name=name,
display_name=tiramisu_display_name,
)
self.config.property.read_write()

View file

@ -122,7 +122,11 @@ class UserDatas:
identifiers.append(config.identifiers()[-1])
except AttributeError:
# try to found the good dynamic family
for tconfig in config.list(uncalculated=True):
try:
lists = config.list(uncalculated=True)
except PropertiesOptionError:
lists = []
for tconfig in []:
if not tconfig.isdynamic(only_self=True):
# it's not a dynamic variable
continue