mirror of https://github.com/astral-sh/uv
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:
parent
75b323232d
commit
1e282da04a
|
|
@ -45,6 +45,9 @@ fn {{module_name}}() -> Result<()> {
|
||||||
'''{{requirement}}''',
|
'''{{requirement}}''',
|
||||||
{{/root.requires}}
|
{{/root.requires}}
|
||||||
]
|
]
|
||||||
|
{{#root.requires_python}}
|
||||||
|
requires-python = "{{.}}"
|
||||||
|
{{/root.requires_python}}
|
||||||
"###
|
"###
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue