Compare commits
6 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 83cd774079 | |||
| daabd0d202 | |||
| 5fd22e56d4 | |||
| 32f464da9d | |||
| dd68658c34 | |||
| 5bf5f1dd77 |
6 changed files with 89 additions and 35 deletions
18
CHANGELOG.md
18
CHANGELOG.md
|
|
@ -1,3 +1,21 @@
|
|||
## 0.1.3 (2026-09-02)
|
||||
|
||||
### Fix
|
||||
|
||||
- check if structural is loaded
|
||||
|
||||
## 0.1.2 (2026-09-02)
|
||||
|
||||
### Fix
|
||||
|
||||
- rougail-output-json version
|
||||
|
||||
## 0.1.1 (2026-09-02)
|
||||
|
||||
### Fix
|
||||
|
||||
- add rougail-structural-hcl packages
|
||||
|
||||
## 0.1.0 (2026-07-06)
|
||||
|
||||
### Feat
|
||||
|
|
|
|||
|
|
@ -1,34 +1,6 @@
|
|||
[build-system]
|
||||
build-backend = "flit_core.buildapi"
|
||||
requires = ["flit_core >=3.8.0,<4"]
|
||||
|
||||
[project]
|
||||
name = "rougail.output_hcl"
|
||||
version = "0.1.0"
|
||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||
readme = "README.md"
|
||||
description = "Rougail output hcl"
|
||||
requires-python = ">=3.11"
|
||||
license = {file = "LICENSE"}
|
||||
classifiers = [
|
||||
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Programming Language :: Python :: 3.13",
|
||||
"Programming Language :: Python :: 3.14",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Operating System :: OS Independent",
|
||||
"Natural Language :: English",
|
||||
"Natural Language :: French",
|
||||
]
|
||||
|
||||
dependencies = [
|
||||
"rougail-base >= 1.2.0,<2",
|
||||
"python-hcl2 >= 8.1.2,<9",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
Home = "https://forge.cloud.silique.fr/stove/rougail-output-hcl"
|
||||
version = "0.1.3"
|
||||
|
||||
[tool.commitizen]
|
||||
name = "cz_conventional_commits"
|
||||
|
|
@ -37,7 +9,10 @@ version_scheme = "pep440"
|
|||
version_provider = "pep621"
|
||||
version_files = [
|
||||
"src/rougail/output_hcl/__version__.py",
|
||||
"pyproject.toml:version"
|
||||
"pyproject.toml:version",
|
||||
"rougail-output-pyproject.toml:version",
|
||||
"rougail-output-pyproject.toml:rougail-structural-hcl == ",
|
||||
"rougail-structural-pyproject.toml:version",
|
||||
]
|
||||
update_changelog_on_bump = true
|
||||
changelog_merge_prerelease = true
|
||||
|
|
|
|||
30
rougail-output-pyproject.toml
Normal file
30
rougail-output-pyproject.toml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
[build-system]
|
||||
build-backend = "flit_core.buildapi"
|
||||
requires = ["flit_core >=3.8.0,<4"]
|
||||
|
||||
[project]
|
||||
name = "rougail.output_hcl"
|
||||
version = "0.1.3"
|
||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||
readme = "README.md"
|
||||
description = "Rougail output hcl"
|
||||
requires-python = ">=3.11"
|
||||
license = {file = "LICENSE"}
|
||||
classifiers = [
|
||||
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Programming Language :: Python :: 3.13",
|
||||
"Programming Language :: Python :: 3.14",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Operating System :: OS Independent",
|
||||
"Natural Language :: English",
|
||||
"Natural Language :: French",
|
||||
]
|
||||
|
||||
dependencies = [
|
||||
"rougail-structural-hcl == 0.1.3",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
Home = "https://forge.cloud.silique.fr/stove/rougail-output-hcl"
|
||||
32
rougail-structural-pyproject.toml
Normal file
32
rougail-structural-pyproject.toml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
[build-system]
|
||||
build-backend = "flit_core.buildapi"
|
||||
requires = ["flit_core >=3.8.0,<4"]
|
||||
|
||||
[project]
|
||||
name = "rougail.structural_hcl"
|
||||
version = "0.1.3"
|
||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||
readme = "README.md"
|
||||
description = "Rougail structural hcl"
|
||||
requires-python = ">=3.11"
|
||||
license = {file = "LICENSE"}
|
||||
classifiers = [
|
||||
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Programming Language :: Python :: 3.13",
|
||||
"Programming Language :: Python :: 3.14",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Operating System :: OS Independent",
|
||||
"Natural Language :: English",
|
||||
"Natural Language :: French",
|
||||
]
|
||||
|
||||
dependencies = [
|
||||
"rougail-base >= 1.2.0,<2",
|
||||
"rougail-output-json >=1.0.1,<2",
|
||||
"python-hcl2 >= 8.1.2,<9",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
Home = "https://forge.cloud.silique.fr/stove/rougail-structural-hcl"
|
||||
|
|
@ -1 +1 @@
|
|||
__version__ = "0.1.0"
|
||||
__version__ = "0.1.3"
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ class Annotator(Walk):
|
|||
hasattr(child, "hcl_type") and child.hcl_type == "block"
|
||||
)
|
||||
information_value = None
|
||||
if child.hcl_type == "label":
|
||||
if hasattr(child, "hcl_type") and child.hcl_type == "label":
|
||||
if is_label == False:
|
||||
raise Exception()
|
||||
information_value = "label"
|
||||
|
|
@ -70,9 +70,8 @@ class Annotator(Walk):
|
|||
self.objectspace.informations.add(
|
||||
child.path, "hcl_type", information_value
|
||||
)
|
||||
hcl_name = getattr(child, "hcl_name")
|
||||
if hcl_name:
|
||||
self.objectspace.informations.add(child.path, "hcl_name", hcl_name)
|
||||
if hasattr(child, "hcl_name") and child.hcl_name:
|
||||
self.objectspace.informations.add(child.path, "hcl_name", child.hcl_name)
|
||||
return is_label
|
||||
|
||||
def parse_variable(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue