mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
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
1 changed files with 3 additions and 0 deletions
|
@ -45,6 +45,9 @@ fn {{module_name}}() -> Result<()> {
|
||||||
'''{{requirement}}''',
|
'''{{requirement}}''',
|
||||||
{{/root.requires}}
|
{{/root.requires}}
|
||||||
]
|
]
|
||||||
|
{{#root.requires_python}}
|
||||||
|
requires-python = "{{.}}"
|
||||||
|
{{/root.requires_python}}
|
||||||
"###
|
"###
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue