Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For others stumbling across this, the idea was considered in PEP 722 (https://peps.python.org/pep-0722/) and is supported today by uv (https://docs.astral.sh/uv/guides/scripts/#declaring-script-d...).


Not just considered in PEP 722 - the uv feature is just an implementation of PEP 723 [1] (PEP 722's successor/competitor), which was accepted. Other tools like pipx support it as well.

[1]: https://peps.python.org/pep-0723/


Oh! So it was. If I ever remembered that those were separate PEPs, I'd forgotten it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: