pyproject.toml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. [build-system]
  2. requires = ["setuptools>=68", "wheel"]
  3. build-backend = "setuptools.build_meta"
  4. [project]
  5. name = "hth-sdk"
  6. version = "0.2.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. [tool.setuptools.packages.find]
  38. where = ["."]
  39. include = ["hth_sdk*"]
  40. [tool.setuptools.package-data]
  41. hth_sdk = ["py.typed", "generated/README.md", "generated/**/*.py"]
  42. [tool.pytest.ini_options]
  43. testpaths = ["tests"]
  44. pythonpath = ["."]
  45. addopts = "-q"
  46. [tool.ruff]
  47. target-version = "py311"
  48. extend-exclude = ["hth_sdk/generated"]
  49. [tool.ruff.lint]
  50. select = ["E", "F", "W"]
  51. ignore = [
  52. "E501",
  53. "EXE002", # this workspace mount reports 0777 on all files
  54. ]