diff --git a/VERSION b/VERSION index bfa363e..f8e233b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.8.4 +1.9.0 diff --git a/docker/Dockerfile b/docker/Dockerfile index 2c79a0e..e263577 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -15,7 +15,6 @@ COPY . . # Install package from source code, compile translations RUN ./venv/bin/pip install Babel==2.12.1 && ./venv/bin/python scripts/compile_locales.py \ - && ./venv/bin/pip install torch==$(grep -o -m1 'torch.*;' pyproject.toml|sed 's/[^0-9.]//g') --extra-index-url https://download.pytorch.org/whl/cpu \ && ./venv/bin/pip install "numpy<2" \ && ./venv/bin/pip install gunicorn==23.0.0 \ && ./venv/bin/pip install . \ diff --git a/docker/arm.Dockerfile b/docker/arm.Dockerfile index 200e9a4..729ad3e 100644 --- a/docker/arm.Dockerfile +++ b/docker/arm.Dockerfile @@ -15,7 +15,6 @@ COPY . . # Install package from source code, compile translations RUN ./venv/bin/pip install Babel==2.12.1 && ./venv/bin/python scripts/compile_locales.py \ - && ./venv/bin/pip install torch==2.0.1 --extra-index-url https://download.pytorch.org/whl/cpu \ && ./venv/bin/pip install "numpy<2" \ && ./venv/bin/pip install gunicorn==23.0.0 \ && ./venv/bin/pip install . \ diff --git a/docker/cuda.Dockerfile b/docker/cuda.Dockerfile index 830f5c3..d35b85f 100644 --- a/docker/cuda.Dockerfile +++ b/docker/cuda.Dockerfile @@ -17,8 +17,6 @@ RUN pip3 install --no-cache-dir --upgrade pip && apt-get remove python3-pip --as RUN ln -s /usr/bin/python3 /usr/bin/python -RUN pip3 install --no-cache-dir torch==1.12.0+cu116 -f https://download.pytorch.org/whl/torch_stable.html - COPY . . RUN if [ "$with_models" = "true" ]; then \ @@ -36,6 +34,7 @@ RUN if [ "$with_models" = "true" ]; then \ RUN pip3 install Babel==2.12.1 && python3 scripts/compile_locales.py \ && pip3 install "numpy<2" \ && pip3 install . \ + && pip3 uninstall onnxruntime && pip3 install --no-cache-dir onnxruntime-gpu>=1.10.0 \ && pip3 cache purge # Depending on your cuda install you may need to uncomment this line to allow the container to access the cuda libraries diff --git a/docker/root-with-sshd.Dockerfile b/docker/root-with-sshd.Dockerfile index 1d95380..58bad77 100644 --- a/docker/root-with-sshd.Dockerfile +++ b/docker/root-with-sshd.Dockerfile @@ -20,7 +20,6 @@ COPY . . RUN <=2.5.0;python_version>='3.12'", ] [project.scripts] @@ -89,6 +85,9 @@ History = "https://github.com/LibreTranslate/LibreTranslate/releases" [tool.hatch.build] artifacts = ["*.mo"] +[tool.hatch.metadata] +allow-direct-references = true + # ENVIRONMENTS AND SCRIPTS [tool.hatch.envs.default] features = [