lightnovel-center / linovelib2epub

Crawl light novel from some websites and convert it to epub.
https://pypi.org/project/linovelib2epub/
GNU Affero General Public License v3.0
71 stars 8 forks source link

[BUG] requirements.txt 需更新或添加限定 Python 版本等資訊 #44

Closed Kuan-Lun closed 2 months ago

Kuan-Lun commented 4 months ago

Describe the bug(描述这个BUG) A clear and concise description of what the bug is. 如目前要求使用的 pillow 版本 9.2.0 並不運作於 Python 3.12,需要使用 10 以上版本。 (還有 lxml 等套件也有同樣的問題)

Expected behavior(期望的行为) A clear and concise description of what you expected to happen.

於說明文件添加 Python 版本的限制,或將 requirements.txt 內的 == 改為 >=。

個人是建議使用 setuptools 的 step.py 撰寫相依套件,這可以做比較細節的環境處理。

wdpm commented 4 months ago

感谢你留意到这个关于python版本兼容性的问题。 pillow版本 官方文档 中对此进行了详细的说明: image

python status 为: image

目前版本python 3.10+ pillow 9.2.0这个组合的确过于局限了。

我认为应该扩大兼容范围,提升pillow版本到 >=10.1 来兼容 python 3.10-3.13

wdpm commented 4 months ago

個人是建議使用 setuptools 的 step.py 撰寫相依套件,這可以做比較細節的環境處理。

setup.py只是一种传统的使用python代码来定义python项目依赖构建的方式,和目前这个项目在用的 *.toml配置并没有太本质的区别。

wdpm commented 4 months ago

暂时不会花太多精力来处理这个依赖更新的问题。目前仅更新pillow到 >=10.1

bs4==0.0.1
demjson3==3.0.5
EbookLib==0.17.1
fake-useragent==1.1.1
requests==2.28.1
rich==12.5.1
uuid==1.30
pillow==10.1.0           <---------------
inquirer==3.1.2
aiofiles==23.1.0
aiohttp==3.8.4
dynaconf==3.2.3
brotli==1.1.0
lxml==4.9.2
tabulate==0.9.0
DrissionPage==4.0.4.5
selenium==4.17.2
esprima==4.0.1
github-actions[bot] commented 2 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 0 days.

github-actions[bot] commented 2 months ago

This issue was closed because it has been stalled for 0 days with no activity.