Skip to content

feat: replace local proto generation with tts-api package dependency#7

Merged
YASoftwareDev merged 5 commits intomainfrom
feat/use-tts-api-package
Mar 30, 2026
Merged

feat: replace local proto generation with tts-api package dependency#7
YASoftwareDev merged 5 commits intomainfrom
feat/use-tts-api-package

Conversation

@YASoftwareDev
Copy link
Copy Markdown
Contributor

Summary

  • Remove the tts-service-api git submodule and all custom setup.py proto build machinery (5 classes: BuildPackageProtos, BuildPyGRPC, DevelopGRPC, CustomInstall, CustomEggInfo)
  • Add tts-api as a pip dependency (pre-built stubs from tts-api-python)
  • Update 5 import sites: from tts_client_python.proto import techmo_tts_pb2from techmo.tts.api.v3 import techmo_tts_pb2
  • Simplify CI: no submodule checkout, no explicit build_grpc step
  • Switch tox from skip_install=true+PYTHONPATH to skip_install=false+extras=test

Dependency note

tts-api is referenced via git URL until it is published to PyPI:

tts-api @ git+https://github.com/techmo-pl/tts-api-python.git

Switch to tts-api>=3.2.1 in setup.py once published.

Files changed

File Change
setup.py Remove proto build classes; add tts-api to install_requires; fix doc URL
pyproject.toml Remove grpcio-tools build dep
setup.sh Remove submodule init (pre-commit hooks only)
install.sh Remove proto sentinel check
tox.ini skip_install=false, extras=test; remove manual deps and stub check
.github/workflows/test.yml Remove submodules: recursive and build_grpc step
.gitmodules Deleted
tts_client_python/proto/__init__.py Deleted
5 source/test files Import updated to from techmo.tts.api.v3 import …
CLAUDE.md Updated proto stubs, setup, CI and dependency sections

Test plan

  • CI passes on Python 3.8–3.13
  • from techmo.tts.api.v3 import techmo_tts_pb2 resolves correctly after install
  • ./install.sh completes without proto sentinel error
  • pytest (unit tests) passes

Remove the tts-service-api git submodule and all custom setup.py build
machinery (BuildPackageProtos, BuildPyGRPC, DevelopGRPC, CustomInstall,
CustomEggInfo). gRPC stubs are now provided by the tts-api package.

Changes:
- setup.py: remove all proto-generation commands; add tts-api to
  install_requires (git ref until PyPI publish); fix doc URL to tts-api
- pyproject.toml: remove grpcio-tools build dependency
- setup.sh: remove submodule init (pre-commit only)
- install.sh: remove proto sentinel check
- tox.ini: switch skip_install=false + extras=test; remove manual
  grpcio/protobuf deps; remove commands_pre stub check
- .github/workflows/test.yml: remove submodules checkout and build_grpc step
- .gitmodules: deleted (no submodule)
- tts_client_python/proto/__init__.py: deleted
- 5 import sites updated: from tts_client_python.proto → from techmo.tts.api.v3
- CLAUDE.md: update proto stubs, setup, CI and dependency sections
@YASoftwareDev YASoftwareDev merged commit e77db8e into main Mar 30, 2026
7 checks passed
@YASoftwareDev YASoftwareDev deleted the feat/use-tts-api-package branch March 30, 2026 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant