Compare commits
No commits in common. "b120dd8e691b5cb2389bd37854174bc46f41479a" and "fbba0160073cc0469ff923af2949b555dfd0e9ce" have entirely different histories.
b120dd8e69
...
fbba016007
9 changed files with 10 additions and 32 deletions
|
|
@ -1,9 +1,3 @@
|
|||
## 1.2.0a35 (2025-10-02)
|
||||
|
||||
### Feat
|
||||
|
||||
- add warning class
|
||||
|
||||
## 1.2.0a34 (2025-09-30)
|
||||
|
||||
### Feat
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[project]
|
||||
name = "rougail"
|
||||
version = "1.2.0a35"
|
||||
version = "1.2.0a34"
|
||||
|
||||
[tool.commitizen]
|
||||
name = "cz_conventional_commits"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
|||
|
||||
[project]
|
||||
name = "rougail-base"
|
||||
version = "1.2.0a35"
|
||||
version = "1.2.0a34"
|
||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||
readme = "README.md"
|
||||
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]
|
||||
name = "rougail"
|
||||
version = "1.2.0a35"
|
||||
version = "1.2.0a34"
|
||||
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.0a35",
|
||||
"rougail-base == 1.2.0a34",
|
||||
]
|
||||
|
||||
[tool.flit.sdist]
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
__version__ = "1.2.0a35"
|
||||
__version__ = "1.2.0a34"
|
||||
|
|
|
|||
|
|
@ -116,20 +116,14 @@ class Annotator(Walk): # pylint: disable=R0903
|
|||
continue
|
||||
if variable.type in RENAME_TYPE:
|
||||
warning = f'the variable "{ variable.path }" has a depreciated type "{variable.type}", please use "{RENAME_TYPE[variable.type]}" instead in {display_xmlfiles(variable.xmlfiles)}'
|
||||
warn(warning,
|
||||
DeprecationWarning,
|
||||
)
|
||||
warn(warning)
|
||||
variable.type = RENAME_TYPE[variable.type]
|
||||
if variable.type == 'cidr':
|
||||
warning = f'the variable "{ variable.path }" has a depreciated type "{variable.type}", please use type "ip" with attribute cidr=True instead in {display_xmlfiles(variable.xmlfiles)}'
|
||||
warn(warning,
|
||||
DeprecationWarning,
|
||||
)
|
||||
warn(warning)
|
||||
if variable.type == 'network_cidr':
|
||||
warning = f'the variable "{ variable.path }" has a depreciated type "{variable.type}", please use type "network" with attribute cidr=True instead in {display_xmlfiles(variable.xmlfiles)}'
|
||||
warn(warning,
|
||||
DeprecationWarning,
|
||||
)
|
||||
warn(warning)
|
||||
self.objectspace.informations.add(
|
||||
variable.path, "ymlfiles", variable.xmlfiles
|
||||
)
|
||||
|
|
|
|||
|
|
@ -585,10 +585,7 @@ class ParserVariable:
|
|||
del family["variable"]
|
||||
if self.version != "1.0":
|
||||
warning = f'"variable" attribute in dynamic family "{ path }" is depreciated in {filename}'
|
||||
warn(warning,
|
||||
DeprecationWarning,
|
||||
stacklevel=2,
|
||||
)
|
||||
warn(warning)
|
||||
if "variable" in family:
|
||||
raise Exception(
|
||||
f'dynamic family must not have "variable" attribute for "{family["path"]}" in {family["xmlfiles"]}'
|
||||
|
|
|
|||
|
|
@ -307,10 +307,7 @@ class JinjaCalculation(Calculation):
|
|||
objectspace.jinja[jinja_path] = self.jinja
|
||||
if return_type in RENAME_TYPE:
|
||||
warning = f'the variable "{ self.path }" has a depreciated return_type "{return_type}", please use "{RENAME_TYPE[return_type]}" instead in {display_xmlfiles(variable.xmlfiles)}'
|
||||
warn(warning,
|
||||
DeprecationWarning,
|
||||
stacklevel=2,
|
||||
)
|
||||
warn(warning)
|
||||
return_type = RENAME_TYPE[return_type]
|
||||
default = {
|
||||
"function": function,
|
||||
|
|
|
|||
|
|
@ -75,10 +75,6 @@ class ExtentionError(Exception):
|
|||
pass
|
||||
|
||||
|
||||
class RougailWarning(UserWarning):
|
||||
pass
|
||||
|
||||
|
||||
## ---- specific exceptions ----
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue