Compare commits
5 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b9530a1bf6 | |||
| 05a5419df0 | |||
| 863fa6e979 | |||
| d9c266cc84 | |||
| f88274d1ef |
4 changed files with 39 additions and 145 deletions
170
CHANGELOG.md
170
CHANGELOG.md
|
|
@ -1,155 +1,47 @@
|
||||||
## 0.2.0a21 (2026-06-15)
|
## 1.0.0 (2026-06-21)
|
||||||
|
|
||||||
### Fix
|
|
||||||
|
|
||||||
- update tests
|
|
||||||
|
|
||||||
## 0.2.0a20 (2026-05-04)
|
|
||||||
|
|
||||||
### Feat
|
### Feat
|
||||||
|
|
||||||
- multi layers support
|
- multi layers support
|
||||||
|
|
||||||
### Fix
|
|
||||||
|
|
||||||
- load indefine if no default value
|
|
||||||
- user-data-ansible can set a personalise source
|
|
||||||
- test if password is set in a forbidden file even if it also in legitimate file
|
|
||||||
|
|
||||||
## 0.2.0a19 (2026-01-21)
|
|
||||||
|
|
||||||
### Fix
|
|
||||||
|
|
||||||
- update tests
|
|
||||||
|
|
||||||
## 0.2.0a18 (2025-12-30)
|
|
||||||
|
|
||||||
### Fix
|
|
||||||
|
|
||||||
- doc
|
|
||||||
- update tests
|
|
||||||
|
|
||||||
## 0.2.0a17 (2025-12-22)
|
|
||||||
|
|
||||||
### Fix
|
|
||||||
|
|
||||||
- user_datas => user_data
|
|
||||||
|
|
||||||
## 0.2.0a16 (2025-11-21)
|
|
||||||
|
|
||||||
### Feat
|
|
||||||
|
|
||||||
- add 'add_help' option un TiramisuCmdLineParser + -ff => -yf
|
- add 'add_help' option un TiramisuCmdLineParser + -ff => -yf
|
||||||
|
|
||||||
## 0.2.0a15 (2025-11-06)
|
|
||||||
|
|
||||||
### Fix
|
|
||||||
|
|
||||||
- update tests
|
|
||||||
- unknown variable
|
|
||||||
|
|
||||||
## 0.2.0a14 (2025-10-10)
|
|
||||||
|
|
||||||
### Fix
|
|
||||||
|
|
||||||
- update test
|
|
||||||
- tests
|
|
||||||
- tests for formatter
|
|
||||||
|
|
||||||
## 0.2.0a13 (2025-09-29)
|
|
||||||
|
|
||||||
### Feat
|
|
||||||
|
|
||||||
- default value for a calculated variable with an unknown optional variable
|
- default value for a calculated variable with an unknown optional variable
|
||||||
- update tests for integer type
|
- update tests for integer type
|
||||||
|
|
||||||
## 0.2.0a12 (2025-09-22)
|
|
||||||
|
|
||||||
### Fix
|
|
||||||
|
|
||||||
- dependency
|
|
||||||
|
|
||||||
## 0.2.0a11 (2025-05-26)
|
|
||||||
|
|
||||||
### Fix
|
|
||||||
|
|
||||||
- do not load yaml has YAML object
|
|
||||||
|
|
||||||
## 0.2.0a10 (2025-05-14)
|
|
||||||
|
|
||||||
### Feat
|
|
||||||
|
|
||||||
- yaml.filename could be the name of a directory
|
- yaml.filename could be the name of a directory
|
||||||
|
|
||||||
## 0.2.0a9 (2025-05-12)
|
|
||||||
|
|
||||||
### Fix
|
|
||||||
|
|
||||||
- black
|
|
||||||
- update translation
|
|
||||||
- load file with order
|
|
||||||
|
|
||||||
## 0.2.0a8 (2025-05-02)
|
|
||||||
|
|
||||||
### Fix
|
|
||||||
|
|
||||||
- do not force use_data usage
|
|
||||||
|
|
||||||
## 0.2.0a7 (2025-04-30)
|
|
||||||
|
|
||||||
### Fix
|
|
||||||
|
|
||||||
- update tests
|
|
||||||
|
|
||||||
## 0.2.0a6 (2025-04-09)
|
|
||||||
|
|
||||||
### Fix
|
|
||||||
|
|
||||||
- version
|
|
||||||
|
|
||||||
## 0.2.0a5 (2025-04-09)
|
|
||||||
|
|
||||||
### Fix
|
|
||||||
|
|
||||||
- better error message
|
|
||||||
|
|
||||||
## 0.2.0a4 (2025-04-01)
|
|
||||||
|
|
||||||
### Fix
|
|
||||||
|
|
||||||
- update tests
|
|
||||||
|
|
||||||
## 0.2.0a3 (2025-03-30)
|
|
||||||
|
|
||||||
### Fix
|
|
||||||
|
|
||||||
- i18n
|
|
||||||
|
|
||||||
## 0.2.0a2 (2025-03-30)
|
|
||||||
|
|
||||||
### Fix
|
|
||||||
|
|
||||||
- update tests
|
|
||||||
- update tests, some errors are now in warnings level
|
|
||||||
|
|
||||||
## 0.2.0a1 (2025-02-10)
|
|
||||||
|
|
||||||
### Feat
|
|
||||||
|
|
||||||
- add new parameter yaml.file_with_secrets
|
- add new parameter yaml.file_with_secrets
|
||||||
|
|
||||||
### Fix
|
|
||||||
|
|
||||||
- update tests
|
|
||||||
|
|
||||||
## 0.2.0a0 (2024-12-11)
|
|
||||||
|
|
||||||
### Feat
|
|
||||||
|
|
||||||
- rename file to yaml
|
- rename file to yaml
|
||||||
|
|
||||||
### Fix
|
### Fix
|
||||||
|
|
||||||
|
- rougail dependencies
|
||||||
|
- black
|
||||||
|
- dependencies
|
||||||
|
- update tests
|
||||||
|
- load indefine if no default value
|
||||||
|
- user-data-ansible can set a personalise source
|
||||||
|
- test if password is set in a forbidden file even if it also in legitimate file
|
||||||
|
- update tests
|
||||||
|
- doc
|
||||||
|
- update tests
|
||||||
|
- user_datas => user_data
|
||||||
|
- update tests
|
||||||
|
- unknown variable
|
||||||
|
- update test
|
||||||
|
- tests
|
||||||
|
- tests for formatter
|
||||||
|
- dependency
|
||||||
|
- do not load yaml has YAML object
|
||||||
|
- black
|
||||||
|
- update translation
|
||||||
|
- load file with order
|
||||||
|
- do not force use_data usage
|
||||||
|
- update tests
|
||||||
|
- version
|
||||||
|
- better error message
|
||||||
|
- update tests
|
||||||
|
- i18n
|
||||||
|
- update tests
|
||||||
|
- update tests, some errors are now in warnings level
|
||||||
|
- update tests
|
||||||
- prepare ansible user data
|
- prepare ansible user data
|
||||||
|
|
||||||
## 0.1.0 (2024-11-06)
|
## 0.1.0 (2024-11-06)
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "rougail.user_data_yaml"
|
name = "rougail.user_data_yaml"
|
||||||
version = "1.0.0rc0"
|
version = "1.0.0"
|
||||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
description = "Rougail user_data yaml"
|
description = "Rougail user_data yaml"
|
||||||
|
|
@ -24,8 +24,8 @@ classifiers = [
|
||||||
|
|
||||||
]
|
]
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"rougail-base >= 1.1,<2",
|
"rougail-base >= 1.2.0,<2",
|
||||||
"ruamel.yaml ~= 0.18.6",
|
"ruamel.yaml ~= 0.19.1", # same version as rougail
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,9 @@ class RougailUserDataYaml:
|
||||||
if filename.is_file():
|
if filename.is_file():
|
||||||
self.filenames.append(filename)
|
self.filenames.append(filename)
|
||||||
else:
|
else:
|
||||||
for name in sorted(chain(filename.glob('*.yml'), filename.glob('*.yaml'))):
|
for name in sorted(
|
||||||
|
chain(filename.glob("*.yml"), filename.glob("*.yaml"))
|
||||||
|
):
|
||||||
self.filenames.append(name)
|
self.filenames.append(name)
|
||||||
|
|
||||||
self.file_with_secrets = self.rougailconfig["yaml.file_with_secrets"]
|
self.file_with_secrets = self.rougailconfig["yaml.file_with_secrets"]
|
||||||
|
|
@ -71,7 +73,7 @@ class RougailUserDataYaml:
|
||||||
def run(
|
def run(
|
||||||
self,
|
self,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.yaml = YAML(typ='safe', pure=True)
|
self.yaml = YAML(typ="safe", pure=True)
|
||||||
user_data = []
|
user_data = []
|
||||||
if self.file_with_secrets == "last":
|
if self.file_with_secrets == "last":
|
||||||
last_filename_idx = len(self.filenames) - 1
|
last_filename_idx = len(self.filenames) - 1
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
__version__ = "1.0.0rc0"
|
__version__ = "1.0.0"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue