pyproject.toml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. [build-system]
  2. requires = ["setuptools>=68.0"]
  3. build-backend = "setuptools.build_meta"
  4. [project]
  5. name = "chattolib"
  6. version = "0.4.3"
  7. description = "Async Python client library for the Chatto webchat Connect API"
  8. requires-python = ">=3.11"
  9. license = "MIT"
  10. readme = "README.md"
  11. authors = [
  12. { name = "Felix", email = "chatto@f3l1x.it" },
  13. ]
  14. keywords = ["chatto", "connect", "connectrpc", "async", "webchat", "client"]
  15. classifiers = [
  16. "Development Status :: 3 - Alpha",
  17. "Intended Audience :: Developers",
  18. "Programming Language :: Python :: 3",
  19. "Programming Language :: Python :: 3.11",
  20. "Programming Language :: Python :: 3.12",
  21. "Programming Language :: Python :: 3.13",
  22. "Topic :: Communications :: Chat",
  23. "Framework :: AsyncIO",
  24. ]
  25. dependencies = [
  26. "connectrpc>=0.11",
  27. "protobuf>=5.28",
  28. "httpx>=0.27",
  29. ]
  30. [project.urls]
  31. Homepage = "https://chat.chatto.run"
  32. [project.optional-dependencies]
  33. realtime = [
  34. "websockets>=13.0",
  35. ]
  36. dev = [
  37. "pytest>=8.0",
  38. "pytest-asyncio>=0.24",
  39. "respx>=0.22",
  40. "ruff>=0.8",
  41. "mypy>=1.13",
  42. ]
  43. [tool.setuptools.packages.find]
  44. where = ["src"]
  45. [tool.pytest.ini_options]
  46. asyncio_mode = "auto"
  47. testpaths = ["tests"]
  48. [tool.ruff]
  49. target-version = "py311"
  50. line-length = 100
  51. extend-exclude = ["src/chattolib/_pb"]
  52. [tool.ruff.lint]
  53. select = ["E", "F", "I", "N", "W", "UP"]
  54. [tool.mypy]
  55. python_version = "3.11"
  56. strict = true
  57. warn_return_any = true
  58. warn_unused_configs = true
  59. exclude = ["src/chattolib/_pb"]
  60. [[tool.mypy.overrides]]
  61. module = ["chattolib._pb.*", "websockets.*"]
  62. follow_imports = "skip"
  63. ignore_missing_imports = true