pyproject.toml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # This file should be kept in sync with requirements.txt and requirements-dev.txt
  2. # It is particularly required by the Nix environment (see shell.nix). To update versions,
  3. # normally one would run "poetry update --lock"
  4. [tool.poetry]
  5. name = "qmk_firmware"
  6. version = "0.1.0"
  7. description = ""
  8. authors = []
  9. [tool.poetry.dependencies]
  10. python = "^3.8"
  11. appdirs = "*"
  12. argcomplete = "*"
  13. colorama = "*"
  14. dotty-dict = "*"
  15. hid = "*"
  16. hjson = "*"
  17. jsonschema = ">=4"
  18. milc = ">=1.4.2"
  19. Pygments = "*"
  20. pyserial = "*"
  21. pyusb = "*"
  22. pillow = "*"
  23. # This dependency is not mentioned in requirements.txt (QMK CLI is not a
  24. # library package that is required by the Python code in qmk_firmware), but is
  25. # required to build a proper nix-shell environment.
  26. qmk = "*"
  27. [tool.poetry.dev-dependencies]
  28. nose2 = "*"
  29. flake8 = "*"
  30. pep8-naming = "*"
  31. pyflakes = "*"
  32. yapf = "*"
  33. # These dependencies are required by the jsonschema >= 4.11.0 build system, but
  34. # are not detected automatically; they are also not present in the used Nixpkgs
  35. # snapshot, so need to be obtained through Poetry.
  36. hatchling = "*"
  37. hatch-vcs = "*"
  38. hatch-fancy-pypi-readme = "*"
  39. # The `pytest` module in the used Nixpkgs snapshot has an upper bound on the
  40. # `pluggy` dependency, which conflicts with the dependency of the `hatchling`
  41. # module; upgrading the `pytest` module fixes the conflict.
  42. pytest = "*"
  43. # Building the `tomli` module, which is in the dependency tree of `hatchling`,
  44. # requires a newer `flit-core` module than found in the used Nixpkgs snapshot.
  45. flit-core = "*"
  46. # Building `dotty-dict` >= 1.3.1 requires the `poetry-core` module, and the
  47. # version of that module provided by the used Nixpkgs snapshot cannot be built
  48. # on Darwin due to the regex compatibility issue in the old Nixpkgs code
  49. # (https://github.com/NixOS/nix/issues/4758).
  50. poetry-core = "*"
  51. [build-system]
  52. requires = ["poetry-core>=1.0.0"]
  53. build-backend = "poetry.core.masonry.api"