Skip to content

Commit

Permalink
Merge pull request #1082 from messense/update-minijinja
Browse files Browse the repository at this point in the history
Update minijinja to 0.19.1
  • Loading branch information
messense authored Sep 4, 2022
2 parents fa11b0c + 467110e commit 7d92871
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
20 changes: 10 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ textwrap = "0.15.0"
ignore = "0.4.18"
dialoguer = { version = "0.10.2", default-features = false }
console = "0.15.0"
minijinja = "0.18.1"
minijinja = "0.19.1"
lddtree = "0.2.9"
cc = "1.0.72"
clap = { version = "3.2.19", features = ["derive", "env", "wrap_help"] }
Expand Down
8 changes: 4 additions & 4 deletions src/templates/Cargo.toml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ edition = "2021"
[lib]
name = "{{ crate_name }}"
crate-type = ["cdylib"]
{%- endif -%}
{%- endif %}

[dependencies]
{%- if bindings == "pyo3" -%}
{% if bindings == "pyo3" -%}
pyo3 = { version = "0.16.5", features = ["extension-module"] }
{%- elif bindings == "rust-cpython" -%}
{% elif bindings == "rust-cpython" -%}
cpython = { version = "0.7.0", features = ["extension-module"] }
{%- endif -%}
{% endif -%}
14 changes: 7 additions & 7 deletions src/templates/pyproject.toml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ classifiers = [
]
{% if bindings == "cffi" -%}
dependencies = ["cffi"]
{%- endif -%}
{%- endif %}

{%- if bindings == "cffi" or bindings == "bin" or mixed -%}
{% if bindings == "cffi" or bindings == "bin" or mixed -%}
[tool.maturin]
{%- if bindings == "cffi" or bindings == "bin" -%}
{% if bindings == "cffi" or bindings == "bin" -%}
bindings = "{{ bindings }}"
{%- endif -%}
{%- if mixed -%}
{% endif -%}
{% if mixed -%}
python-source = "python"
{%- endif -%}
{%- endif -%}
{% endif -%}
{% endif -%}

0 comments on commit 7d92871

Please sign in to comment.