vault backup: 2025-01-24 16:37:21
This commit is contained in:
parent
983dce8ee9
commit
108ac0a987
|
@ -13,12 +13,12 @@
|
||||||
"state": {
|
"state": {
|
||||||
"type": "markdown",
|
"type": "markdown",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "組織/EverfortuneAI/{Note} Packaging Python Project.md",
|
"file": "組織/EverfortuneAI/{Note} Poetry.md",
|
||||||
"mode": "source",
|
"mode": "source",
|
||||||
"source": true
|
"source": true
|
||||||
},
|
},
|
||||||
"icon": "lucide-file",
|
"icon": "lucide-file",
|
||||||
"title": "{Note} Packaging Python Project"
|
"title": "{Note} Poetry"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -42,17 +42,17 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "60971798df1781bf",
|
"id": "40a9a9a3e9418f4e",
|
||||||
"type": "leaf",
|
"type": "leaf",
|
||||||
"state": {
|
"state": {
|
||||||
"type": "markdown",
|
"type": "markdown",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "組織/EverfortuneAI/{Note} Pytest.md",
|
"file": "組織/EverfortuneAI/{Note} Packaging Python Project.md",
|
||||||
"mode": "source",
|
"mode": "source",
|
||||||
"source": false
|
"source": false
|
||||||
},
|
},
|
||||||
"icon": "lucide-file",
|
"icon": "lucide-file",
|
||||||
"title": "{Note} Pytest"
|
"title": "{Note} Packaging Python Project"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -210,13 +210,13 @@
|
||||||
},
|
},
|
||||||
"active": "23dfe70ddddd299f",
|
"active": "23dfe70ddddd299f",
|
||||||
"lastOpenFiles": [
|
"lastOpenFiles": [
|
||||||
"組織/EverfortuneAI/{Note} Poetry.md",
|
|
||||||
"組織/EverfortuneAI/{Note} Pytest.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",
|
"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/should_setup_py_be_deleted.png",
|
||||||
"組織/EverfortuneAI/resources/nox.png",
|
"組織/EverfortuneAI/resources/nox.png",
|
||||||
"組織/EverfortuneAI/resources/nox 1.png",
|
"組織/EverfortuneAI/resources/nox 1.png",
|
||||||
|
|
|
@ -14,7 +14,7 @@ tags:
|
||||||
[image resource](https://nox.thea.codes/en/stable/index.html)
|
[image resource](https://nox.thea.codes/en/stable/index.html)
|
||||||
|
|
||||||
- Abstract
|
- Abstract
|
||||||
- 在將Python專案打包時會遇到填寫依賴套件及其版本的問題,開發者必須逐一測試Python版本與依賴套件版本之間(甚至是跨平台)不同組合的可運行性,而Nox可以將這一流程自動化
|
- 在將Python專案打包時會遇到填寫依賴套件及其版本的問題,開發者必須逐一測試Python版本與依賴套件版本之間(甚至是跨平台)不同組合的可運行性,而Nox可以將這一流程自動化。
|
||||||
- Steps
|
- Steps
|
||||||
1. 在開發環境中安裝Nox(`python -m pip install nox`)
|
1. 在開發環境中安裝Nox(`python -m pip install nox`)
|
||||||
2. 在Package資料夾中產生*noxfile.py* 並撰寫測試程式碼(範例程式碼可見Note)
|
2. 在Package資料夾中產生*noxfile.py* 並撰寫測試程式碼(範例程式碼可見Note)
|
||||||
|
|
|
@ -12,7 +12,7 @@ tags:
|
||||||
[image resource](https://packaging.python.org/en/latest/guides/modernize-setup-py-project/)
|
[image resource](https://packaging.python.org/en/latest/guides/modernize-setup-py-project/)
|
||||||
|
|
||||||
- Abstract
|
- Abstract
|
||||||
- 將辛辛苦苦寫出來的python專案打包發布至你想發布的地方!
|
- 將辛辛苦苦寫出來的python專案打包發布至你想發布的地方!
|
||||||
- Concept
|
- Concept
|
||||||
- 工作分成兩階段
|
- 工作分成兩階段
|
||||||
1. 將原始碼封裝成whl檔,稱為build,常見的build engine有[setuptools](https://setuptools.pypa.io/en/latest/)或是[hatchling](https://pypi.org/project/hatchling/)
|
1. 將原始碼封裝成whl檔,稱為build,常見的build engine有[setuptools](https://setuptools.pypa.io/en/latest/)或是[hatchling](https://pypi.org/project/hatchling/)
|
||||||
|
|
|
@ -12,7 +12,7 @@ tags:
|
||||||

|

|
||||||
|
|
||||||
- Abstract
|
- 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
|
- Resources
|
||||||
- [Installation](https://python-poetry.org/docs/#installation) - Poetry Official Doc
|
- [Installation](https://python-poetry.org/docs/#installation) - Poetry Official Doc
|
||||||
- [Python 套件管理器——Poetry 完全入門指南](https://blog.kyomind.tw/python-poetry/) - Code and Me
|
- [Python 套件管理器——Poetry 完全入門指南](https://blog.kyomind.tw/python-poetry/) - Code and Me
|
||||||
|
|
Loading…
Reference in New Issue