nonebot-plugin-htmlrender 0.7.0a1__tar.gz → 0.7.0a2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/PKG-INFO +1 -1
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/nonebot_plugin_htmlrender/install.py +3 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/pyproject.toml +1 -1
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/uv.lock +298 -234
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/.dockerignore +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/.github/workflows/_test-os-arch.yml +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/.github/workflows/codecov.yml +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/.github/workflows/docker_image.yml +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/.github/workflows/publish.yml +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/.gitignore +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/.pre-commit-config.yaml +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/.python-version +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/LICENSE +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/README.md +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/docker-compose.yaml +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/dockerfile +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/docs/example.md +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/docs/html2pic.png +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/docs/md2pic.png +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/docs/template2pic.png +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/docs/text2pic.png +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/entrypoint.sh +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/example/docker-compose.yaml +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/example/entrypoint.sh +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/example/plugins/render/__init__.py +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/example/plugins/render/html2pic.html +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/example/plugins/render/templates/markdown.css +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/example/plugins/render/templates/mystyle.css +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/example/plugins/render/templates/progress.html.jinja2 +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/example/plugins/render/templates/text.html +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/example/plugins/render/utils.py +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/example/pyproject.toml +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/nonebot_plugin_htmlrender/__init__.py +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/nonebot_plugin_htmlrender/browser.py +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/nonebot_plugin_htmlrender/config.py +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/nonebot_plugin_htmlrender/consts.py +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/nonebot_plugin_htmlrender/data_source.py +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/nonebot_plugin_htmlrender/process.py +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/nonebot_plugin_htmlrender/signal.py +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/nonebot_plugin_htmlrender/templates/github-markdown-light.css +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/nonebot_plugin_htmlrender/templates/katex/katex.min.b64_fonts.css +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/nonebot_plugin_htmlrender/templates/katex/katex.min.js +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/nonebot_plugin_htmlrender/templates/katex/mathtex-script-type.min.js +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/nonebot_plugin_htmlrender/templates/katex/mhchem.min.js +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/nonebot_plugin_htmlrender/templates/markdown.html +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/nonebot_plugin_htmlrender/templates/pygments-default.css +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/nonebot_plugin_htmlrender/templates/text.css +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/nonebot_plugin_htmlrender/templates/text.html +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/nonebot_plugin_htmlrender/utils.py +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/tests/__init__.py +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/tests/conftest.py +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/tests/resources/test_template_filter.png +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/tests/templates/markdown.css +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/tests/templates/mystyle.css +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/tests/templates/progress.html.jinja2 +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/tests/templates/text.html +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/tests/test_browser.py +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/tests/test_deprecated_decorator.py +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/tests/test_htmlrender.py +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/tests/test_install.py +0 -0
- {nonebot_plugin_htmlrender-0.7.0a1 → nonebot_plugin_htmlrender-0.7.0a2}/tests/test_process.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nonebot-plugin-htmlrender
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.0a2
|
|
4
4
|
Summary: 通过浏览器渲染图片
|
|
5
5
|
Project-URL: Homepage, https://github.com/kexue-z/nonebot-plugin-htmlrender
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/kexue-z/nonebot-plugin-htmlrender/issues
|
|
@@ -4,6 +4,7 @@ from contextlib import asynccontextmanager
|
|
|
4
4
|
import os
|
|
5
5
|
from typing import Callable, Optional
|
|
6
6
|
from urllib.parse import urlparse
|
|
7
|
+
import sys
|
|
7
8
|
|
|
8
9
|
from nonebot import logger
|
|
9
10
|
|
|
@@ -171,6 +172,8 @@ async def execute_install_command(timeout: int) -> tuple[bool, str]:
|
|
|
171
172
|
install_signal_handler()
|
|
172
173
|
|
|
173
174
|
process = await create_process(
|
|
175
|
+
sys.executable,
|
|
176
|
+
"-m",
|
|
174
177
|
"playwright",
|
|
175
178
|
"install",
|
|
176
179
|
"--with-deps",
|