makejinja 2.9.1__tar.gz → 2.9.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: makejinja
3
- Version: 2.9.1
3
+ Version: 2.9.2
4
4
  Summary: Generate entire directory structures using Jinja templates with support for external data and custom plugins
5
5
  Keywords: cli,dashboard,generator,hassio,home-assistant,jinja2,library,lovelace,template,tool
6
6
  Author: Mirko Lenz
@@ -30,7 +30,7 @@ Requires-Dist: frozendict>=2,<3
30
30
  Requires-Dist: jinja2>=3,<4
31
31
  Requires-Dist: pyyaml>=6,<7
32
32
  Requires-Dist: rich-click>=1,<2
33
- Requires-Dist: typed-settings[attrs,cattrs,click]>=25,<27
33
+ Requires-Dist: typed-settings[attrs,cattrs,click]>=25,<28
34
34
  Requires-Python: >=3.13, <4
35
35
  Project-URL: Changelog, https://github.com/mirkolenz/makejinja/releases
36
36
  Project-URL: Documentation, https://mirkolenz.github.io/makejinja/makejinja/cli.html
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "makejinja"
3
- version = "2.9.1"
3
+ version = "2.9.2"
4
4
  description = "Generate entire directory structures using Jinja templates with support for external data and custom plugins"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.13,<4"
@@ -44,7 +44,7 @@ dependencies = [
44
44
  "jinja2>=3,<4",
45
45
  "pyyaml>=6,<7",
46
46
  "rich-click>=1,<2",
47
- "typed-settings[attrs,cattrs,click]>=25,<27",
47
+ "typed-settings[attrs,cattrs,click]>=25,<28",
48
48
  ]
49
49
 
50
50
  [[project.authors]]
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "makejinja"
3
- version = "2.9.1"
3
+ version = "2.9.2"
4
4
  description = "Generate entire directory structures using Jinja templates with support for external data and custom plugins"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.13,<4"
@@ -45,7 +45,7 @@ dependencies = [
45
45
  "jinja2>=3,<4",
46
46
  "pyyaml>=6,<7",
47
47
  "rich-click>=1,<2",
48
- "typed-settings[attrs,cattrs,click]>=25,<27",
48
+ "typed-settings[attrs,cattrs,click]>=25,<28",
49
49
  ]
50
50
 
51
51
  [project.urls]
@@ -14,7 +14,6 @@ import rich_click as click
14
14
  import yaml
15
15
  from jinja2 import BaseLoader, ChoiceLoader, DictLoader, Environment, FileSystemLoader
16
16
  from jinja2.utils import import_string
17
- from typed_settings.dict_utils import set_path
18
17
 
19
18
  from makejinja.config import Config, DataNamespace
20
19
  from makejinja.plugin import Data, Functions, MutableData, PathFilter, Plugin
@@ -371,7 +370,8 @@ def load_data(config: Config) -> dict[str, Any]:
371
370
  log(f"Skip unsupported data '{path}'", config)
372
371
 
373
372
  for key, value in config.data_vars.items():
374
- set_path(data, key, value)
373
+ *parents, leaf = key.split(".")
374
+ dict_nested_setdefault(data, parents)[leaf] = value
375
375
 
376
376
  return data
377
377
 
File without changes