|
3 | 3 | "name": "Package",
|
4 | 4 | "type": "object",
|
5 | 5 | "additionalProperties": true,
|
6 |
| - "anyOf": [ |
7 |
| - { |
8 |
| - "required": [ |
9 |
| - "package-mode" |
10 |
| - ], |
11 |
| - "properties": { |
12 |
| - "package-mode": { |
13 |
| - "enum": [ |
14 |
| - false |
15 |
| - ] |
16 |
| - } |
17 |
| - } |
18 |
| - }, |
19 |
| - { |
20 |
| - "required": [ |
21 |
| - "name", |
22 |
| - "version", |
23 |
| - "description", |
24 |
| - "authors" |
25 |
| - ] |
26 |
| - } |
27 |
| - ], |
28 | 6 | "properties": {
|
29 | 7 | "package-mode": {
|
30 | 8 | "type": "boolean",
|
|
33 | 11 | },
|
34 | 12 | "name": {
|
35 | 13 | "type": "string",
|
36 |
| - "description": "Package name." |
| 14 | + "description": "Package name (legacy)." |
37 | 15 | },
|
38 | 16 | "version": {
|
39 | 17 | "type": "string",
|
40 |
| - "description": "Package version." |
| 18 | + "description": "Package version (legacy)." |
41 | 19 | },
|
42 | 20 | "description": {
|
43 | 21 | "type": "string",
|
44 |
| - "description": "Short package description.", |
| 22 | + "description": "Short package description (legacy).", |
45 | 23 | "pattern": "\\A[^\\n]*\\Z"
|
46 | 24 | },
|
47 | 25 | "keywords": {
|
48 | 26 | "type": "array",
|
49 | 27 | "items": {
|
50 | 28 | "type": "string",
|
51 |
| - "description": "A tag/keyword that this package relates to." |
| 29 | + "description": "A tag/keyword that this package relates to (legacy)." |
52 | 30 | }
|
53 | 31 | },
|
54 | 32 | "homepage": {
|
55 | 33 | "type": "string",
|
56 |
| - "description": "Homepage URL for the project.", |
| 34 | + "description": "Homepage URL for the project (legacy).", |
57 | 35 | "format": "uri"
|
58 | 36 | },
|
59 | 37 | "repository": {
|
60 | 38 | "type": "string",
|
61 |
| - "description": "Repository URL for the project.", |
| 39 | + "description": "Repository URL for the project (legacy).", |
62 | 40 | "format": "uri"
|
63 | 41 | },
|
64 | 42 | "documentation": {
|
65 | 43 | "type": "string",
|
66 |
| - "description": "Documentation URL for the project.", |
| 44 | + "description": "Documentation URL for the project (legacy).", |
67 | 45 | "format": "uri"
|
68 | 46 | },
|
69 | 47 | "license": {
|
70 | 48 | "type": "string",
|
71 |
| - "description": "License name." |
| 49 | + "description": "License name (legacy)." |
72 | 50 | },
|
73 | 51 | "authors": {
|
74 |
| - "$ref": "#/definitions/authors" |
| 52 | + "$ref": "#/definitions/authors", |
| 53 | + "description": "Authors (legacy)." |
75 | 54 | },
|
76 | 55 | "maintainers": {
|
77 |
| - "$ref": "#/definitions/maintainers" |
| 56 | + "$ref": "#/definitions/maintainers", |
| 57 | + "description": "Maintainers (legacy)." |
78 | 58 | },
|
79 | 59 | "readme": {
|
80 | 60 | "anyOf": [
|
81 | 61 | {
|
82 | 62 | "type": "string",
|
83 |
| - "description": "The path to the README file." |
| 63 | + "description": "The path to the README file (legacy)." |
84 | 64 | },
|
85 | 65 | {
|
86 | 66 | "type": "array",
|
|
93 | 73 | },
|
94 | 74 | "classifiers": {
|
95 | 75 | "type": "array",
|
96 |
| - "description": "A list of trove classifiers." |
| 76 | + "description": "A list of trove classifiers (legacy)." |
97 | 77 | },
|
98 | 78 | "packages": {
|
99 | 79 | "type": "array",
|
|
156 | 136 | "dependencies": {
|
157 | 137 | "type": "object",
|
158 | 138 | "description": "This is a hash of package name (keys) and version constraints (values) that are required to run this package.",
|
159 |
| - "required": [ |
160 |
| - "python" |
161 |
| - ], |
162 | 139 | "properties": {
|
163 | 140 | "python": {
|
164 | 141 | "type": "string",
|
|
176 | 153 | },
|
177 | 154 | "extras": {
|
178 | 155 | "type": "object",
|
| 156 | + "description": "Extras (legacy).", |
179 | 157 | "patternProperties": {
|
180 | 158 | "^[a-zA-Z-_.0-9]+$": {
|
181 | 159 | "type": "array",
|
|
250 | 228 | "patternProperties": {
|
251 | 229 | "^.+$": {
|
252 | 230 | "type": "string",
|
253 |
| - "description": "The full url of the custom url." |
| 231 | + "description": "The full url of the custom url (Legacy)." |
254 | 232 | }
|
255 | 233 | }
|
256 | 234 | }
|
257 | 235 | },
|
258 | 236 | "definitions": {
|
259 | 237 | "authors": {
|
260 | 238 | "type": "array",
|
261 |
| - "description": "List of authors that contributed to the package. This is typically the main maintainers, not the full list.", |
| 239 | + "description": "List of authors that contributed to the package. This is typically the main maintainers, not the full list (legacy).", |
262 | 240 | "items": {
|
263 | 241 | "type": "string"
|
264 | 242 | }
|
265 | 243 | },
|
266 | 244 | "maintainers": {
|
267 | 245 | "type": "array",
|
268 |
| - "description": "List of maintainers, other than the original author(s), that upkeep the package.", |
| 246 | + "description": "List of maintainers, other than the original author(s), that upkeep the package (legacy).", |
269 | 247 | "items": {
|
270 | 248 | "type": "string"
|
271 | 249 | }
|
|
321 | 299 | },
|
322 | 300 | {
|
323 | 301 | "$ref": "#/definitions/multiple-constraints-dependency"
|
| 302 | + }, |
| 303 | + { |
| 304 | + "$ref": "#/definitions/dependency-options" |
324 | 305 | }
|
325 | 306 | ]
|
326 | 307 | }
|
|
566 | 547 | }
|
567 | 548 | }
|
568 | 549 | },
|
| 550 | + "dependency-options": { |
| 551 | + "type": "object", |
| 552 | + "additionalProperties": false, |
| 553 | + "properties": { |
| 554 | + "python": { |
| 555 | + "type": "string", |
| 556 | + "description": "The python versions for which the dependency should be installed." |
| 557 | + }, |
| 558 | + "platform": { |
| 559 | + "type": "string", |
| 560 | + "description": "The platform(s) for which the dependency should be installed." |
| 561 | + }, |
| 562 | + "markers": { |
| 563 | + "type": "string", |
| 564 | + "description": "The PEP 508 compliant environment markers for which the dependency should be installed." |
| 565 | + }, |
| 566 | + "allow-prereleases": { |
| 567 | + "type": "boolean", |
| 568 | + "description": "Whether the dependency allows prereleases or not." |
| 569 | + }, |
| 570 | + "source": { |
| 571 | + "type": "string", |
| 572 | + "description": "The exclusive source used to search for this dependency." |
| 573 | + }, |
| 574 | + "develop": { |
| 575 | + "type": "boolean", |
| 576 | + "description": "Whether to install the dependency in development mode." |
| 577 | + } |
| 578 | + } |
| 579 | + }, |
569 | 580 | "multiple-constraints-dependency": {
|
570 | 581 | "type": "array",
|
571 | 582 | "minItems": 1,
|
|
588 | 599 | },
|
589 | 600 | {
|
590 | 601 | "$ref": "#/definitions/url-dependency"
|
| 602 | + }, |
| 603 | + { |
| 604 | + "$ref": "#/definitions/dependency-options" |
591 | 605 | }
|
592 | 606 | ]
|
593 | 607 | }
|
|
0 commit comments