Skip to content

Commit

Permalink
Release 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
likianta committed Oct 22, 2021
1 parent 1be3e96 commit b0e8568
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 14 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
>
> | 版本类型 | 说明 | 体积 | 下载方式 |
> | -------- | ---- | ---- | -------- |
> | 第三方库 | 适合开发者在 Python 工程中引入 | 4MB | `pip3.9 install pyportable-installer>=4.0.0b4` |
> | 独立免安装版 (标准版) | 用户下载后解压即可使用, 无需 Python 开发环境, 安装过程需要联网 | 23MB | [点我下载](https://likianta.lanzoui.com/iWrUgun7pdi) |
> | 独立免安装版 (完整版) | 用户下载后解压即可使用, 无需 Python 开发环境, 完全离线安装 | 47MB | [点我下载](https://likianta.lanzoui.com/ikYzpun7p6b) |
> | 第三方库 | 适合开发者在 Python 工程中引入 | 4MB | `pip install pyportable-installer>=4.0.0` |
> | 独立免安装版 (标准版) | 用户下载后解压即可使用, 无需 Python 开发环境, 安装过程需要联网 | TODO | [点我下载 (TODO)]() |
> | 独立免安装版 (完整版) | 用户下载后解压即可使用, 无需 Python 开发环境, 完全离线安装 | TODO | [点我下载 (TODO)]() |
>
> ![](./build/demo-20210929-111301.gif)
Expand Down Expand Up @@ -105,14 +105,14 @@
通过 pip 安装:
```
pip install pyportable-installer>=4.0.0b4
pip install pyportable-installer>=4.0.0
```
> 注意事项:
>
> 1. pyportable-installer 最新发布版本仍处于 beta 阶段, 正式版预计于 2021 年 11 月之前发布
> 2. 上代版本 (3.3.3 及以前) 已不推荐使用
> 3. pyportable-installer 需要 Python 3.9 及以上的解释器运行. 使用 Python 3.8 及以下的 pip 安装会失败
> 3. pyportable-installer 需要 Python 3.8 及以上的解释器运行
下面以一个 "Hello World" 项目为例, 介绍具体的打包工作:
Expand Down
31 changes: 31 additions & 0 deletions docs/devnote/pypi-publish-guide.zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# 检查以下位置的版本号是否得到同步更新

- pyportable_installer/\_\_init\_\_.py
- pyproject.toml
- pyportable_installer/template/pyproject.json

更多:

- README.md

# 检查依赖项是否过时

- requirements.txt
- requirements-dev.txt
- pyproject.toml

# 清理

清理以下项 (非必要):

- lib/x\*
- lib/temp_lib/x\*
- history/\*

# 在发布前测试

- 测试 ASSETS_ENTRY 的定位和初始化目录创建是否成功 (`pyportable_installer._env` & `pyportable_installer.path_model`)
- 测试以下打包是否成功
- depsland
- hello_world
- pyportable_installer 对自身的打包
17 changes: 11 additions & 6 deletions examples/hello_world_project/pyproject.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"app_name": "Hello World",
"app_version": "0.4.11",
"app_version": "0.5.0",
"description": "Say hello to the given name.",
"authors": ["Likianta <likianta@foxmail.com>"],
"authors": [
"Likianta <likianta@foxmail.com>"
],
"build": {
"proj_dir": "./hello_world",
"dist_dir": "../../dist/{app_name_lower}_{app_version}",
Expand Down Expand Up @@ -53,13 +55,16 @@
"options": {
"cython": {
"c_compiler": "msvc",
"python_path": "auto_detect"},
"python_path": "auto_detect"
},
"mypyc": {
"c_compiler": "msvc",
"python_path": "auto_detect"},
"python_path": "auto_detect"
},
"nuitka": {
"c_compiler": "msvc",
"python_path": "auto_detect"},
"python_path": "auto_detect"
},
"pyarmor": {
"liscense": "trial",
"obfuscate_level": 0
Expand All @@ -83,5 +88,5 @@
"enable_console": true
},
"note": "",
"pyportable_installer_version": "4.0.0b5"
"pyportable_installer_version": "4.0.0"
}
2 changes: 1 addition & 1 deletion pyportable_installer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
from .main import full_build
from .main import min_build

__version__ = '4.0.0b6'
__version__ = '4.0.0'
2 changes: 1 addition & 1 deletion pyportable_installer/template/pyproject.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,5 @@
"enable_console": true
},
"note": "",
"pyportable_installer_version": "4.0.0b5"
"pyportable_installer_version": "4.0.0"
}
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Follow the guide of 'docs/devnote/pypi-publish-guide.md'.

[tool.poetry]
name = "pyportable-installer"
version = "4.0.0b6"
version = "4.0.0"
description = "Build and distribute portable Python application by all-in-one configuration file."
authors = ["Likianta <likianta@foxmail.com>"]
license = "MIT"
Expand Down

0 comments on commit b0e8568

Please sign in to comment.