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

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