From 267dc02fc0049ed597b109bda831ca626ff8d006 Mon Sep 17 00:00:00 2001 From: Stephen Rosen Date: Wed, 2 Oct 2024 16:05:48 -0500 Subject: [PATCH 1/2] PEP 735: Add include-project to Deferred Ideas (#4012) --- peps/pep-0735.rst | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/peps/pep-0735.rst b/peps/pep-0735.rst index 246af0a84e6..dd87a5f9aa0 100644 --- a/peps/pep-0735.rst +++ b/peps/pep-0735.rst @@ -790,6 +790,38 @@ Compared with changes to ``[project.dependencies]`` and Therefore, given that this PEP declines to make changes to the ``[project]`` table, changing ``[build-system]`` is also deferred. + +Why not support a Dependency Group which includes the current project? +---------------------------------------------------------------------- + +Several usage scenarios for dependency groups revolve around installing a +dependency group alongside a package defined in the ``[project]`` table. +For example, testing a package involves installing testing dependencies and the +package itself. Additionally, the compatibility of a dependency group with the +main package is a valuable input to lockfile generators. + +In such cases, it is desirable for a Dependency Group to declare that it +depends upon the project itself. Example syntaxes from discussions included +``{include-project = true}`` and ``{include-group = ":project:"}``. + +However, if a specification is established to extend :pep:`508` with Path +Dependencies, this would result in Dependency Groups having two ways of +specifying the main package. For example, if ``.`` becomes formally supported, +and ``{include-project = true}`` is included in this PEP, then dependency +groups may specify any of the following groups + +.. code-block:: toml + + [dependency-groups] + case1 = [{include-project = true}] + case2 = ["."] + case3 = [{include-project = true}, "."] + case4 = [{include-project = false}, "."] + +In order to avoid a confusing future in which multiple different options +specify the package defined in ``pyproject.toml``, any syntax for declaring +this relationship is omitted from this PEP. + .. _prior_art: Appendix A: Prior Art in Non-Python Languages From ee57005eb64fef9d6db554977451f70b131b4bdc Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Wed, 2 Oct 2024 16:11:48 -0700 Subject: [PATCH 2/2] PEP 758: Add Post-History (#4016) --- peps/pep-0758.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peps/pep-0758.rst b/peps/pep-0758.rst index cffa85bb70e..d0c7f405027 100644 --- a/peps/pep-0758.rst +++ b/peps/pep-0758.rst @@ -6,7 +6,7 @@ Status: Draft Type: Standards Track Created: 30-Sep-2024 Python-Version: 3.14 - +Post-History: `02-Oct-2024 `__ Abstract ========