diff --git a/porcupine1/CHANGELOG.md b/porcupine1/CHANGELOG.md index 24507da..d56dc94 100644 --- a/porcupine1/CHANGELOG.md +++ b/porcupine1/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 1.1.0 + +- Add tests and Github actions +- Add `--log-format` argument +- Add `--version` argument + ## 1.0.1 - Use wyoming-porcupine1 package diff --git a/porcupine1/Dockerfile b/porcupine1/Dockerfile index 140dfc6..320c41e 100644 --- a/porcupine1/Dockerfile +++ b/porcupine1/Dockerfile @@ -4,21 +4,22 @@ ARG TARGETVARIANT # Install porcupine1 WORKDIR /usr/src -ENV WYOMING_PORCUPINE1_VERSION=1.0.1 -ENV PIP_BREAK_SYSTEM_PACKAGES=1 +ENV WYOMING_PORCUPINE1_VERSION=1.1.0 RUN \ apt-get update \ && apt-get install -y --no-install-recommends \ python3 \ python3-pip \ + python3-venv \ \ - && pip3 install --no-cache-dir -U \ + && python3 -m venv .venv \ + && .venv/bin/pip3 install --no-cache-dir -U \ setuptools \ wheel \ - && pip3 install --no-cache-dir \ + && .venv/bin/pip3 install --no-cache-dir \ --extra-index-url https://www.piwheels.org/simple \ - "wyoming-porcupine1==${WYOMING_PORCUPINE1_VERSION}" \ + "wyoming-porcupine1 @ https://github.com/rhasspy/wyoming-porcupine1/archive/refs/tags/v${WYOMING_PORCUPINE1_VERSION}.tar.gz" \ \ && rm -rf /var/lib/apt/lists/* diff --git a/porcupine1/run.sh b/porcupine1/run.sh index 175197a..eb6473a 100755 --- a/porcupine1/run.sh +++ b/porcupine1/run.sh @@ -1,3 +1,4 @@ #!/usr/bin/env bash -python3 -m wyoming_porcupine1 \ +cd /usr/src +.venv/bin/python3 -m wyoming_porcupine1 \ --uri 'tcp://0.0.0.0:10400' "$@"