-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use local schemas to define validation for
pyproject.toml
(#4364)
- Loading branch information
Showing
10 changed files
with
409 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
The following files include code from opensource projects | ||
(either as direct copies or modified versions): | ||
|
||
- `setuptools.schema.json`, `distutils.schema.json`: | ||
- project: `validate-pyproject` - licensed under MPL-2.0 | ||
(https://github.com/abravalheri/validate-pyproject): | ||
|
||
This Source Code Form is subject to the terms of the Mozilla Public | ||
License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
You can obtain one at https://mozilla.org/MPL/2.0/. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
|
||
"$id": "https://setuptools.pypa.io/en/latest/deprecated/distutils/configfile.html", | ||
"title": "``tool.distutils`` table", | ||
"$$description": [ | ||
"**EXPERIMENTAL** (NOT OFFICIALLY SUPPORTED): Use ``tool.distutils``", | ||
"subtables to configure arguments for ``distutils`` commands.", | ||
"Originally, ``distutils`` allowed developers to configure arguments for", | ||
"``setup.py`` commands via `distutils configuration files", | ||
"<https://setuptools.pypa.io/en/latest/deprecated/distutils/configfile.html>`_.", | ||
"See also `the old Python docs <https://docs.python.org/3.11/install/>_`." | ||
], | ||
|
||
"type": "object", | ||
"properties": { | ||
"global": { | ||
"type": "object", | ||
"description": "Global options applied to all ``distutils`` commands" | ||
} | ||
}, | ||
"patternProperties": { | ||
".+": {"type": "object"} | ||
}, | ||
"$comment": "TODO: Is there a practical way of making this schema more specific?" | ||
} |
Oops, something went wrong.