Compare commits

..

No commits in common. "21f1526891b3f924457acd7b0c9bd27c35d5005a" and "656df6068f1dd5fa18ac1bba83c8d7e70e1adbfa" have entirely different histories.

9 changed files with 10 additions and 24 deletions

View file

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

View file

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

View file

@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
[project] [project]
name = "rougail-base" name = "rougail-base"
version = "1.2.0a40" version = "1.2.0a39"
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"

View file

@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
[project] [project]
name = "rougail" name = "rougail"
version = "1.2.0a40" version = "1.2.0a39"
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}] authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
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"
classifiers = [ classifiers = [
@ -18,7 +18,7 @@ classifiers = [
dependencies = [ dependencies = [
"ruamel.yaml ~= 0.18.6", "ruamel.yaml ~= 0.18.6",
"pydantic ~= 2.9.2", "pydantic ~= 2.9.2",
"rougail-base == 1.2.0a40", "rougail-base == 1.2.0a39",
] ]
[tool.flit.sdist] [tool.flit.sdist]

View file

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

View file

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

View file

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

View file

@ -39,10 +39,10 @@ main_structural_directories:
disabled: disabled:
jinja: >- jinja: >-
{{% if 'directory' not in _.step.structural %}} {{% if 'directory' not in _.step.structural %}}
directory is not in _.step.structural directory is not in _.step.structural
{{% endif %}} {{% endif %}}
{{% if cli is defined and cli.versions is defined and cli.versions %}} {{% if cli is defined and cli.versions is defined and cli.versions %}}
cli.versions is specified cli.versions is specified
{{% endif %}} {{% endif %}}
sort_structural_files_all: sort_structural_files_all:
@ -51,7 +51,7 @@ sort_structural_files_all:
disabled: disabled:
jinja: >- jinja: >-
{{% if 'directory' not in _.step.structural %}} {{% if 'directory' not in _.step.structural %}}
directory is not in _.step.structural directory is not in _.step.structural
{{% endif %}} {{% endif %}}
main_namespace: main_namespace:

View file

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