From 8cc6c4fb9336ec0c54295a0b7ae8cbfc5d1390c5 Mon Sep 17 00:00:00 2001 From: Wei Ji <23487320+weiji14@users.noreply.github.com> Date: Tue, 27 Feb 2024 09:50:23 +1300 Subject: [PATCH] Put dynamic field under project instead of project.optional-dependencies The `dynamic = ["version"]` line should go under `[project]` instead of `[project.optional-dependencies]` when the `--mixed` flag is used. --- src/templates/pyproject.toml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/templates/pyproject.toml.j2 b/src/templates/pyproject.toml.j2 index 13fa35155..5ab63e647 100644 --- a/src/templates/pyproject.toml.j2 +++ b/src/templates/pyproject.toml.j2 @@ -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]