228 Commits

Author SHA1 Message Date
muzing
23ae7522d0 Update open_qfile.py
更新与完善 docstrings;
将 `qba_to_str()` 提取成独立的函数,方便其他模块调用;
2023-12-28 23:36:17 +08:00
muzing
f78e697693 Fix PackagingTask.option_error
修复 option_error 信号参数值的类型,解决选项有错误时界面却不能正常处理的问题;
将槽函数(也是回调函数)`handle_option()` 重命名为 `on_opt_selected()`,含义更清晰;
更新与补充 docstrings;
2023-12-28 22:53:33 +08:00
muzing
bc035f955b Update PyEnv
更新 `PyEnv` 模块:
极大丰富注释与文档;
初步实现 `infer_type()` 方法;
删除不必要的实例属性;
2023-12-28 22:50:30 +08:00
muzing
40e3941c86 Fix import 2023-12-28 22:20:37 +08:00
muzing
b712168f35 Refactor Platform
删去 `platform_constants` 模块,将平台相关常量和功能移至 `runtime_info` 模块中;
将枚举类 `PLATFORM` 重命名为 `Platform`,避免全大写名称与全局变量混淆,同时修改为 enum.StrEnum 类型;
补充注释与文档;
2023-12-28 17:10:40 +08:00
muzing
a3c431a3de Add more exclude rules for dev tools
为开发工具补充更多排除规则,免去检查编译资源文件;
2023-12-28 17:04:47 +08:00
muzing
a7cb5aa722 Add package-level docstrings
增加与完善软件包级文档字符串
2023-12-28 11:00:42 +08:00
muzing
ea39c09317 Version 0.2.1
新功能:
- 界面上许多控件增加 ToolTip 提示,显示对应的 PyInstaller 选项详情;
- `--hidden-import` 添加“隐式导入”功能;
- 增加浏览当前 Python 环境中所有已安装库的窗口对话框 `PkgBrowserDlg`;

重大修改:
- 重新实现 `PyEnv` 类,不再仅是简单存储可执行文件的数据类,还重构集成了获取版本、已安装包等等功能;
- 将 `PyinstallerArgs` 枚举类重命名为 `PyInstOpt`;
- `PackagingTask` 实例属性中改用字典存储打包任务参数;

