Use dependency-group for "dev" and other non-user-facing dependencies
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 58/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 冷清
- 技術堆疊
- python
- 領域
- build-system, ci-cd
研究方向
首先檢查範本的 pyproject.toml,以及用於安裝開發相依項目的 CI 和設定指令碼。更新範本,使開發相依項目和其他非面向使用者的相依項目使用 [dependency-groups],並確保這些指令碼使用群組機制;當 extras 清單不再包含開發相依項目,且產生專案的設定仍能正常運作時,即表示完成。
由索引模型根據 Issue 內容生成。
描述
pyproject.toml specifies two types of dependency sets: "extras" and "groups." The first is specified by [project.optional-dependencies] (this is what we have now), and the second is specified by [dependency-groups]. Extras may be installed with the package-name[extra-name] syntax, while groups are not supposed to be user-facing, are not listed on PyPI, and may be installed with the --group flag.
I propose making "dev" a dependency group in the template and changing CI/setup scripts to use it this way. This will make the extras list cleaner.
https://packaging.python.org/en/latest/specifications/pyproject-toml/#dependencies-optional-dependencies
https://packaging.python.org/en/latest/specifications/dependency-groups/
LSDB at PyPI
- 主要語言
- Jinja
- 星號
- 85
- 分支
- 16
- 平均合併
- 21 小時 19 分鐘
- 30 天內合併 PR
- 15
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
lincc-frameworks/python-project-template 的其他 Issue
-
documentation good first issue
難度 2/5 1-3 小時 新手友好度 68/100
lincc-frameworks/python-project-template#589 ·
維護者通常 1 天內回覆
-
Add a few "base" pre-commit hooks可能重新可做 關聯的 PR 已關閉且未合併。 未關閉
難度 2/5 1-3 小時 新手友好度 62/100
lincc-frameworks/python-project-template#574 · 1 則留言 ·
維護者通常 1 天內回覆
-
enhancement
難度 2/5 1-3 小時 新手友好度 55/100
lincc-frameworks/python-project-template#620 ·
維護者通常 1 天內回覆
-
難度 3/5 1-2 天 新手友好度 45/100
lincc-frameworks/python-project-template#605 ·
維護者通常 1 天內回覆
-
enhancement
難度 3/5 1-2 天 新手友好度 58/100
lincc-frameworks/python-project-template#588 ·
維護者通常 1 天內回覆
查看 lincc-frameworks/python-project-template 的全部 Issue
相似的 Issue
-
maintenance
難度 1/5 1 小時以內 新手友好度 75/100
alphagov/accessible-autocomplete#826 ·
維護者通常 4 天內回覆
-
難度 2/5 1-3 小時 新手友好度 77/100
olahol/react-tagsinput#229 ·
-
難度 2/5 1-3 小時 新手友好度 86/100
google-ai-edge/litert-torch#1346 ·
維護者通常 1 天內回覆
-
status:waiting-for-triage type:bug
難度 1/5 1 小時以內 新手友好度 84/100
microsoftgraph/msgraph-sdk-dotnet#3194 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 75/100
維護者通常 1 天內回覆