From f9e82c4b36110cef054b3dd3c831703dc740afad Mon Sep 17 00:00:00 2001 From: Xuan Hu Date: Thu, 30 Jan 2025 03:26:05 +0000 Subject: [PATCH 1/2] feat(minor): use dependency-groups according to pep735 --- pyproject.toml | 18 +++++++++--------- template/pyproject.toml.jinja | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 86b15c51..a3546181 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,28 +43,28 @@ urls.issue = "https://github.com/serious-scaffold/ss-python/issues" urls.repository = "https://github.com/serious-scaffold/ss-python" scripts.ss-python-cli = "ss_python.cli:cli" -[tool.pdm] -distribution = true - -[tool.pdm.dev-dependencies] +[dependency-groups] +test = [ + "coverage", + "pytest", +] doc = [ - "Sphinx", "autodoc-pydantic", "coverage", "furo", "mypy[reports]", "myst-parser", "pytest", + "sphinx", "sphinx-click", "sphinx-design", ] lint = [ "mypy", ] -test = [ - "coverage", - "pytest", -] + +[tool.pdm] +distribution = true [tool.setuptools_scm] fallback_version = "0.0.0" diff --git a/template/pyproject.toml.jinja b/template/pyproject.toml.jinja index c8dad729..99030467 100644 --- a/template/pyproject.toml.jinja +++ b/template/pyproject.toml.jinja @@ -82,28 +82,28 @@ urls.issue = "https://{{ repo_url() }}/-/issues" urls.repository = "https://{{ repo_url() }}" scripts.{{ package_name }}-cli = "{{ module_name }}.cli:cli" -[tool.pdm] -distribution = true - -[tool.pdm.dev-dependencies] +[dependency-groups] +test = [ + "coverage", + "pytest", +] doc = [ - "Sphinx", "autodoc-pydantic", "coverage", "furo", "mypy[reports]", "myst-parser", "pytest", + "sphinx", "sphinx-click", "sphinx-design", ] lint = [ "mypy", ] -test = [ - "coverage", - "pytest", -] + +[tool.pdm] +distribution = true [tool.setuptools_scm] fallback_version = "0.0.0" From 64703e20e62a16f8e997aa99e31b2c71f8134d83 Mon Sep 17 00:00:00 2001 From: Xuan Hu Date: Thu, 30 Jan 2025 03:36:15 +0000 Subject: [PATCH 2/2] update lock file --- pdm.dev.lock | 2 +- pdm.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pdm.dev.lock b/pdm.dev.lock index 3cb2f4cc..9f296e7d 100644 --- a/pdm.dev.lock +++ b/pdm.dev.lock @@ -5,7 +5,7 @@ groups = ["doc", "lint", "test"] strategy = ["inherit_metadata"] lock_version = "4.5.0" -content_hash = "sha256:9d1991579e577ae201fbefcdc354ace2f16921ef6049d56d06685538be70c2ba" +content_hash = "sha256:bb122c24e17decd9d1d6c8b6bf2bad444717e0ca671e262ed2ddde2be4851df2" [[metadata.targets]] requires_python = ">=3.9" diff --git a/pdm.lock b/pdm.lock index b4ba8c9f..11e6d98f 100644 --- a/pdm.lock +++ b/pdm.lock @@ -5,7 +5,7 @@ groups = ["default"] strategy = ["inherit_metadata"] lock_version = "4.5.0" -content_hash = "sha256:9d1991579e577ae201fbefcdc354ace2f16921ef6049d56d06685538be70c2ba" +content_hash = "sha256:bb122c24e17decd9d1d6c8b6bf2bad444717e0ca671e262ed2ddde2be4851df2" [[metadata.targets]] requires_python = ">=3.9"