From a163e187d77cd01462f8303ef01b807f3b3a9270 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20P=C4=99dzim=C4=85=C5=BC?= Date: Fri, 27 Mar 2026 14:37:40 +0100 Subject: [PATCH 1/8] =?UTF-8?q?chore:=20update=20submodule=20URL=20after?= =?UTF-8?q?=20tts-service-api=20=E2=86=92=20tts-api=20rename?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitmodules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitmodules b/.gitmodules index 56a2afa..727f5be 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "submodules/tts-service-api"] path = submodules/tts-service-api - url = https://github.com/techmo-pl/tts-service-api + url = https://github.com/techmo-pl/tts-api.git From 06fc7b91e1d1416b4b8ca0cc211954eebc8250ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20P=C4=99dzim=C4=85=C5=BC?= Date: Fri, 27 Mar 2026 14:39:00 +0100 Subject: [PATCH 2/8] chore: update repository URL after rename to tts-api-python --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3089314..ca97591 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,7 @@ dependencies = [ ] [project.urls] -repository = "https://github.com/techmo-pl/tts-service-api-python" +repository = "https://github.com/techmo-pl/tts-api-python" [tool.setuptools.dynamic] version = { attr = "tts_service_api.VERSION.__version__" } From f8d36f00af1a387099304a7ae32e3468cd99e8fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20P=C4=99dzim=C4=85=C5=BC?= Date: Fri, 27 Mar 2026 14:43:10 +0100 Subject: [PATCH 3/8] =?UTF-8?q?feat:=20rename=20PyPI=20package=20tts-servi?= =?UTF-8?q?ce-api=20=E2=86=92=20tts-api,=20add=20deprecation=20shim?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - pyproject.toml: name changed from tts-service-api to tts-api - VERSION.py: bumped to 3.2.1 to mark the rename release - shim/: new minimal tts-service-api@999.0.0 shim that depends on tts-api and emits a DeprecationWarning on import; to be published separately To publish: cd tts-api-python && uv build && uv publish cd tts-api-python/shim && uv build && uv publish --- pyproject.toml | 2 +- shim/README.md | 17 +++++++++++++++++ shim/pyproject.toml | 18 ++++++++++++++++++ shim/tts_service_api_shim/__init__.py | 8 ++++++++ tts_service_api/VERSION.py | 2 +- 5 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 shim/README.md create mode 100644 shim/pyproject.toml create mode 100644 shim/tts_service_api_shim/__init__.py diff --git a/pyproject.toml b/pyproject.toml index ca97591..a4cdaf6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ requires = ["setuptools>=61", "grpcio-tools>=1.70.0,<1.71.0"] build-backend = "setuptools.build_meta" [project] -name = "tts-service-api" +name = "tts-api" description = "Techmo TTS Service API" dynamic = ["version"] readme = { file = "README.md", content-type = "text/markdown" } diff --git a/shim/README.md b/shim/README.md new file mode 100644 index 0000000..e546615 --- /dev/null +++ b/shim/README.md @@ -0,0 +1,17 @@ +# tts-service-api (deprecated shim) + +> **This package is deprecated.** It exists only for backwards compatibility. + +`tts-service-api` has been renamed to [`tts-api`](https://pypi.org/project/tts-api/). + +Installing `tts-service-api` will automatically install `tts-api` as a dependency. + +## Migration + +Update your dependencies: + +```sh +pip install tts-api +``` + +This shim will be **yanked** after 2027-03-01. diff --git a/shim/pyproject.toml b/shim/pyproject.toml new file mode 100644 index 0000000..50278cc --- /dev/null +++ b/shim/pyproject.toml @@ -0,0 +1,18 @@ +[build-system] +requires = ["setuptools>=61"] +build-backend = "setuptools.build_meta" + +[project] +name = "tts-service-api" +version = "999.0.0" +description = "Deprecated shim — installs tts-api (the canonical package)" +readme = { file = "README.md", content-type = "text/markdown" } +authors = [{ name = "Techmo sp. z o.o", email = "kontakt@techmo.pl" }] +requires-python = ">=3.8" +dependencies = ["tts-api"] + +[project.urls] +repository = "https://github.com/techmo-pl/tts-api-python" + +[tool.setuptools.packages.find] +include = ["tts_service_api_shim*"] diff --git a/shim/tts_service_api_shim/__init__.py b/shim/tts_service_api_shim/__init__.py new file mode 100644 index 0000000..3943312 --- /dev/null +++ b/shim/tts_service_api_shim/__init__.py @@ -0,0 +1,8 @@ +import warnings + +warnings.warn( + "The 'tts-service-api' package is deprecated and will not receive updates. " + "Please update your dependencies to 'tts-api'.", + DeprecationWarning, + stacklevel=2, +) diff --git a/tts_service_api/VERSION.py b/tts_service_api/VERSION.py index 1173108..1da6a55 100644 --- a/tts_service_api/VERSION.py +++ b/tts_service_api/VERSION.py @@ -1 +1 @@ -__version__ = "3.2.0" +__version__ = "3.2.1" From c7bb34df5c8015383d8b141c8fbac8d3a455bb07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20P=C4=99dzim=C4=85=C5=BC?= Date: Fri, 27 Mar 2026 19:45:35 +0100 Subject: [PATCH 4/8] fix: make tts-service-api shim metadata-only, add CHANGELOG 3.2.1 - shim/: removed broken tts_service_api_shim package (warning never fired because nobody imports tts_service_api_shim; real module comes from tts-api) Shim is now metadata-only: depends on tts-api, ships no Python code. - CHANGELOG.md: added 3.2.1 entry documenting the PyPI rename --- CHANGELOG.md | 8 ++++++++ shim/pyproject.toml | 4 +++- shim/tts_service_api_shim/__init__.py | 8 -------- 3 files changed, 11 insertions(+), 9 deletions(-) delete mode 100644 shim/tts_service_api_shim/__init__.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a38565..1ddc0cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,14 @@ The major version of this package tracks the TTS Service API major version. ## [Unreleased] +## [3.2.1] - 2026-03-27 + +### Changed +- PyPI package renamed from `tts-service-api` to `tts-api` (ASR naming convention). + Import name `tts_service_api` is unchanged. +- Deprecation shim published separately as `tts-service-api==999.0.0` + (pulls in `tts-api` as dependency). + ## [3.2.0] - 2026-03-27 ### Added diff --git a/shim/pyproject.toml b/shim/pyproject.toml index 50278cc..fc9c70f 100644 --- a/shim/pyproject.toml +++ b/shim/pyproject.toml @@ -10,9 +10,11 @@ readme = { file = "README.md", content-type = "text/markdown" } authors = [{ name = "Techmo sp. z o.o", email = "kontakt@techmo.pl" }] requires-python = ">=3.8" dependencies = ["tts-api"] +classifiers = ["Development Status :: 7 - Inactive"] [project.urls] repository = "https://github.com/techmo-pl/tts-api-python" [tool.setuptools.packages.find] -include = ["tts_service_api_shim*"] +where = ["."] +include = [] diff --git a/shim/tts_service_api_shim/__init__.py b/shim/tts_service_api_shim/__init__.py deleted file mode 100644 index 3943312..0000000 --- a/shim/tts_service_api_shim/__init__.py +++ /dev/null @@ -1,8 +0,0 @@ -import warnings - -warnings.warn( - "The 'tts-service-api' package is deprecated and will not receive updates. " - "Please update your dependencies to 'tts-api'.", - DeprecationWarning, - stacklevel=2, -) From 7ed7823ac7f42b85fc38b30d6d294502b6031267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20P=C4=99dzim=C4=85=C5=BC?= Date: Sat, 28 Mar 2026 07:38:09 +0100 Subject: [PATCH 5/8] =?UTF-8?q?ci:=20add=20GitHub=20Actions=20workflow=20f?= =?UTF-8?q?or=20Python=203.8=E2=80=933.13?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..d3e48e8 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,33 @@ +name: Tests + +on: + push: + branches: ["main"] + pull_request: + workflow_dispatch: + +jobs: + test: + name: Python ${{ matrix.python-version }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] + + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Install uv + uses: astral-sh/setup-uv@v5 + with: + python-version: ${{ matrix.python-version }} + cache-dependency-glob: "pyproject.toml" + + - name: Build and install package + run: uv pip install --system -e . + + - name: Verify import + run: python -c "import tts_service_api; print(tts_service_api.VERSION.__version__)" From 8d58a4fdea6b7a01c02ba81419f630d0920a7549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20P=C4=99dzim=C4=85=C5=BC?= Date: Sat, 28 Mar 2026 07:39:06 +0100 Subject: [PATCH 6/8] ci: fix uv pip install -- use venv instead of --system --- .github/workflows/test.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d3e48e8..795c5ca 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,7 +27,9 @@ jobs: cache-dependency-glob: "pyproject.toml" - name: Build and install package - run: uv pip install --system -e . + run: | + uv venv + uv pip install -e . - name: Verify import - run: python -c "import tts_service_api; print(tts_service_api.VERSION.__version__)" + run: uv run python -c "import tts_service_api; print(tts_service_api.VERSION.__version__)" From 2259b815e8638a8a2c44d02102a5f0f85d843102 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20P=C4=99dzim=C4=85=C5=BC?= Date: Sat, 28 Mar 2026 07:39:56 +0100 Subject: [PATCH 7/8] ci: remove redundant uv venv -- setup-uv already creates .venv --- .github/workflows/test.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 795c5ca..0303767 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,9 +27,7 @@ jobs: cache-dependency-glob: "pyproject.toml" - name: Build and install package - run: | - uv venv - uv pip install -e . + run: uv pip install -e . - name: Verify import run: uv run python -c "import tts_service_api; print(tts_service_api.VERSION.__version__)" From b0f19df1b6c926f230485b789db37d2e30db9505 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20P=C4=99dzim=C4=85=C5=BC?= Date: Sat, 28 Mar 2026 07:40:49 +0100 Subject: [PATCH 8/8] ci: fix version import -- VERSION is a submodule not an attribute --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0303767..ca33de5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,4 +30,4 @@ jobs: run: uv pip install -e . - name: Verify import - run: uv run python -c "import tts_service_api; print(tts_service_api.VERSION.__version__)" + run: uv run python -c "from tts_service_api import VERSION; print(VERSION.__version__)"