makejinja 2.6.1__tar.gz → 2.6.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.1
2
2
  Name: makejinja
3
- Version: 2.6.1
3
+ Version: 2.6.2
4
4
  Summary: Generate entire directory structures using Jinja templates with support for external data and custom plugins.
5
5
  Home-page: https://mirkolenz.github.io/makejinja/
6
6
  License: MIT
@@ -38,6 +38,14 @@ class Undefined(Enum):
38
38
  strict = StrictUndefined
39
39
 
40
40
 
41
+ def _exclude_patterns_validator(instance, attribute, value) -> None:
42
+ if any("**" in pattern for pattern in value):
43
+ # raise ValueError("The recursive wildcard `**` is not supported by `exclude_patterns`.")
44
+ print(
45
+ "The recursive wildcard `**` is not supported by `exclude_patterns` (it acts like non-recursive `*`).",
46
+ )
47
+
48
+
41
49
  @ts.settings(frozen=True)
42
50
  class Delimiter:
43
51
  block_start: str = ts.option(
@@ -201,9 +209,11 @@ class Config:
201
209
  exclude_patterns: tuple[str, ...] = ts.option(
202
210
  default=tuple(),
203
211
  click={"param_decls": ("--exclude-pattern", "--exclude", "-E")},
212
+ validator=_exclude_patterns_validator,
204
213
  help="""
205
214
  Glob patterns pattern to exclude files matched.
206
- Applied against files discovered through `include_patterns`.
215
+ Applied against files discovered through `include_patterns` via `Path.match`.
216
+ **Note:** The recursive wildcard `**` is not supported (it acts like non-recursive `*`).
207
217
  Multiple can be provided.
208
218
  """,
209
219
  )
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "makejinja"
3
- version = "2.6.1"
3
+ version = "2.6.2"
4
4
  description = "Generate entire directory structures using Jinja templates with support for external data and custom plugins."
5
5
  authors = ["Mirko Lenz <mirko@mirkolenz.com>"]
6
6
  license = "MIT"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes