You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

pyproject.toml 1.3 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. [project]
  2. name = "dora-llama-cpp-python"
  3. version = "1.0.1"
  4. authors = [{ name = "Shashwat Patil", email = "email@email.com" }]
  5. description = "dora-llama-cpp-python"
  6. license = { text = "MIT" }
  7. readme = "README.md"
  8. requires-python = ">=3.9"
  9. dependencies = [
  10. "dora-rs >= 0.3.9",
  11. "opencv-python >= 4.1.1",
  12. "modelscope >= 1.18.1",
  13. "huggingface-hub>=0.29.0",
  14. "mlx-lm>=0.21.1; sys_platform == 'darwin'",
  15. "llama-cpp-python",
  16. ]
  17. [tool.uv.sources]
  18. llama-cpp-python = [
  19. { index = "llama_cpp_python_metal", marker = "sys_platform == 'darwin'" },
  20. { index = "llama_cpp_python_cu121", marker = "sys_platform == 'linux'" },
  21. ]
  22. [[tool.uv.index]]
  23. name = "llama_cpp_python_cu121"
  24. url = "https://abetlen.github.io/llama-cpp-python/whl/cu121"
  25. explicit = true
  26. [[tool.uv.index]]
  27. name = "llama_cpp_python_metal"
  28. url = "https://abetlen.github.io/llama-cpp-python/whl/metal"
  29. explicit = true
  30. [dependency-groups]
  31. dev = ["pytest >=8.1.1", "ruff >=0.9.1"]
  32. [project.scripts]
  33. dora-llama-cpp-python = "dora_llama_cpp_python.main:main"
  34. [tool.ruff.lint]
  35. extend-select = [
  36. "D", # pydocstyle
  37. "UP", # Ruff's UP rule
  38. "PERF", # Ruff's PERF rule
  39. "RET", # Ruff's RET rule
  40. "RSE", # Ruff's RSE rule
  41. "NPY", # Ruff's NPY rule
  42. "N", # Ruff's N rule
  43. "I", # Ruff's I rule
  44. ]