pyproject.toml 1.3 KB

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