mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-07 04:13:00 +08:00
* feat: 实现导出存储的订阅信息的功能 * test: 编写导出功能测试 * test: 使用tmp_path * feat: 实现导入订阅文件功能 * refactor: 将订阅导入导出部分独立出来 * fix: 修复一些拼写错误 test: 完成import的第一个测试 * feat: 将订阅导入导出函数加入nb script test: 添加cli测试 * test: 完善subs import测试 * 🐛 fix nb cli entrypoint name error * fix: 修改错误的entry_point, 关闭yaml导出时对键名的排序 * fix: 使用更简短的命令名 * 🚚 将subs_io迁移到config下 * ♻️ 不再使用抛出异常的方式创建目录 * refactor: 将subscribe_export类转为函数 * refactor: 将subscribe_import类转为函数 * refactor: 根据重写的subs_io重新调整cli * test: 调整重写subs_io后的test * chore: 清理未使用的import内容 * feat(cli): 将--yaml更改为--format * test: 调整测试 * fix(cli): 为import添加不支持格式的报错 * ⚡ improve export performace * feat: subscribes_import函数不再需要传入参数函数,而是指定为add_subscribes fix: nbesf_parser在传入str时将调用parse_raw, 否则调用parse_obj * feat: subscribes_import现在会根据nbesf_data的版本选择合适的导入方式 * fix(test): 调整测试 * feat: nb bison export命令不再将文件导出到data目录,而是当前工作目录 * docs: 增添相关文档 * fix(test): 修复错误的变量名 --------- Co-authored-by: felinae98 <731499577@qq.com>
91 lines
2.3 KiB
TOML
91 lines
2.3 KiB
TOML
[tool.poetry]
|
|
name = "nonebot-bison"
|
|
version = "0.7.0"
|
|
description = "Subscribe message from social medias"
|
|
authors = ["felinae98 <felinae225@qq.com>"]
|
|
license = "MIT"
|
|
homepage = "https://github.com/felinae98/nonebot-bison"
|
|
keywords = ["nonebot", "nonebot2", "qqbot"]
|
|
readme = "README.md"
|
|
include = ["nonebot_bison/admin_page/dist/**/*"]
|
|
classifiers = [
|
|
"Development Status :: 4 - Beta",
|
|
"Operating System :: POSIX :: Linux",
|
|
"Operating System :: Microsoft :: Windows",
|
|
"Operating System :: MacOS",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
"License :: OSI Approved :: MIT License",
|
|
]
|
|
|
|
[tool.poetry.dependencies]
|
|
python = ">=3.10,<4.0.0"
|
|
nonebot2 = ">=2.0.0-rc.2"
|
|
httpx = ">=0.16.1"
|
|
bs4 = "^0.0.1"
|
|
tinydb = "^4.3.0"
|
|
feedparser = "^6.0.2"
|
|
pillow = ">=8.1,<10.0"
|
|
expiringdict = "^1.2.1"
|
|
pyjwt = "^2.1.0"
|
|
python-socketio = "^5.4.0"
|
|
nonebot-adapter-onebot = "^2.0.0-beta.1"
|
|
nonebot-plugin-htmlrender = ">=0.2.0"
|
|
nonebot-plugin-datastore = "^0.6.0a0"
|
|
nonebot-plugin-apscheduler = "^0.2.0"
|
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
ipdb = "^0.13.4"
|
|
pytest = "^7.0.1"
|
|
pytest-asyncio = "^0.18.1"
|
|
respx = "^0.20.0"
|
|
pytest-cov = "^3.0.0"
|
|
black = "^22.1.0"
|
|
isort = "^5.10.1"
|
|
pre-commit = "^2.17.0"
|
|
flaky = "^3.7.0"
|
|
nonebot2 = { extras = ["fastapi"], version = ">=2.0.0-rc.2" }
|
|
pytest-mock = "^3.10.0"
|
|
nonebug = { git = "https://github.com/nonebot/nonebug.git", rev = "master" }
|
|
pytest-xdist = { extras = ["psutil"], version = "^3.1.0" }
|
|
|
|
[tool.poetry.extras]
|
|
cli = ["anyio", "click", "typing-extensions"]
|
|
yaml = ["pyyaml"]
|
|
all = ["anyio", "click", "typing-extensions", "pyyaml"]
|
|
|
|
[tool.poetry.plugins.nb_scripts]
|
|
bison = "nonebot_bison.script.cli:main"
|
|
|
|
[build-system]
|
|
requires = ["poetry>=0.12"]
|
|
build-backend = "poetry.masonry.api"
|
|
|
|
[tool.pytest.ini_options]
|
|
markers = [
|
|
"compare: compare fetching result with rsshub",
|
|
"render: render img by chrome",
|
|
"external: use external resources",
|
|
]
|
|
asyncio_mode = "auto"
|
|
|
|
[tool.black]
|
|
line-length = 88
|
|
target-version = ["py310"]
|
|
include = '\.pyi?$'
|
|
extend-exclude = '''
|
|
'''
|
|
|
|
[tool.isort]
|
|
profile = "black"
|
|
line_length = 88
|
|
skip_gitignore = true
|
|
|
|
[tool.nonebot]
|
|
plugins = ["nonebot_bison"]
|
|
|
|
[tool.pyright]
|
|
pythonVersion = "3.10"
|
|
pythonPlatform = "All"
|