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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. "torch == 2.4.0",
  12. "torchvision >= 0.19",
  13. "torchaudio >= 2.1.0",
  14. "opencv-python >= 4.1.1",
  15. "modelscope >= 1.18.1",
  16. "huggingface-hub>=0.29.0",
  17. "mlx-lm>=0.21.1; sys_platform == 'darwin'",
  18. "llama-cpp-python",
  19. ]
  20. [tool.uv.sources]
  21. llama-cpp-python = [
  22. { index = "llama_cpp_python_metal", marker = "sys_platform == 'darwin'" },
  23. { index = "llama_cpp_python_cu121", marker = "sys_platform == 'linux'" },
  24. ]
  25. [[tool.uv.index]]
  26. name = "llama_cpp_python_cu121"
  27. url = "https://abetlen.github.io/llama-cpp-python/whl/cu121"
  28. explicit = true
  29. [[tool.uv.index]]
  30. name = "llama_cpp_python_metal"
  31. url = "https://abetlen.github.io/llama-cpp-python/whl/metal"
  32. explicit = true
  33. [dependency-groups]
  34. dev = ["pytest >=8.1.1", "ruff >=0.9.1"]
  35. [project.scripts]
  36. dora-llama-cpp-python = "dora_llama_cpp_python.main:main"
  37. [tool.ruff.lint]
  38. extend-select = [
  39. "D", # pydocstyle
  40. "UP", # Ruff's UP rule
  41. "PERF", # Ruff's PERF rule
  42. "RET", # Ruff's RET rule
  43. "RSE", # Ruff's RSE rule
  44. "NPY", # Ruff's NPY rule
  45. "N", # Ruff's N rule
  46. "I", # Ruff's I rule
  47. ]