Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump to v0.8.0 #156

Merged
merged 18 commits into from
Oct 4, 2024
Merged

Bump to v0.8.0 #156

merged 18 commits into from
Oct 4, 2024

Conversation

Ljzd-PRO
Copy link
Owner

@Ljzd-PRO Ljzd-PRO commented Oct 4, 2024

Changes

💡 Feature

  • Stop using binary prefix (IEEE 1541-2002) in download speed unit (use KB, MB, ... instead of KiB, MiB, ...)
  • Stop downloading when failing to retrieve the creator's name, instead of using the creator ID as the directory name to continue downloading
  • In addition to the prod.env file, KToolBox also reads configurations from the .env file
  • When KToolBox starts, it will output the configuration details for user inspection

🪲 Fix

  • Fix the issue where the log output interrupts the download progress bar
  • Fix the job.filename_format configuration, where {} is simply replaced with the filename and extension without considering its position
    • 📖More information: Configuration-Reference-JobConfiguration
      # Rename attachments in numerical order, e.g. `1.png`, `2.png`, ...
      KTOOLBOX_JOB__SEQUENTIAL_FILENAME=True
      
      # `{}`: Basic filename
      # Rename attachments to `1_[2024-1-1].png`, `2_[2024-1-1].png`, ...
      KTOOLBOX_JOB__FILENAME_FORMAT="{}_[{published}]"

💡 新特性

  • 停止在下载速度单位中使用二进制前缀(IEEE 1541-2002)(使用 KB, MB, ... 而不是 KiB, MiB, ...)
  • 获取作者名称失败时停止下载,而不是采用作者ID作为目录名继续下载
  • 除了 prod.env 文件以外,KToolBox 也会从 .env 文件读取配置
  • KToolBox 启动时将会输出配置详情,以便用户检查

🪲 修复

  • 修复下载进度条被输出的日志打断的问题
  • 修复 job.filename_format 文件名格式配置中的 {} 被简单地替换成文件名和后缀,而没有考虑其所在位置的问题
    • 📖更多信息: 配置-参考-JobConfiguration
      # 按照数字顺序重命名附件, 例如 `1.png`, `2.png`, ...
      KTOOLBOX_JOB__SEQUENTIAL_FILENAME=True
      
      # `{}`:基本文件名
      # 附件将被重命名为 `1_[2024-1-1].png`, `2_[2024-1-1].png`, ...
      KTOOLBOX_JOB__FILENAME_FORMAT="{}_[{published}]"

dependabot bot and others added 17 commits July 8, 2024 20:28
Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.7.1 to 2.8.2.
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md)
- [Commits](pydantic/pydantic@v2.7.1...v2.8.2)

---
updated-dependencies:
- dependency-name: pydantic
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [pyinstaller](https://github.com/pyinstaller/pyinstaller) from 6.6.0 to 6.10.0.
- [Release notes](https://github.com/pyinstaller/pyinstaller/releases)
- [Changelog](https://github.com/pyinstaller/pyinstaller/blob/develop/doc/CHANGES.rst)
- [Commits](pyinstaller/pyinstaller@v6.6.0...v6.10.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
…r-6.10.0

build(deps-dev): bump pyinstaller from 6.6.0 to 6.10.0
….8.2

build(deps): bump pydantic from 2.7.1 to 2.8.2
Copy link

codecov bot commented Oct 4, 2024

Codecov Report

Attention: Patch coverage is 60.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 78.13%. Comparing base (ec98ea6) to head (3842954).
Report is 12 commits behind head on master.

Files with missing lines Patch % Lines
ktoolbox/__main__.py 0.00% 2 Missing ⚠️
ktoolbox/cli.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #156      +/-   ##
==========================================
- Coverage   78.33%   78.13%   -0.20%     
==========================================
  Files          34       34              
  Lines         960      965       +5     
  Branches      161      161              
==========================================
+ Hits          752      754       +2     
- Misses        170      172       +2     
- Partials       38       39       +1     
Flag Coverage Δ
macos-13-3.10 77.92% <60.00%> (-0.31%) ⬇️
macos-13-3.8 77.68% <60.00%> (-0.20%) ⬇️
macos-13-3.9 77.57% <60.00%> (-0.20%) ⬇️
macos-latest-3.11 77.92% <60.00%> (-0.31%) ⬇️
ubuntu-latest-3.10 77.92% <60.00%> (-0.31%) ⬇️
ubuntu-latest-3.11 77.92% <60.00%> (-0.31%) ⬇️
ubuntu-latest-3.8 77.68% <60.00%> (-0.20%) ⬇️
ubuntu-latest-3.9 ?
windows-latest-3.10 78.29% <50.00%> (-0.36%) ⬇️
windows-latest-3.11 78.29% <50.00%> (-0.36%) ⬇️
windows-latest-3.8 78.03% <50.00%> (-0.25%) ⬇️
windows-latest-3.9 77.91% <50.00%> (-0.25%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Ljzd-PRO Ljzd-PRO linked an issue Oct 4, 2024 that may be closed by this pull request
@Ljzd-PRO Ljzd-PRO merged commit bfeb5e9 into master Oct 4, 2024
11 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upgrade Bump to new version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failed to fetch the name of creator 附件文件名格式自定义的几个问题
1 participant