makejinja 2.5.0__tar.gz → 2.6.0__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.5.0
3
+ Version: 2.6.0
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
@@ -160,6 +160,8 @@ def handle_input_dir(
160
160
  for include_pattern in config.include_patterns
161
161
  for input_path in sorted(user_input_path.glob(include_pattern))
162
162
  )
163
+ # If the user provided a Jinja suffix, enforce it
164
+ enforce_jinja_suffix = bool(config.jinja_suffix)
163
165
 
164
166
  for input_path in input_paths:
165
167
  relative_path = input_path.relative_to(user_input_path)
@@ -181,7 +183,7 @@ def handle_input_dir(
181
183
  output_path,
182
184
  config,
183
185
  env,
184
- enforce_jinja_suffix=True,
186
+ enforce_jinja_suffix,
185
187
  )
186
188
  rendered_files[output_path] = input_path
187
189
 
@@ -207,13 +207,14 @@ class Config:
207
207
  Multiple can be provided.
208
208
  """,
209
209
  )
210
- jinja_suffix: str = ts.option(
210
+ jinja_suffix: str | None = ts.option(
211
211
  default=".jinja",
212
212
  help="""
213
213
  File ending of Jinja template files.
214
214
  All files with this suffix in `inputs` matched by `pattern` are passed to the Jinja renderer.
215
215
  This suffix is not enforced for individual files passed to `inputs`.
216
216
  **Note:** Should be provided *with* the leading dot.
217
+ If empty, all files are considered to be Jinja templates.
217
218
  """,
218
219
  )
219
220
  keep_jinja_suffix: bool = ts.option(
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "makejinja"
3
- version = "2.5.0"
3
+ version = "2.6.0"
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"
@@ -57,8 +57,8 @@ typed-settings = { version = ">=23.1, <25", extras = [
57
57
  immutables = "^0.20"
58
58
 
59
59
  [tool.poetry.group.dev.dependencies]
60
- pytest = "^7.4"
61
- pytest-cov = "^4.1"
60
+ pytest = "^8.0.0"
61
+ pytest-cov = "^5.0.0"
62
62
 
63
63
  [tool.poetry.group.docs.dependencies]
64
64
  pdoc = "^14.1"
File without changes
File without changes
File without changes
File without changes
File without changes