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.
This commit is contained in:
Andrew Gallant 2024-06-12 10:44:22 -04:00 committed by Andrew Gallant
parent 75b323232d
commit 1e282da04a

View file

@ -45,6 +45,9 @@ fn {{module_name}}() -> Result<()> {
'''{{requirement}}''',
{{/root.requires}}
]
{{#root.requires_python}}
requires-python = "{{.}}"
{{/root.requires_python}}
"###
)?;