发布版打包步骤
- 切换python版本至python37
- 在pythonTB/DalineUnit中,运行pycPackage.py将文件打包为pyc
- 将打所有pyc文件拷贝至当前目录下DalineUnit文件夹下,所有需要的文件也拷到相同目录(比如目前的src文件夹,也会打包至whl中)
- 修改setup中version版本号,注意上传到pypi中的只能增加
- 命令行运行python setup.py bdist_wheel --python-tag=py37,生成dist\DalineUnit-0.0.44-py37-none-any.whl
- 切换python版本至python36,重复0-4
- 命令行运行twine upload dist/*,上传至pypi
打包本地测试版 -pyc
- 和上面一样,只是不允许6上传步骤
打包本地调试版 -.py
上述的打包方法都是pyc文件,无法调试,可以将python源文件打包成whl后,安装,然后可以调试 0. 将所有需要的python源文件拷贝至当前目录下DalineUnit文件夹下
- 命令行运行python setup.py bdist_wheel --python-tag=py37,生成dist\DalineUnit-0.0.44-py37-none-any.whl
- 运行pip install E:\Code\DalineUnitPackage\dist\DalineUnit-0.0.44-py37-none-any.whl
- 在python的安装目录,site-package/DalineUnit下可看到源文件,可以调试
- 建议debug在site-package/DalineUnit下修改源文件,调试完成后将.py文件拷回至pythonTB中,然后重新运行打包发布步骤
Metadata
Release files for DalineUnit 0.0.69
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| DalineUnit-0.0.69-py37-none-any.whl | Python 3.7 | none | any | Details |
| DalineUnit-0.0.69-py36-none-any.whl | Python 3.6 | none | any | Details |
Total release size: 7.4 MB
Release files / DalineUnit-0.0.69-py37-none-any.whl
| Download URL | DalineUnit-0.0.69-py37-none-any.whl |
|---|---|
| Size | 3.7 MB |
| Tags | Python 3.7 |
|
SHA-256 checksum How to use checksums |
b1d6c3c067428a5d8d126b6312db9e68408f31729ba3b6cd890b30371d4fd97b
|
|
BLAKE2b-256 checksum How to use checksums |
a21094a239f3e0f6dcc63d91b59f838b132f736e10220b45c259c0679401c941
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
|
Release files / DalineUnit-0.0.69-py36-none-any.whl
| Download URL | DalineUnit-0.0.69-py36-none-any.whl |
|---|---|
| Size | 3.7 MB |
| Tags | Python 3.6 |
|
SHA-256 checksum How to use checksums |
bf06ccc9c5418cef597d19ed7980a431b33dee41b19edff49c8a2f5eef1c79e2
|
|
BLAKE2b-256 checksum How to use checksums |
13a78108339228ad50a917aa51ca8ab7d63cc3265fcceae90387cc97576f4e1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
|