diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..ca33de5 --- /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 -e . + + - name: Verify import + run: uv run python -c "from tts_service_api import VERSION; print(VERSION.__version__)" 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 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/pyproject.toml b/pyproject.toml index 3089314..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" } @@ -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__" } 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..fc9c70f --- /dev/null +++ b/shim/pyproject.toml @@ -0,0 +1,20 @@ +[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"] +classifiers = ["Development Status :: 7 - Inactive"] + +[project.urls] +repository = "https://github.com/techmo-pl/tts-api-python" + +[tool.setuptools.packages.find] +where = ["."] +include = [] 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"