@@ -7,7 +7,7 @@ description: |
77 to run, build, test, or develop the project.
88 Dependencies can be installed using package managers or custom scripts.
99type : object
10- required : [ name, import_name, install ]
10+ required : [ name, install ]
1111properties :
1212 import_name :
1313 description : |
@@ -17,6 +17,7 @@ properties:
1717 name :
1818 description : Name of the module.
1919 $ref : https://jsonschemata.repodynamics.com/string/oneline
20+ default : ${{ .__key__ }}$
2021 description :
2122 description : A description for the module.
2223 type : string
@@ -48,11 +49,6 @@ properties:
4849 source :
4950 description : URL of the source code.
5051 $ref : https://jsonschemata.repodynamics.com/url/http-ftp-sftp
51- file :
52- summary : Dynamic files related to the module.
53- type : object
54- additionalProperties :
55- $ref : https://controlman.repodynamics.com/schema/dynamic-file
5652 intersphinx_mapping :
5753 description : Intersphinx mapping definition of the module.
5854 type : object
@@ -99,7 +95,7 @@ properties:
9995 default : |
10096 #{{
10197 import re
102- dep_name = get("..name")
98+ dep_name = get("... name")
10399 name_normalized = re.sub(r"[^a-zA-Z0-9._-]", "-", dep_name).lower()
104100 return re.sub(r"^[^a-zA-Z0-9]+|[^a-zA-Z0-9]+$", "", name_normalized)
105101 }}#
@@ -133,22 +129,18 @@ properties:
133129 spec :
134130 summary : Full match specification.
135131 readOnly : true
136- type : object
137- properties :
138- environment :
139- summary : Specification for an `environment.yml` file.
140- type : string
141- default : |-
142- #{{
143- spec = [get("..channel")]
144- for part_name, part_prefix in (
145- ("subdir", "/"), ("name", "::"), ("version", " "), ("build", " ")
146- ):
147- part = get(f"..{part_name}")
148- if part:
149- spec.append(f"{part_prefix}{part}")
150- return "".join(spec)
151- }}#
132+ type : string
133+ default : |-
134+ #{{
135+ spec = [get(".channel")]
136+ for part_name, part_prefix in (
137+ ("subdir", "/"), ("name", "::"), ("version", " "), ("build", " ")
138+ ):
139+ part = get(f".{part_name}")
140+ if part:
141+ spec.append(f"{part_prefix}{part}")
142+ return "".join(spec)
143+ }}#
152144 pip :
153145 title : pip
154146 summary : Specifications for the `pip` package manager.
@@ -169,7 +161,7 @@ properties:
169161 default : |
170162 #{{
171163 import re
172- dep_name = get("..name")
164+ dep_name = get("... name")
173165 name_normalized = re.sub(r"[^a-zA-Z0-9._-]", "-", dep_name).lower()
174166 return re.sub(r"^[^a-zA-Z0-9]+|[^a-zA-Z0-9]+$", "", name_normalized)
175167 }}#
@@ -183,8 +175,6 @@ properties:
183175 [version Specifiers](https://packaging.python.org/en/latest/specifications/version-specifiers/#id5).
184176 examples :
185177 - " >=1.21.2"
186- default : >-
187- #{{ return get("..conda.version", "") }}#
188178 extras :
189179 summary : >-
190180 List of
@@ -205,21 +195,18 @@ properties:
205195 spec :
206196 summary : Full dependency specifier.
207197 readOnly : true
208- type : object
209- properties :
210- pep508 :
211- type : string
212- default : |-
213- #{{
214- spec = [get("..name")]
215- if extras := get("..extras"):
216- spec.append(f"[{','.join(extras)}]")
217- if version := get("..version"):
218- spec.append(version)
219- if marker := get("..marker"):
220- spec.append(f"; {marker}")
221- return " ".join(spec)
222- }}#
198+ type : string
199+ default : |-
200+ #{{
201+ spec = [get(".name")]
202+ if extras := get(".extras"):
203+ spec.append(f"[{','.join(extras)}]")
204+ if version := get(".version"):
205+ spec.append(version)
206+ if marker := get(".marker"):
207+ spec.append(f"; {marker}")
208+ return " ".join(spec)
209+ }}#
223210 apt :
224211 summary : Specifications for the `apt-get` package manager.
225212 type : object
@@ -232,7 +219,7 @@ properties:
232219 default : |
233220 #{{
234221 import re
235- dep_name = get("..name")
222+ dep_name = get("... name")
236223 name_normalized = re.sub(r"[^a-zA-Z0-9._-]", "-", dep_name).lower()
237224 return re.sub(r"^[^a-zA-Z0-9]+|[^a-zA-Z0-9]+$", "", name_normalized)
238225 }}#
@@ -431,7 +418,7 @@ properties:
431418 summary : Custom PowerShell script to install the package.
432419 type : string
433420 selector :
434- summary : Dependency selector .
421+ summary : Selector to apply to the dependency .
435422 $ref : https://jsonschemata.repodynamics.com/string/oneline
436423 validator :
437424 summary : Dependency installation validator.
0 commit comments