From 1e282da04a265081f82993114c9ce217e45ffb8a Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Wed, 12 Jun 2024 10:44:22 -0400 Subject: [PATCH] scripts/scenarios: add requires-python to packse lock test template packse has the ability to specify a project wide Requires-Python constraint, but our lock template wasn't forwarding this to the corresponding pyproject.toml. This update makes that happen. --- scripts/scenarios/templates/lock.mustache | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/scenarios/templates/lock.mustache b/scripts/scenarios/templates/lock.mustache index 198b12a29..b5d89525e 100644 --- a/scripts/scenarios/templates/lock.mustache +++ b/scripts/scenarios/templates/lock.mustache @@ -45,6 +45,9 @@ fn {{module_name}}() -> Result<()> { '''{{requirement}}''', {{/root.requires}} ] + {{#root.requires_python}} + requires-python = "{{.}}" + {{/root.requires_python}} "### )?;