vault backup: 2025-01-24 16:37:21

This commit is contained in:
deng 2025-01-24 16:37:21 +08:00
parent 983dce8ee9
commit 108ac0a987
4 changed files with 13 additions and 13 deletions

View File

@ -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",

View File

@ -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

View File

@ -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/)

View File

@ -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