vault backup: 2025-01-23 09:10:05

This commit is contained in:
deng 2025-01-23 09:10:05 +08:00
parent becf7b3781
commit 983dce8ee9
2 changed files with 10 additions and 9 deletions

View File

@ -13,12 +13,12 @@
"state": {
"type": "markdown",
"state": {
"file": "組織/EverfortuneAI/{Note} Poetry.md",
"file": "組織/EverfortuneAI/{Note} Packaging Python Project.md",
"mode": "source",
"source": true
},
"icon": "lucide-file",
"title": "{Note} Poetry"
"title": "{Note} Packaging Python Project"
}
}
]
@ -128,7 +128,7 @@
"state": {
"type": "backlink",
"state": {
"file": "組織/EverfortuneAI/{Note} Poetry.md",
"file": "組織/EverfortuneAI/{Note} Packaging Python Project.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
@ -138,7 +138,7 @@
"unlinkedCollapsed": true
},
"icon": "links-coming-in",
"title": "{Note} Poetry 的反向連結"
"title": "{Note} Packaging Python Project 的反向連結"
}
},
{
@ -147,12 +147,12 @@
"state": {
"type": "outgoing-link",
"state": {
"file": "組織/EverfortuneAI/{Note} Poetry.md",
"file": "組織/EverfortuneAI/{Note} Packaging Python Project.md",
"linksCollapsed": false,
"unlinkedCollapsed": true
},
"icon": "links-going-out",
"title": "{Note} Poetry 的對外連結"
"title": "{Note} Packaging Python Project 的對外連結"
}
},
{
@ -174,10 +174,10 @@
"state": {
"type": "outline",
"state": {
"file": "組織/EverfortuneAI/{Note} Poetry.md"
"file": "組織/EverfortuneAI/{Note} Packaging Python Project.md"
},
"icon": "lucide-list",
"title": "{Note} Poetry 的大綱"
"title": "{Note} Packaging Python Project 的大綱"
}
},
{
@ -210,8 +210,8 @@
},
"active": "23dfe70ddddd299f",
"lastOpenFiles": [
"組織/EverfortuneAI/{Note} Pytest.md",
"組織/EverfortuneAI/{Note} Poetry.md",
"組織/EverfortuneAI/{Note} Pytest.md",
"組織/EverfortuneAI/resources/test_your_code.png",
"組織/EverfortuneAI/{Note} Nox.md",
"組織/EverfortuneAI/{Note} Packaging Python Project.md",

View File

@ -27,6 +27,7 @@ tags:
- 使用setup.py進行封裝雖然很常見於各種教學文件中甚至是GPT-4o給的答案但Python[官方文件](https://packaging.python.org/en/latest/)現在都使用pyproject.toml進行套件封裝如封面所示所以讀文件吧親愛的工程師
- 若想進行發布測試可使用官方提供的測試伺服器[TestPyPI](https://test.pypi.org/)(其資料庫會定期清理資料,發布的套件與使用者帳號可能都會被刪除)
- 用ChatGPT生成LICENSE還蠻方便的呢即便一些在prompt中沒提到的細節它也會留意到修改完的文件需要請主管確認範圍再請法務部門審閱之後就能加進套件了
- 可參考[本文](https://semver.org/lang/zh-TW/)瞭解版本管理哲學雖不一定會使用SemVer但有些概念可借鏡
- 以下為pyproject.toml範例程式碼
```toml