Compare commits

...

2 commits

6 changed files with 19 additions and 9 deletions

View file

@ -1,3 +1,9 @@
## 1.2.0a68 (2026-03-09)
### Fix
- copy object before modify namespace
## 1.2.0a67 (2026-03-06) ## 1.2.0a67 (2026-03-06)
### Fix ### Fix

View file

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

View file

@ -1 +1 @@
__version__ = "1.2.0a67" __version__ = "1.2.0a68"

View file

@ -936,13 +936,17 @@ class ParserVariable:
def change_namespaces(self, variable): def change_namespaces(self, variable):
for key, value in variable.items(): for key, value in variable.items():
if isinstance(value, Calculation): if isinstance(value, Calculation) and value.namespace != self.namespace:
value.namespace = self.namespace copy = value.copy()
variable[key] = copy
copy.namespace = self.namespace
if not isinstance(value, list): if not isinstance(value, list):
continue continue
for idx, val in enumerate(value): for idx, val in enumerate(value):
if isinstance(val, Calculation): if isinstance(val, Calculation) and val.namespace != self.namespace:
val.namespace = self.namespace copy = val.copy()
value[idx] = copy
copy.namespace = self.namespace
def del_family( def del_family(
self, self,