Skip to content

Commit

Permalink
Put dynamic field under project instead of project.optional-dependenc…
Browse files Browse the repository at this point in the history
…ies (#1963)

The `dynamic = ["version"]` line should go under `[project]` instead of `[project.optional-dependencies]` when the `--mixed` flag is used.
  • Loading branch information
weiji14 authored Feb 27, 2024
1 parent 156fbee commit 2d8708e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/pyproject.toml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ classifiers = [
{% if bindings == "cffi" -%}
dependencies = ["cffi"]
{% endif -%}
dynamic = ["version"]
{% if mixed_non_src -%}
[project.optional-dependencies]
tests = [
"pytest",
]
{% endif -%}
dynamic = ["version"]

{% if bindings in ["bin", "cffi", "pyo3", "rust-cpython"] or mixed_non_src -%}
[tool.maturin]
Expand Down

0 comments on commit 2d8708e

Please sign in to comment.