Skip to content

Commit

Permalink
Align string_prefix across dependencies (#188)
Browse files Browse the repository at this point in the history
automerged PR by conda-forge/automerge-action
  • Loading branch information
github-actions[bot] authored Jul 31, 2024
2 parents e759080 + 9753ed3 commit 3fe446a
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% set name = "xgboost" %}
{% set version = "2.1.1" %}
{% set build_number = 0 %}
{% set build_number = 1 %}
{% set min_python = "3.8" %}

{% set string_prefix = "cuda" ~ (cuda_compiler_version | replace('.', '')) if (cuda_compiler_version or "None") != "None" else "cpu" %}
Expand All @@ -26,7 +26,7 @@ build:
# xref: https://github.com/conda-forge/xgboost-feedstock/issues/173
{% if python is defined and cuda_compiler_version is defined %}
skip: >-
{{ ( python.split(".")[:2] != min_python.split(".")[:2] or (win and cuda_compiler_version == "11.8") ) }}
{{ python.split(".")[:2] != min_python.split(".")[:2] or (win and cuda_compiler_version == "11.8") }}
{% endif %}

requirements:
Expand Down Expand Up @@ -113,12 +113,14 @@ outputs:
host:
- {{ pin_subpackage('_py-xgboost-mutex', exact=True) }}
- {{ pin_subpackage('libxgboost', max_pin='x.x.x') }}
- libxgboost =*={{ string_prefix }}_h*_{{ PKG_BUILDNUM }}
- python >={{ min_python }}
- hatchling >=1.12.1
- pip
run:
- {{ pin_subpackage('_py-xgboost-mutex', exact=True) }}
- {{ pin_subpackage('libxgboost', max_pin='x.x.x') }}
- libxgboost =*={{ string_prefix }}_h*_{{ PKG_BUILDNUM }}
- python >={{ min_python }}
- numpy
- scipy
Expand All @@ -139,9 +141,11 @@ outputs:
host:
- python >={{ min_python }}
- {{ pin_subpackage('py-xgboost', exact=True) }}
- py-xgboost =*={{ string_prefix }}_pyh*_{{ PKG_BUILDNUM }}
run:
- python >={{ min_python }}
- {{ pin_subpackage('py-xgboost', exact=True) }}
- py-xgboost =*={{ string_prefix }}_pyh*_{{ PKG_BUILDNUM }}
test:
requires:
- python
Expand All @@ -156,9 +160,11 @@ outputs:
host:
- python >={{ min_python }}
- {{ pin_subpackage('py-xgboost', exact=True) }}
- py-xgboost =*={{ string_prefix }}_pyh*_{{ PKG_BUILDNUM }}
run:
- python >={{ min_python }}
- {{ pin_subpackage('py-xgboost', exact=True) }}
- py-xgboost =*={{ string_prefix }}_pyh*_{{ PKG_BUILDNUM }}
- __cuda # [cuda_compiler != "None"]
test:
requires:
Expand All @@ -174,9 +180,11 @@ outputs:
host:
- python >={{ min_python }}
- {{ pin_subpackage('py-xgboost', exact=True) }}
- py-xgboost =*={{ string_prefix }}_pyh*_{{ PKG_BUILDNUM }}
run:
- python >={{ min_python }}
- {{ pin_subpackage('py-xgboost', exact=True) }}
- py-xgboost =*={{ string_prefix }}_pyh*_{{ PKG_BUILDNUM }}
- __cuda # [cuda_compiler != "None"]
test:
requires:
Expand Down Expand Up @@ -228,6 +236,7 @@ outputs:
host:
- {{ pin_subpackage('_r-xgboost-mutex', exact=True) }}
- {{ pin_subpackage('libxgboost', max_pin='x.x.x') }}
- libxgboost =*={{ string_prefix }}_h*_{{ PKG_BUILDNUM }}
- r-base
- r-matrix
- r-data.table
Expand All @@ -237,6 +246,7 @@ outputs:
run:
- {{ pin_subpackage('_r-xgboost-mutex', exact=True) }}
- {{ pin_subpackage('libxgboost', max_pin='x.x.x') }}
- libxgboost =*={{ string_prefix }}_h*_{{ PKG_BUILDNUM }}
- r-base
- r-matrix
- r-data.table
Expand All @@ -259,9 +269,11 @@ outputs:
host:
- r-base
- {{ pin_subpackage('r-xgboost', exact=True) }}
- r-xgboost =*={{ string_prefix }}_r*h*_{{ PKG_BUILDNUM }}
run:
- r-base
- {{ pin_subpackage('r-xgboost', exact=True) }}
- r-xgboost =*={{ string_prefix }}_r*h*_{{ PKG_BUILDNUM }}
test:
requires:
- r-base
Expand All @@ -277,9 +289,11 @@ outputs:
host:
- r-base
- {{ pin_subpackage('r-xgboost', exact=True) }}
- r-xgboost =*={{ string_prefix }}_r*h*_{{ PKG_BUILDNUM }}
run:
- r-base
- {{ pin_subpackage('r-xgboost', exact=True) }}
- r-xgboost =*={{ string_prefix }}_r*h*_{{ PKG_BUILDNUM }}
- __cuda # [cuda_compiler != "None"]
test:
requires:
Expand Down

0 comments on commit 3fe446a

Please sign in to comment.