Compare commits
2 commits
656df6068f
...
21f1526891
| Author | SHA1 | Date | |
|---|---|---|---|
| 21f1526891 | |||
| bf3396aa59 |
9 changed files with 24 additions and 10 deletions
|
|
@ -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)
|
## 1.2.0a39 (2025-10-29)
|
||||||
|
|
||||||
### Feat
|
### Feat
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[project]
|
[project]
|
||||||
name = "rougail"
|
name = "rougail"
|
||||||
version = "1.2.0a39"
|
version = "1.2.0a40"
|
||||||
|
|
||||||
[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.0a39"
|
version = "1.2.0a40"
|
||||||
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.0a39"
|
version = "1.2.0a40"
|
||||||
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.0a39",
|
"rougail-base == 1.2.0a40",
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.flit.sdist]
|
[tool.flit.sdist]
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
__version__ = "1.2.0a39"
|
__version__ = "1.2.0a40"
|
||||||
|
|
|
||||||
|
|
@ -81,6 +81,7 @@ 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()
|
||||||
|
|
|
||||||
|
|
@ -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/>.
|
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
|
||||||
|
|
||||||
|
|
@ -47,11 +48,12 @@ 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):
|
def run(self, *, name: Optional[str] = None):
|
||||||
"""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()
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,11 @@ 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
|
||||||
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):
|
if not tconfig.isdynamic(only_self=True):
|
||||||
# it's not a dynamic variable
|
# it's not a dynamic variable
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue