pyproject.toml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. [build-system]
  2. requires = ["setuptools>=68", "wheel"]
  3. build-backend = "setuptools.build_meta"
  4. [project]
  5. name = "hth-sdk"
  6. version = "0.3.0"
  7. description = "Simple synchronous Python facade for the hth high-temperature-hood API."
  8. readme = "README.md"
  9. requires-python = ">=3.11"
  10. license = { text = "Proprietary" }
  11. authors = [{ name = "Prod2U host platform" }]
  12. dependencies = []
  13. keywords = ["hth", "grpc", "hood", "telemetry"]
  14. classifiers = [
  15. "Programming Language :: Python :: 3",
  16. "Programming Language :: Python :: 3.11",
  17. "Programming Language :: Python :: 3.12",
  18. "Programming Language :: Python :: 3.13",
  19. "Framework :: AsyncIO",
  20. ]
  21. [project.optional-dependencies]
  22. live = [
  23. "grpcio>=1.83.0,<2",
  24. "protobuf>=7.35.1,<8",
  25. ]
  26. dev = [
  27. "grpcio-tools>=1.83.0,<2",
  28. "grpcio>=1.83.0,<2",
  29. "protobuf>=7.35.1,<8",
  30. "pytest>=8",
  31. ]
  32. gen = [
  33. "grpcio-tools>=1.83.0,<2",
  34. ]
  35. [project.urls]
  36. Documentation = "https://local/host/docs/python-sdk-guide.zh-CN.md"
  37. [project.scripts]
  38. hth-doctor = "hth_sdk.doctor:main"
  39. [tool.setuptools]
  40. include-package-data = true
  41. [tool.setuptools.packages.find]
  42. where = ["."]
  43. include = ["hth_sdk*"]
  44. [tool.setuptools.package-data]
  45. hth_sdk = ["py.typed", "generated/README.md", "generated/**/*.py", "data/*.jsonl"]
  46. [tool.pytest.ini_options]
  47. testpaths = ["tests"]
  48. pythonpath = ["."]
  49. addopts = "-q"
  50. [tool.ruff]
  51. target-version = "py311"
  52. extend-exclude = ["hth_sdk/generated"]
  53. [tool.ruff.lint]
  54. select = ["E", "F", "W"]
  55. ignore = [
  56. "E501",
  57. "EXE002", # this workspace mount reports 0777 on all files
  58. ]