diff --git a/.readthedocs.yml b/.readthedocs.yml index dc688110..c3596b06 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -19,10 +19,8 @@ build: os: ubuntu-22.04 tools: python: "3.12" - -python: - install: - - method: pip - path: . - extra_requirements: - - doc + jobs: + install: + - pip install . + - pip install dependency-groups + - pip-install-dependency-groups doc diff --git a/pyproject.toml b/pyproject.toml index 5b7e841c..a5131946 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,38 +52,9 @@ dependencies = [ csv = [ "pandas", ] -dev = [ - "bump2version", - "coverage", - "mypy", - "parameterized", - "pre-commit-uv", - "Pillow", - "pytest", - "pytest-cov", - "pytest-sugar", - "tox-uv", - "types-Deprecated", -] -doc = [ - "einops", - "furo", - "matplotlib", - "sphinx", - "sphinx-autobuild", - "sphinx-copybutton", - "sphinx-gallery", - "sphinxext-opengraph", -] plot = [ "matplotlib", ] -all = [ - "torchio[doc]", - "torchio[plot]", - "torchio[csv]", - "torchio[dev]", -] [project.scripts] tiohd = "torchio.cli.print_info:app" @@ -97,6 +68,40 @@ Source = "https://github.com/fepegar/torchio" Documentation = "http://torchio.rtfd.io" "Release notes" = "https://github.com/fepegar/torchio/releases" +[dependency-groups] +dev = [ + { include-group = "doc" }, + { include-group = "maintain" }, + { include-group = "test" }, + "ipykernel", + "ruff", +] +doc = [ + "einops", + "furo", + "matplotlib", + "sphinx", + "sphinx-autobuild", + "sphinx-copybutton", + "sphinx-gallery", + "sphinxext-opengraph", +] +maintain = [ + "bump2version", + "pre-commit-uv", +] +test = [ + "coverage", + "mypy", + "parameterized", + "pillow", + "pytest", + "pytest-cov", + "pytest-sugar", + "tox-uv", + "types-deprecated", +] + [tool.mypy] pretty = true @@ -147,6 +152,5 @@ ignore = [ "N813", ] - [tool.ruff.lint.isort] force-single-line = true