tox.ini 630 B

12345678910111213141516171819202122
  1. [tox]
  2. env_list = py311, py312, py313
  3. skip_missing_interpreters = true
  4. [testenv]
  5. description = Fresh venv, install wheel-equivalent editable extras none, import and unit tests
  6. deps =
  7. grpcio>=1.83.0,<2
  8. protobuf>=7.35.1,<8
  9. pytest>=8
  10. commands =
  11. python -c "from google.protobuf import runtime_version; import grpc; import hth_sdk; from hth_sdk.generated.hth.api.v1 import hth_pb2, hth_pb2_grpc"
  12. pytest -q {toxinidir}/tests
  13. [testenv:wheel]
  14. description = Build wheel and install into a clean venv (manual helper)
  15. skip_install = true
  16. deps =
  17. build
  18. pytest>=8
  19. commands =
  20. python -m build --wheel {toxinidir}