Skip to content

Commit 4de00f1

Browse files
Update public release to v3.2.8 (#4)
* release v3.2.8 * ci: add workflow_dispatch trigger * ci: add setuptools to proto stub venv for GitHub Actions * chore: update tts-service-api submodule to v3.2.0 (adds OGG_OPUS, A_LAW, MU_LAW) * ci: fix uv cache-dependency-glob to use pyproject.toml --------- Co-authored-by: YASoftwareDev <YASoftwareDev@users.noreply.github.com>
1 parent 1e96090 commit 4de00f1

35 files changed

Lines changed: 2821 additions & 827 deletions

.codespellrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[codespell]
2+
# Ignore Polish language words that codespell flags as misspellings
3+
ignore-words-list = tekst,numer,Tekst

.dockerignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
build/
2+
**/*.egg-info/
3+
**/.eggs/
4+
.git/
5+
.git*
6+
**/.gitlab/
7+
**/__pycache__/
8+
**/.venv/
9+
**/.vscode/

.github/workflows/test.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ jobs:
2525

2626
- name: Install uv
2727
uses: astral-sh/setup-uv@v5
28+
with:
29+
cache-dependency-glob: "pyproject.toml"
2830

2931
- name: Generate proto stubs
3032
run: |
3133
uv venv .venv
3234
source .venv/bin/activate
33-
uv pip install --quiet "grpcio-tools>=1.70.0,<1.71.0"
35+
uv pip install --quiet "grpcio-tools>=1.70.0,<1.71.0" setuptools
3436
PYTHONPATH=. python setup.py build_grpc
3537
3638
- name: Run tests via tox
@@ -53,12 +55,14 @@ jobs:
5355

5456
- name: Install uv
5557
uses: astral-sh/setup-uv@v5
58+
with:
59+
cache-dependency-glob: "pyproject.toml"
5660

5761
- name: Generate proto stubs
5862
run: |
5963
uv venv .venv
6064
source .venv/bin/activate
61-
uv pip install --quiet "grpcio-tools>=1.70.0,<1.71.0"
65+
uv pip install --quiet "grpcio-tools>=1.70.0,<1.71.0" setuptools
6266
PYTHONPATH=. python setup.py build_grpc
6367
6468
- name: Run tests via tox

.gitignore

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,22 +59,33 @@ instance/
5959
.ipynb_checkpoints
6060

6161
# Environments
62+
.env
6263
.venv
64+
env/
6365
venv/
6466
ENV/
67+
env.bak/
6568
venv.bak/
6669

67-
# proto sources
68-
tts_client_python/proto/*
70+
# audio files
71+
*.wav
72+
*.ogg
6973

70-
# ignore files in directory `docker/wav`
71-
docker/wav/*
74+
# ignore files in directory `wav`
75+
docker/audio/*
7276

73-
# ignore files in directory `docker/tls`
77+
# ignore files in directory `tls`
7478
docker/tls/*
7579

76-
# ignore files in directory `docker/txt`
80+
# ignore files in directory `txt`
7781
docker/txt/*
7882

83+
# ignore files in directory 'proto'
84+
tts_client_python/proto/*
85+
7986
# but keep the directories with .gitkeep file
8087
!/**/.gitkeep
88+
89+
# generated by setup.sh from internal pre-commit repo — not versioned
90+
.pre-commit-config.yaml
91+
pre-commit/

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "submodules/tts-service-api"]
22
path = submodules/tts-service-api
3-
url = https://github.com/techmo-pl/tts-service-api.git
3+
url = https://github.com/techmo-pl/tts-service-api

CHANGELOG.md

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,28 @@
11
# Techmo TTS gRPC Python client Changelog
22

3-
**Note** - this project was previously developed in the github repository: https://github.com/techmo-pl/tts-client
4-
To find the older versions of the application or check the history of changes, use the old repository.
5-
The changelog below only describes the changes made within the new repository.
3+
## [3.2.8] - 2026-03-25
64

5+
### Fixed
6+
7+
- `tts_client_python/tts_client.py`: legal header corrected from "Techmo ASR Client" to "Techmo TTS Client".
8+
- `README.md`: removed non-existent `-v` short flag from `--print-service-version` option table.
9+
- `tests/conftest.py`: removed dead `asr_service_address` fixture (no test uses it).
10+
- `pytest.ini`: removed dead `asr` marker and `not asr` from `addopts`.
11+
- `tox.ini`: removed `ASR_*` from `passenv` (no ASR tests exist).
12+
13+
14+
## [3.2.7] - 2026-03-23
715

8-
## [3.0.0] - 2022-07-07
916
### Added
10-
- Handling new proto messages for TTS Service API 3.0.0
17+
18+
- `install.sh`: check for `uv` before use and print install instructions.
19+
- `install.sh`: check for uninitialised `tts-service-api` submodule at startup.
20+
- `install.sh`: warn about missing `libportaudio2` after install completes.
21+
- `README.md`: add `uv` to prerequisites with canonical install command.
22+
23+
### Fixed
24+
25+
- `setup.py`: proto generation now raises a clear `FileNotFoundError` when the
26+
submodule is absent instead of a bare path error.
27+
- `tests/conftest.py`: print `libportaudio2` install hint to stderr at session
28+
start instead of relying on pytest's end-of-session warnings summary.

Dockerfile

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,46 @@
1-
FROM python:3.6-slim
1+
FROM python:3.8-slim AS build-stage
22

3-
LABEL maintainer="<jan.wozniak@techmo.pl>"
43
ARG DEBIAN_FRONTEND=noninteractive
4+
ENV PIP_ROOT_USER_ACTION=ignore
55

6-
ADD ./tts_client_python /tts_client/tts_client_python
7-
ADD ./requirements.txt setup.py README.md /tts_client/
6+
COPY submodules/tts-service-api /tts-client-python/submodules/tts-service-api
7+
COPY tts_client_python /tts-client-python/tts_client_python
8+
COPY setup.py pyproject.toml README.md /tts-client-python/
89

9-
WORKDIR /tts_client
10+
WORKDIR /tts-client-python
1011

12+
# hadolint ignore=DL3008
1113
RUN apt-get update \
12-
&& apt-get dist-upgrade -y \
1314
&& apt-get install -y --no-install-recommends \
1415
build-essential \
1516
libportaudio2 \
1617
python3-pip \
1718
python3-dev \
1819
&& apt-get clean \
1920
&& rm -fr /var/lib/apt/lists/* \
20-
&& rm -fr /var/cache/apt/* \
21-
&& pip3 install -r requirements.txt \
22-
&& pip install -e .
21+
&& rm -fr /var/cache/apt/*
2322

24-
ENTRYPOINT ["python3", "tts_client_python/tts_client.py"]
23+
# hadolint ignore=DL3013
24+
RUN pip install --no-cache-dir --upgrade pip \
25+
&& pip install --no-cache-dir .
26+
27+
28+
FROM python:3.8-slim
29+
30+
LABEL maintainer="Techmo sp. z o.o. <https://github.com/techmo-pl>"
31+
32+
# hadolint ignore=DL3008
33+
RUN apt-get update \
34+
&& apt-get install -y --no-install-recommends \
35+
libportaudio2 \
36+
&& apt-get clean \
37+
&& rm -fr /var/lib/apt/lists/* \
38+
&& rm -fr /var/cache/apt/*
39+
40+
COPY --from=build-stage /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages
41+
COPY --from=build-stage /tts-client-python/tts_client_python /tts-client-python/tts_client_python
42+
43+
WORKDIR /tts-client-python
44+
45+
COPY ./docker-entrypoint.sh /
46+
ENTRYPOINT ["/docker-entrypoint.sh"]

0 commit comments

Comments
 (0)