修复与优化:
- 优化 `QtFileOpen` 与 `PyQTextFileIo`,有了更完善的异常机制;
- 其他异常处理与优化;
2023-12-27 16:39:35 +08:00
muzing
f3b0bc9ac1 Optimize subprocess
增加一批异常处理机制,增强代码健壮性(感谢“通义灵码”!);
2023-12-27 16:39:35 +08:00
muzing
c4e9591d3d Fix PyEnv
修复相对导入问题;
处理 pip list 命令中更新 pip 提示的问题;
删去 `PyEnvComboBox` 中无用的条目;
2023-12-27 16:39:35 +08:00
muzing
d0e71181e7 Update PkgBrowserDlg
添加更新界面上表格控件数据的方法;
2023-12-27 16:39:35 +08:00
muzing
562a73c72d Refactor PyEnv
启用新版 `PyEnv`:
不再仅仅是一个数据类型,还包括获取版本、已安装包等功能;
从 `Constants` 移至 `Utilities` 中;
2023-12-27 16:39:35 +08:00
muzing
b257c35b08 Add --hidden-import feature
添加“添加隐式导入”功能;
2023-12-27 16:39:35 +08:00
muzing
7e942711a6 Add ToolTips for several widgets
为中央控件上的数个控件添加提示,对应PyInstaller文档中的选项详情;
2023-12-27 16:39:35 +08:00
muzing
7e17fce92c Update
注释等微小优化
2023-12-27 16:39:35 +08:00
muzing
a9b9e2be12 Update AboutDlg
增强文件读取异常处理能力;
2023-12-27 16:39:35 +08:00
muzing
2e44079b5b Update pyinstaller_option_widget
改变函数 `load_pyinst_options()` 的返回值类型,使数据更精练,为添加控件界面 ToolTip 做准备;
增强文件读取的异常处理能力;
2023-12-27 16:39:35 +08:00
muzing
e5651cc0c2 Update open_qfile.py
更新 `QtFileOpen` 与 `PyQTextFileIo`:
增强处理(抛出)异常的能力;
完善文档与类型注解等;
2023-12-27 16:39:35 +08:00
muzing
343af9ab7c Update ROADMAP 2023-12-27 16:39:35 +08:00
muzing
37b46cedb3 Rename PyinstallerArgs to PyInstOpt
将重要的枚举类型 `PyinstallerArgs` 重命名为 `PyInstOpt`,缩短长度减少折行、同时与PyInstaller官方文档中的用词 "option" 保持一致;
2023-12-27 16:39:35 +08:00
muzing
501af69f4f Isort fix 2023-12-27 16:39:35 +08:00
muzing
974e79bdd6 Optimize PackagingTask
优化 `PackagingTask` 类,改用字典存储打包任务中的参数;
2023-12-27 16:39:35 +08:00
muzing
f419484061 Add MultiItemEditWindow
添加多条目选择窗口类(未完成)
2023-12-27 16:39:35 +08:00
muzing
1d4e1eba7c Add python_env_class 2023-12-27 16:39:35 +08:00
pre-commit-ci[bot]
94674f49dd [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black-pre-commit-mirror: 23.12.0 → 23.12.1](https://github.com/psf/black-pre-commit-mirror/compare/23.12.0...23.12.1)
- [github.com/astral-sh/ruff-pre-commit: v0.1.8 → v0.1.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.8...v0.1.9)
2023-12-26 11:11:09 +08:00
dependabot[bot]
e8ce14fb66 Bump black from 23.12.0 to 23.12.1
Bumps [black](https://github.com/psf/black) from 23.12.0 to 23.12.1.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/23.12.0...23.12.1)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-25 13:14:55 +08:00
dependabot[bot]
9847a1032c Bump mypy from 1.7.1 to 1.8.0
Bumps [mypy](https://github.com/python/mypy) from 1.7.1 to 1.8.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python/mypy/compare/v1.7.1...v1.8.0)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-25 13:14:39 +08:00
dependabot[bot]
eb735cb233 Bump ruff from 0.1.8 to 0.1.9
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.1.8 to 0.1.9.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/v0.1.8...v0.1.9)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-25 13:14:05 +08:00
muzing
40664add6d Version 0.2.0
新功能:
- 添加数据/二进制文件
v0.2.0-alpha
2023-12-20 20:19:47 +08:00
muzing
8f3308896d Update README 2023-12-20 20:19:47 +08:00
muzing
3616ccba3b Update about text 2023-12-20 20:19:47 +08:00
muzing
60c8e59127 Update .pre-commit-config.yaml 2023-12-20 20:19:47 +08:00
muzing
7a214823db Add classifiers 2023-12-20 20:19:47 +08:00
muzing
6de6f8e693 Add __version__ 2023-12-20 20:19:47 +08:00
木子
6d15ca3e12
Merge pull request #12 from muziing/add-data-dev
Add `--add-data`
2023-12-20 17:41:52 +08:00
muzing
e89da64510 Update PackagingTask and CenterWidget
更新 `PackagingTask`,明确其存储选项功能;
更新 `CenterWidget`,添加成功更新添加数据文件/二进制文件后的状态栏提示语;
2023-12-20 17:37:59 +08:00
muzing
6cee2a7c85 Update AddDataWindow
更新添加数据窗口控件:
添加图标;
修复无法处理相对路径时会导致崩溃的问题;
增加自动删除空白行功能;
修改槽函数命名方式,与其他部分统一;
其他微小优化;
2023-12-20 17:22:56 +08:00
muzing
31da8ac60e Fix --add-data and --add-binary
修复打包流程中添加数据文件与添加二进制文件的错误;
2023-12-20 16:56:43 +08:00
muzing
50d8d5e796 Add --add-data and --add-binary
为主界面和打包流程「添加数据文件」与「添加二进制文件」功能;
2023-12-20 10:58:20 +08:00
muzing
85497bf47e Add AddDataWindow
初步实现添加数据窗口控件及其主要功能;
2023-12-20 00:45:49 +08:00
木子
745af304d6
Merge pull request #11 from muziing/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2023-12-19 09:45:50 +08:00
pre-commit-ci[bot]
a22f57c078
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pycqa/isort: 5.13.1 → 5.13.2](https://github.com/pycqa/isort/compare/5.13.1...5.13.2)
- [github.com/astral-sh/ruff-pre-commit: v0.1.7 → v0.1.8](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.7...v0.1.8)
2023-12-18 21:06:26 +00:00
木子
2be2bed9bd
Merge pull request #10 from muziing/dev
Version `0.1.13`
v0.1.13-alpha
2023-12-18 10:58:30 +08:00
muzing
3e65dc1676 Version 0.1.13
新功能:
- 初步加入 Python 解释器选择下拉框,但还未实现用户添加与编辑功能;
- 完善运行时信息相关功能,添加“是否位于PyInstaller捆绑冻结环境中”;
- 增加运行时中文环境则使用中文翻译版PyInstaller功能

修复:
- 修复英文版 PyInstaller 选项数据文件的错误;

重构与其他代码优化:
- 运行时信息移至 `Constants` 包中的全局变量;
- 主界面中央控件改用继承方式,更好地组织 Win/Mac 特有功能控件;
- 改用 `QtFileOpen` 打开已编译资源中的文本文件;
- 重命名已编译资源文件名称,体现其特殊身份;
2023-12-18 10:55:52 +08:00
muzing
97d47ef33b Use open_dir_in_explorer() 2023-12-18 08:52:06 +08:00
muzing
8adcd2fa1a Add PyEnvComboBox to main widget 2023-12-18 08:50:50 +08:00
muzing
21e6239df9 Use QtFileOpen
将读取已编译文本资源文件的功能交由 `QtFileOpen` 与 `PyQTextFileIo` 处理;
完善 `PyQTextFileIo` 的类型注解,使其通过 mypy 检查;
2023-12-18 08:35:12 +08:00
muzing
7ae1210df9 Add Utilities
添加 `open_dir_in_explorer()`、`get_sys_python()`、`QtFileOpen` 等实用函数与工具类;
2023-12-18 08:10:15 +08:00
muzing
b884a94b2c Update doc 2023-12-17 20:37:48 +08:00
muzing
3b3b19bdb5 Update RuntimeInfo, add is_bundled
更新运行时信息类,添加对当前是否通过 PyInstaller 捆绑环境运行的识别;
2023-12-17 20:33:37 +08:00