|
7 | 7 | "x-tombi-string-formats": ["email", "uri"], |
8 | 8 | "additionalProperties": false, |
9 | 9 | "definitions": { |
| 10 | + "importNames": { |
| 11 | + "type": "array", |
| 12 | + "items": { |
| 13 | + "type": "string", |
| 14 | + "pattern": "^[A-Za-z_][A-Za-z_0-9]*(?:\\.[A-Za-z_][A-Za-z_0-9]*)*(?:\\s*;\\s*private)?$" |
| 15 | + } |
| 16 | + }, |
10 | 17 | "projectAuthor": { |
11 | 18 | "type": "object", |
12 | 19 | "additionalProperties": false, |
|
540 | 547 | } |
541 | 548 | ] |
542 | 549 | }, |
| 550 | + "import-names": { |
| 551 | + "$ref": "#/definitions/importNames", |
| 552 | + "description": "An array of strings specifying the import names that the project exclusively provides when installed.", |
| 553 | + "markdownDescription": "An array of strings specifying the import names that the project exclusively provides when installed.", |
| 554 | + "x-intellij-html-description": "An array of strings specifying the import names that the project exclusively provides when installed.", |
| 555 | + "x-taplo": { |
| 556 | + "links": { |
| 557 | + "key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#import-names" |
| 558 | + } |
| 559 | + }, |
| 560 | + "examples": [["my_package", "_internal ; private"]] |
| 561 | + }, |
| 562 | + "import-namespaces": { |
| 563 | + "$ref": "#/definitions/importNames", |
| 564 | + "description": "An array of strings specifying the import names that the project provides when installed, but not exclusively.", |
| 565 | + "markdownDescription": "An array of strings specifying the import names that the project provides when installed, but not exclusively.", |
| 566 | + "x-intellij-html-description": "An array of strings specifying the import names that the project provides when installed, but not exclusively.", |
| 567 | + "x-taplo": { |
| 568 | + "links": { |
| 569 | + "key": "https://packaging.python.org/en/latest/specifications/pyproject-toml/#import-namespaces" |
| 570 | + } |
| 571 | + }, |
| 572 | + "examples": [["my_package", "_internal ; private"]] |
| 573 | + }, |
543 | 574 | "dynamic": { |
544 | 575 | "type": "array", |
545 | 576 | "items": { |
|
560 | 591 | "gui-scripts", |
561 | 592 | "entry-points", |
562 | 593 | "dependencies", |
563 | | - "optional-dependencies" |
| 594 | + "optional-dependencies", |
| 595 | + "import-names", |
| 596 | + "import-namespaces" |
564 | 597 | ] |
565 | 598 | }, |
566 | 599 | "uniqueItems": true, |
|
815 | 848 | } |
816 | 849 | } |
817 | 850 | } |
| 851 | + }, |
| 852 | + "import-names": { |
| 853 | + "not": { |
| 854 | + "required": ["dynamic"], |
| 855 | + "properties": { |
| 856 | + "dynamic": { |
| 857 | + "type": "array", |
| 858 | + "contains": { |
| 859 | + "const": "import-names" |
| 860 | + } |
| 861 | + } |
| 862 | + } |
| 863 | + } |
| 864 | + }, |
| 865 | + "import-namespaces": { |
| 866 | + "not": { |
| 867 | + "required": ["dynamic"], |
| 868 | + "properties": { |
| 869 | + "dynamic": { |
| 870 | + "type": "array", |
| 871 | + "contains": { |
| 872 | + "const": "import-namespaces" |
| 873 | + } |
| 874 | + } |
| 875 | + } |
| 876 | + } |
818 | 877 | } |
819 | 878 | } |
820 | 879 | }, |
|
0 commit comments