pyproject.toml 1.7 KB

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