From 983dce8ee92a00d80ee04e960961e98355008067 Mon Sep 17 00:00:00 2001 From: deng Date: Thu, 23 Jan 2025 09:10:05 +0800 Subject: [PATCH] vault backup: 2025-01-23 09:10:05 --- .obsidian/workspace.json | 18 +++++++++--------- .../{Note} Packaging Python Project.md | 1 + 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index c55a6b2..efc43a2 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -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", diff --git a/組織/EverfortuneAI/{Note} Packaging Python Project.md b/組織/EverfortuneAI/{Note} Packaging Python Project.md index 0be92aa..57a9b46 100644 --- a/組織/EverfortuneAI/{Note} Packaging Python Project.md +++ b/組織/EverfortuneAI/{Note} Packaging Python Project.md @@ -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