Skip to content

Commit e759080

Browse files
Update recipe style based on autoupdate bot preferences (#185)
automerged PR by conda-forge/automerge-action
2 parents 09c3182 + d73b846 commit e759080

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

recipe/meta.yaml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
{% set build_number = 0 %}
44
{% set min_python = "3.8" %}
55

6-
{% set string_prefix = "cuda" ~ (cuda_compiler_version | replace('.', '')) %} # [cuda_compiler_version != "None"]
7-
{% set string_prefix = "cpu" %} # [cuda_compiler_version == "None"]
6+
{% set string_prefix = "cuda" ~ (cuda_compiler_version | replace('.', '')) if (cuda_compiler_version or "None") != "None" else "cpu" %}
87

98
package:
109
name: xgboost-split
@@ -27,10 +26,7 @@ build:
2726
# xref: https://github.com/conda-forge/xgboost-feedstock/issues/173
2827
{% if python is defined and cuda_compiler_version is defined %}
2928
skip: >-
30-
{{ (
31-
python.split(".")[:2] != min_python.split(".")[:2] or
32-
(win and cuda_compiler_version == "11.8")
33-
) }}
29+
{{ ( python.split(".")[:2] != min_python.split(".")[:2] or (win and cuda_compiler_version == "11.8") ) }}
3430
{% endif %}
3531

3632
requirements:
@@ -54,7 +50,7 @@ outputs:
5450
script: install-libxgboost.sh # [not win]
5551
script: install-win-wrapper.bat # [win]
5652
build:
57-
activate_in_script: True
53+
activate_in_script: true
5854
string: {{ string_prefix }}_h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}
5955
ignore_run_exports_from:
6056
- {{ compiler('cuda') }} # [(cuda_compiler_version or "").startswith("11")]
@@ -138,7 +134,7 @@ outputs:
138134
- name: py-xgboost-cpu
139135
build:
140136
noarch: python
141-
skip: True # [cuda_compiler != "None"]
137+
skip: true # [cuda_compiler != "None"]
142138
requirements:
143139
host:
144140
- python >={{ min_python }}
@@ -155,7 +151,7 @@ outputs:
155151
- name: py-xgboost-gpu
156152
build:
157153
noarch: python
158-
skip: True # [cuda_compiler == "None"]
154+
skip: true # [cuda_compiler == "None"]
159155
requirements:
160156
host:
161157
- python >={{ min_python }}
@@ -200,7 +196,7 @@ outputs:
200196
script: install-r-xgboost.sh # [not win]
201197
script: install-r-xgboost.bat # [win]
202198
build:
203-
skip: True # [r_base in ("4.1", "4.2") or win]
199+
skip: true # [r_base in ("4.1", "4.2") or win]
204200
string: {{ string_prefix }}_r{{ r_base | replace('.', '') }}h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}
205201
rpaths:
206202
- lib/R/lib
@@ -257,8 +253,8 @@ outputs:
257253

258254
- name: r-xgboost-cpu
259255
build:
260-
skip: True # [cuda_compiler != "None"]
261-
skip: True # [r_base in ("4.1", "4.2") or win]
256+
skip: true # [cuda_compiler != "None"]
257+
skip: true # [r_base in ("4.1", "4.2") or win]
262258
requirements:
263259
host:
264260
- r-base
@@ -275,8 +271,8 @@ outputs:
275271

276272
- name: r-xgboost-gpu
277273
build:
278-
skip: True # [cuda_compiler == "None"]
279-
skip: True # [r_base in ("4.1", "4.2") or win]
274+
skip: true # [cuda_compiler == "None"]
275+
skip: true # [r_base in ("4.1", "4.2") or win]
280276
requirements:
281277
host:
282278
- r-base

0 commit comments

Comments
 (0)