Consider a Python manager for inline script metadata (PEP 723) #27889
Replies: 3 comments 5 replies
-
Is the format strictly defined (e.g. like toml/yaml), or flexible, like python code? If it's not strictly defined, it won't be possible to support all possibilities, and potentially may not even be worth supporting a small subset. In such cases users would need to use Renovate's custom regex manager instead of a dedicated manager. If it's strictly defined, or there are very common conventions, then potentially it's appropriate for its own manager. |
Beta Was this translation helpful? Give feedback.
-
We should probably close this discussion, as this has been implemented in #31266. |
Beta Was this translation helpful? Give feedback.
-
Ty
…On Sat, Nov 2, 2024, 12:42 PM Mathieu Kniewallner ***@***.***> wrote:
We should probably close this discussion, as this has been implemented in
#31266 <#31266>.
—
Reply to this email directly, view it on GitHub
<#27889 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZOSUBNWN2YJUFRZRQDZ2B3Z6T6GVAVCNFSM6AAAAABESTIK6SVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMJTGAZTMNA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
PEP 723 specifies "inline script metadata", e.g. a way for Python scripts to specify their own requirements in a
pyproject.toml
-like field embedded in a specially-formatted comment in the script itself. This allowspipx run
/pip-run
/etc. to run dev tooling Python scripts that specify their own dependencies and avoids the chicken-and-egg problem of needing a Python environment to set up a Python environment.It would be nice if dependencies in standalone scripts (e.g. in dev tooling) could be managed by Renovate! Some signals to pay attention to regarding the acceptance/adoption of PEP 723 are as follows. This PEP is currently "Accepted" status, but has not yet been marked "Final":
But there's a note just below the table of contents suggesting that it will reach "Final" status under the following conditions (I've linked to indications that these steps are complete):
Implemented in "a couple of tools", and they mention
pipx
andpip-run
by name:pipx
1.4.2 (2024-01-12)pip-run
12.5.0 (2024-01-20)uv
viauv pipx run
or similar: A requested feature (Auv run
subcommand astral-sh/uv#1207,uv pipx {run,install}
astral-sh/uv#1173)Additionally, the January 2024 history entry suggests:
So this spec seems stable enough to start considering a manager implementation. Once PEP 723 is officially marked "Final," maybe a manager implementation can begin at Renovate? Thank you for your consideration!
Beta Was this translation helpful? Give feedback.
All reactions