diff --git a/Dockerfile b/Dockerfile index f6c1bacdd..dd44be401 100644 --- a/Dockerfile +++ b/Dockerfile @@ -46,7 +46,7 @@ RUN apt -qq update && apt -qq install -y --no-install-recommends \ COPY requirements.txt . RUN pip install -U setuptools wheel && \ - pip install -r requirements.txt + pip install -r --no-cache-dir requirements.txt COPY . . diff --git a/init/utils.sh b/init/utils.sh index 3c5bc3b0f..5c3474827 100644 --- a/init/utils.sh +++ b/init/utils.sh @@ -94,7 +94,7 @@ upgradePip() { } installReq() { - pip3 install -r $1/requirements.txt &> /dev/null + pip3 install -U -r $1/requirements.txt &> /dev/null } printLine() { diff --git a/userge/core/methods/utils/restart.py b/userge/core/methods/utils/restart.py index af71885e5..3b08bd835 100644 --- a/userge/core/methods/utils/restart.py +++ b/userge/core/methods/utils/restart.py @@ -32,7 +32,7 @@ async def restart(self, update_req: bool = False, # pylint: disable=arguments-d if update_req: _LOG.info(_LOG_STR, "Installing Requirements...") os.system( - "pip3 install -U pip && pip3 install -r requirements.txt") + "pip3 install -U pip && pip3 install -U -r requirements.txt") _LOG.info(_LOG_STR, "Requirements Installed !") if hard: os.kill(os.getpid(), signal.SIGUSR1) diff --git a/userge/versions.py b/userge/versions.py index 34b9d9701..b87efc5d1 100644 --- a/userge/versions.py +++ b/userge/versions.py @@ -3,8 +3,8 @@ from pyrogram import __version__ as __pyro_version__ # noqa __major__ = 0 -__minor__ = 4 -__micro__ = 2 +__minor__ = 5 +__micro__ = 0 __python_version__ = f"{version_info[0]}.{version_info[1]}.{version_info[2]}" __license__ = "[GNU GPL v3.0](https://github.com/code-rgb/userge-x/blob/alpha/LICENSE)"