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 991 B

10 months ago
12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. [project]
  2. name = "dora-opus"
  3. version = "0.3.11"
  4. description = "Dora Node for Text translating using Opus"
  5. authors = [
  6. { name = "Haixuan Xavier Tao", email = "tao.xavier@outlook.com" },
  7. { name = "Enzo Le Van", email = "dev@enzo-le-van.fr" },
  8. { name = "Félix Huang", email = "felix.huang.net@gmail.com" },
  9. ]
  10. license = { text = "MIT" }
  11. readme = "README.md"
  12. requires-python = ">=3.9"
  13. dependencies = [
  14. "dora-rs >= 0.3.9",
  15. "numpy < 2.0.0",
  16. "transformers >= 4.45",
  17. "modelscope >= 1.18.1",
  18. "sentencepiece >= 0.1.99",
  19. "torch >= 2.7.0",
  20. "torchvision >= 0.22",
  21. "torchaudio >= 2.7.0",
  22. "sacremoses>=0.1.1",
  23. ]
  24. [dependency-groups]
  25. dev = ["pytest >=8.1.1", "ruff >=0.9.1"]
  26. [project.scripts]
  27. dora-opus = "dora_opus.main:main"
  28. [tool.ruff.lint]
  29. extend-select = [
  30. "D", # pydocstyle
  31. "UP", # Ruff's UP rule
  32. "PERF", # Ruff's PERF rule
  33. "RET", # Ruff's RET rule
  34. "RSE", # Ruff's RSE rule
  35. "NPY", # Ruff's NPY rule
  36. "N", # Ruff's N rule
  37. "I", # Ruff's I rule
  38. ]