From cd1fc67601ed94e90db0f1576bddfc04accc082f Mon Sep 17 00:00:00 2001 From: ForgQi <34411314+ForgQi@users.noreply.github.com> Date: Fri, 25 Mar 2022 21:55:41 +0800 Subject: [PATCH] optional dependency --- Dockerfile | 1 + biliup/__init__.py | 2 +- biliup/plugins/bili_webup.py | 4 ---- requirements.txt | 1 - 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 17c0670..5088798 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,7 @@ RUN \ apk add --no-cache ffmpeg musl-dev libffi-dev zlib-dev jpeg-dev ca-certificates && \ git clone --depth 1 https://github.com/ForgQi/biliup.git && \ cd biliup && \ + pip3 install --no-cache-dir quickjs && \ pip3 install --no-cache-dir -r requirements.txt && \ pip3 install -e . && \ apk del .build-deps diff --git a/biliup/__init__.py b/biliup/__init__.py index fde7948..510da17 100644 --- a/biliup/__init__.py +++ b/biliup/__init__.py @@ -6,7 +6,7 @@ from .common.timer import Timer from .engine.event import Event from .engine import config -__version__ = "0.2.6" +__version__ = "0.2.7" async def main(): diff --git a/biliup/plugins/bili_webup.py b/biliup/plugins/bili_webup.py index a2b5856..a83f389 100644 --- a/biliup/plugins/bili_webup.py +++ b/biliup/plugins/bili_webup.py @@ -256,10 +256,6 @@ class BiliBili: upload = lambda *args, **kwargs: self.cos(*args, **kwargs, internal=True) elif self._auto_os['os'] == 'kodo': upload = self.kodo - elif self._auto_os['os'] == "gcs": - raise NotImplementedError('gcs') - elif self._auto_os['os'] == "bos": - raise NotImplementedError('bos') else: logger.error(f"NoSearch:{self._auto_os['os']}") raise NotImplementedError(self._auto_os['os']) diff --git a/requirements.txt b/requirements.txt index ce30b05..6f6bf2b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,4 +8,3 @@ PyYAML>=4.2b1 streamlink>=0.14.2 ykdl>=1.7.1 rsa>=4.6 -quickjs>=1.17.0 \ No newline at end of file