From a8f1142cbe3052dfe42bdb434a6c32e87e1871c2 Mon Sep 17 00:00:00 2001 From: Luiz Irber Date: Fri, 25 Oct 2024 18:16:53 -0700 Subject: [PATCH] Use dependency groups to specify dev dependencies --- pyproject.toml | 10 ++++++---- uv.lock | 14 ++++++++------ 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 2b56f17..a8bf155 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,11 +17,13 @@ dependencies = [ ] [tool.uv] -dev-dependencies = [ - # testing - "coverage >=7.6.3,<8", +default-groups = ["test", "doc"] - # docs +[dependency-groups] +test = [ + "coverage >=7.6.3,<8", +] +doc = [ "mkdocs-material>=9.5.41", "mkdocs>=1.6.1", "mkdocstrings-python>=1.12.1", diff --git a/uv.lock b/uv.lock index cec27e0..602832b 100644 --- a/uv.lock +++ b/uv.lock @@ -138,14 +138,16 @@ dependencies = [ { name = "requests" }, ] -[package.dev-dependencies] -dev = [ - { name = "coverage" }, +[package.dependency-groups] +doc = [ { name = "mkdocs" }, { name = "mkdocs-material" }, { name = "mkdocstrings" }, { name = "mkdocstrings-python" }, ] +test = [ + { name = "coverage" }, +] [package.metadata] requires-dist = [ @@ -153,14 +155,14 @@ requires-dist = [ { name = "requests", specifier = ">=2.32.3,<3" }, ] -[package.metadata.requires-dev] -dev = [ - { name = "coverage", specifier = ">=7.6.3,<8" }, +[package.metadata.dependency-groups] +doc = [ { name = "mkdocs", specifier = ">=1.6.1" }, { name = "mkdocs-material", specifier = ">=9.5.41" }, { name = "mkdocstrings", specifier = ">=0.26.2" }, { name = "mkdocstrings-python", specifier = ">=1.12.1" }, ] +test = [{ name = "coverage", specifier = ">=7.6.3,<8" }] [[package]] name = "frictionless"