原创 PyPA Wheel vs Egg

https://packaging.python.org/discussions/wheel-vs-egg/#wheel-vs-egg Wheel and Egg are both packaging formats that a

原创 python-packaging 生成,打包,發佈,安裝

https://python-packaging-zh.readthedocs.io/zh_CN/latest/minimal.html python模塊或者包名應該遵循: 1.全小寫 2.不要和pypi上已有的包重複,即使不想發

原创 python package intro

package 一個package是個包含了__init__.py的路徑 查找 package 把package放在當前目錄下使用,只能用於本項目.如果想讓其他項目使用就應該放在PYTHONPATH裏,sys.path就是PYTH

原创 setuptools MANIFEST.in

MANIFEST.in在package外,所以路徑是相對於MANIFEST.in而不是相對於package的 graft ./package/data

原创 PyPA Installing Packages

https://packaging.python.org/tutorials/installing-packages/#installing-packages 確認pip,seuptools,wheel都是最新 python -m

原创 python-packaging 添加非代碼文件

https://python-packaging-zh.readthedocs.io/zh_CN/latest/non-code-files.html 在MANIFEST.in中指定非python的文件,這樣這些特殊文件就會被複制

原创 PyPA Creating Documentation

https://packaging.python.org/tutorials/creating-documentation/#creating-documentation 主要使用Sphinx

原创 setuptools Command Reference

https://setuptools.readthedocs.io/en/latest/setuptools.html#command-reference alias - Define shortcuts for commonly

原创 python-packaging 命令行腳本

https://python-packaging-zh.readthedocs.io/zh_CN/latest/command-line-scripts.html#scripts setuptools可以將命令行工具添加到包中.有

原创 setuptools find_packages

https://setuptools.readthedocs.io/en/latest/setuptools.html#using-find-packages find_packages 當工程比較小的時候,可以通過package

原创 setuptools Distributing a setuptools-based project

https://setuptools.readthedocs.io/en/latest/setuptools.html#distributing-a-setuptools-based-project https://packagi

原创 setuptools Including Data Files

https://setuptools.readthedocs.io/en/latest/setuptools.html#including-data-files 包含數據文件

原创 PyPA Packaging Python Projects

packaging_tutorial └── example_pkg └── __init__.py packaging_tutorial ├── LICENSE ├── README.md ├── example_pk

原创 setuptools Declaring Dependencies

https://setuptools.readthedocs.io/en/latest/setuptools.html#declaring-dependencies 聲明該包所依賴的包 不在PyPI上的包 Declaring “E

原创 PythonEggs

http://peak.telecommunity.com/DevCenter/PythonEggs 概覽 Eggs 之於 python,就像jar 之於Java python eggs 將python工程和相關的信息進行打包,有