From 108ac0a98789f5df433fa80cf99cce07b9b621a0 Mon Sep 17 00:00:00 2001 From: deng Date: Fri, 24 Jan 2025 16:37:21 +0800 Subject: [PATCH] vault backup: 2025-01-24 16:37:21 --- .obsidian/workspace.json | 20 +++++++++---------- 組織/EverfortuneAI/{Note} Nox.md | 2 +- .../{Note} Packaging Python Project.md | 2 +- 組織/EverfortuneAI/{Note} Poetry.md | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index efc43a2..c1d65ad 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -13,12 +13,12 @@ "state": { "type": "markdown", "state": { - "file": "組織/EverfortuneAI/{Note} Packaging Python Project.md", + "file": "組織/EverfortuneAI/{Note} Poetry.md", "mode": "source", "source": true }, "icon": "lucide-file", - "title": "{Note} Packaging Python Project" + "title": "{Note} Poetry" } } ] @@ -42,17 +42,17 @@ } }, { - "id": "60971798df1781bf", + "id": "40a9a9a3e9418f4e", "type": "leaf", "state": { "type": "markdown", "state": { - "file": "組織/EverfortuneAI/{Note} Pytest.md", + "file": "組織/EverfortuneAI/{Note} Packaging Python Project.md", "mode": "source", "source": false }, "icon": "lucide-file", - "title": "{Note} Pytest" + "title": "{Note} Packaging Python Project" } } ], @@ -210,13 +210,13 @@ }, "active": "23dfe70ddddd299f", "lastOpenFiles": [ - "組織/EverfortuneAI/{Note} Poetry.md", "組織/EverfortuneAI/{Note} Pytest.md", - "組織/EverfortuneAI/resources/test_your_code.png", - "組織/EverfortuneAI/{Note} Nox.md", - "組織/EverfortuneAI/{Note} Packaging Python Project.md", - "組織/EverfortuneAI/resources/poetry.png", "README.md", + "組織/EverfortuneAI/{Note} Poetry.md", + "組織/EverfortuneAI/{Note} Packaging Python Project.md", + "組織/EverfortuneAI/{Note} Nox.md", + "組織/EverfortuneAI/resources/test_your_code.png", + "組織/EverfortuneAI/resources/poetry.png", "組織/EverfortuneAI/resources/should_setup_py_be_deleted.png", "組織/EverfortuneAI/resources/nox.png", "組織/EverfortuneAI/resources/nox 1.png", diff --git a/組織/EverfortuneAI/{Note} Nox.md b/組織/EverfortuneAI/{Note} Nox.md index f77cdf3..c3b41aa 100644 --- a/組織/EverfortuneAI/{Note} Nox.md +++ b/組織/EverfortuneAI/{Note} Nox.md @@ -14,7 +14,7 @@ tags: [image resource](https://nox.thea.codes/en/stable/index.html) - Abstract - - 在將Python專案打包時會遇到填寫依賴套件及其版本的問題,開發者必須逐一測試Python版本與依賴套件版本之間(甚至是跨平台)不同組合的可運行性,而Nox可以將這一流程自動化 + - 在將Python專案打包時會遇到填寫依賴套件及其版本的問題,開發者必須逐一測試Python版本與依賴套件版本之間(甚至是跨平台)不同組合的可運行性,而Nox可以將這一流程自動化。 - Steps 1. 在開發環境中安裝Nox(`python -m pip install nox`) 2. 在Package資料夾中產生*noxfile.py* 並撰寫測試程式碼(範例程式碼可見Note) diff --git a/組織/EverfortuneAI/{Note} Packaging Python Project.md b/組織/EverfortuneAI/{Note} Packaging Python Project.md index 57a9b46..98583c3 100644 --- a/組織/EverfortuneAI/{Note} Packaging Python Project.md +++ b/組織/EverfortuneAI/{Note} Packaging Python Project.md @@ -12,7 +12,7 @@ tags: [image resource](https://packaging.python.org/en/latest/guides/modernize-setup-py-project/) - Abstract - - 將辛辛苦苦寫出來的python專案打包發布至你想發布的地方! + - 將辛辛苦苦寫出來的python專案打包發布至你想發布的地方! - Concept - 工作分成兩階段 1. 將原始碼封裝成whl檔,稱為build,常見的build engine有[setuptools](https://setuptools.pypa.io/en/latest/)或是[hatchling](https://pypi.org/project/hatchling/) diff --git a/組織/EverfortuneAI/{Note} Poetry.md b/組織/EverfortuneAI/{Note} Poetry.md index f4bc5e0..593122d 100644 --- a/組織/EverfortuneAI/{Note} Poetry.md +++ b/組織/EverfortuneAI/{Note} Poetry.md @@ -12,7 +12,7 @@ tags: ![cover](resources/poetry.png) - Abstract - - 新時代的Python環境管理器,支援Python3.9+、多平台以及[pyproject.toml](https://packaging.python.org/en/latest/guides/writing-pyproject-toml/),功能全面適合管理複雜的開發專案 + - 新時代的Python環境管理器,支援Python3.9+、多平台以及[pyproject.toml](https://packaging.python.org/en/latest/guides/writing-pyproject-toml/),功能全面適合管理複雜的開發專案,以下內容大部分以Poetry2.0版本規範為主。 - Resources - [Installation](https://python-poetry.org/docs/#installation) - Poetry Official Doc - [Python 套件管理器——Poetry 完全入門指南](https://blog.kyomind.tw/python-poetry/) - Code and Me