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

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

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