diff --git a/extra/specifications/schemas/direct-url.schema.json b/extra/specifications/schemas/direct-url.schema.json index 1e110b193f..ea53cc4818 100644 --- a/extra/specifications/schemas/direct-url.schema.json +++ b/extra/specifications/schemas/direct-url.schema.json @@ -11,6 +11,9 @@ "subdirectory": { "type": "string" }, + "path": { + "type": "string" + }, "DirInfo": { "type": "object", "properties": { @@ -66,6 +69,9 @@ }, "subdirectory": { "$ref": "#/definitions/subdirectory" + }, + "path": { + "$ref": "#/definitions/path" } }, "required": ["url"] diff --git a/source/specifications/direct-url-data-structure.rst b/source/specifications/direct-url-data-structure.rst index a82537f0ad..d4f335b66d 100644 --- a/source/specifications/direct-url-data-structure.rst +++ b/source/specifications/direct-url-data-structure.rst @@ -133,6 +133,16 @@ A top-level ``subdirectory`` field MAY be present containing a directory path, relative to the root of the VCS repository, source archive or local directory, to specify where ``pyproject.toml`` or ``setup.py`` is located. +.. _direct-url-data-structure-archives-in-git: + +Archives in Version Control +--------------------------- + +A top-level ``path`` field MAY be present for VCS repositories, containing the +location of an archive relative to the root of a VCS repository. The filename +of the path must be a valid archive name. This key is mutually exclusive +with ``subdirectory``. Note that ``path`` has no PEP 508 equivalent. + .. _direct-url-data-structure-registered-vcs: Registered VCS