Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions extra/specifications/schemas/direct-url.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"subdirectory": {
"type": "string"
},
"path": {
"type": "string"
},
"DirInfo": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -66,6 +69,9 @@
},
"subdirectory": {
"$ref": "#/definitions/subdirectory"
},
"path": {
"$ref": "#/definitions/path"
}
},
"required": ["url"]
Expand Down
10 changes: 10 additions & 0 deletions source/specifications/direct-url-data-structure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading