(评论)
(comments)

原始链接: https://news.ycombinator.com/item?id=43500124

Hacker News 的讨论重点是如何使用 `uv` 和 PEP 723 创建自包含的 Python 脚本。用户 frfl 询问如何在基于 LSP 的编辑器中集成 `uv`,描述了一个使用 `uv sync --script <脚本文件>` 来提取虚拟环境路径的工作流程,并质疑是否存在更优雅的方法。另一位用户 dagenix 指出,文章声称 PEP 723 消除了对包管理器的需求,但这与文章大量依赖 `uv` (一个明确定义为 Python 包管理器的工具) 存在矛盾。讨论围绕着 `uv` 和 PEP 723 在实际使用中的易用性和集成挑战展开,尤其是在 IDE 工作流程中。

相关文章
  • (评论) 2025-03-14
  • (评论) 2025-03-17
  • (评论) 2024-02-16
  • 从Pyenv切换到Uv 2025-03-14
  • Uv:Rust 中的 Python 封装 2024-02-16

  • 原文
    Hacker News new | past | comments | ask | show | jobs | submit login
    Using uv and PEP 723 for Self-Contained Python Scripts (thisdavej.com)
    10 points by thisdavej 1 hour ago | hide | past | favorite | 2 comments










    Anyone use PEP 723 + uv with an LSP based editor? What's your workflow? I looked into it briefly, the only thing I saw after a lot of digging around was to use `uv sync --script