Compare commits

..

No commits in common. "74d6ca83785fb51c718fffd2c6a0b1d3f16bc8c2" and "e9915ddc47e42fc6e7a1da9bd5fc3af67c7b16f7" have entirely different histories.

6 changed files with 9 additions and 19 deletions

View file

@ -1,9 +1,3 @@
## 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.0a68" version = "1.2.0a67"
[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.0a68" version = "1.2.0a67"
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.0a68" version = "1.2.0a67"
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.0a68", "rougail-base == 1.2.0a67",
] ]
[tool.flit.sdist] [tool.flit.sdist]

View file

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

View file

@ -936,17 +936,13 @@ 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) and value.namespace != self.namespace: if isinstance(value, Calculation):
copy = value.copy() value.namespace = self.namespace
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) and val.namespace != self.namespace: if isinstance(val, Calculation):
copy = val.copy() val.namespace = self.namespace
value[idx] = copy
copy.namespace = self.namespace
def del_family( def del_family(
self, self,