From 6a20f12569a217a3ab726af67ebaa4fb9ffa7f49 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Mon, 11 Sep 2023 16:09:31 +0200 Subject: [PATCH 1/3] Add mlflow-gateway output --- recipe/meta.yaml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index ab129cd..919bf84 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -17,7 +17,7 @@ source: sha256: fd569232e65d69c0cb7006847b1a1bd80831bf0e19378052a44ee5c0ae349182 build: - number: 0 + number: 1 outputs: - name: mlflow{{ mlflow_suffix }} @@ -68,6 +68,14 @@ outputs: - matplotlib-base <4 # [mlflow_variant != "skinny"] run_constrained: - mlflow{{ mlflow_other }} <0a0 + # mlflow[gateway] requirements as it is auto-imported if all dependencies are met + # See https://github.com/mlflow/mlflow/blob/045ab98cb4c08e71f0d740a0d5a033d6c69dcf8c/mlflow/__init__.py#L244-L249 + - pydantic >=1.0,<2 + - fastapi <1 + - uvicorn-standard <1 + - watchfiles <1 + - psutil <6 + - aiohttp <4 test: imports: - mlflow @@ -113,6 +121,23 @@ outputs: script: build-mlflow.bat # [win] script: build-mlflow.sh # [unix] + - name: mlflow{{ mlflow_suffix }}-gateway + build: + noarch: python + # Skip this package for cross-builds. We will only need a single upload anyways + skip: true # [not linux64] + requirements: + run: + - {{ pin_subpackage('mlflow' + mlflow_suffix, max_pin='x.x.x') }} + - pydantic >=1.0,<2 + - fastapi <1 + - uvicorn-standard <1 + - watchfiles <1 + - psutil <6 + - aiohttp <4 + test: + imports: + - mlflow.gateway about: home: https://mlflow.org/ From d23b43ce3c850a39ce382920c8ef610ebf7ba357 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Mon, 11 Sep 2023 16:11:49 +0200 Subject: [PATCH 2/3] MNT: Re-rendered with conda-build 3.26.1, conda-smithy 3.25.1, and conda-forge-pinning 2023.09.11.09.30.22 --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f3e5194..51b0d12 100644 --- a/README.md +++ b/README.md @@ -380,7 +380,9 @@ Current release info | Name | Downloads | Version | Platforms | | --- | --- | --- | --- | | [![Conda Recipe](https://img.shields.io/badge/recipe-mlflow-green.svg)](https://anaconda.org/conda-forge/mlflow) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/mlflow.svg)](https://anaconda.org/conda-forge/mlflow) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/mlflow.svg)](https://anaconda.org/conda-forge/mlflow) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/mlflow.svg)](https://anaconda.org/conda-forge/mlflow) | +| [![Conda Recipe](https://img.shields.io/badge/recipe-mlflow--gateway-green.svg)](https://anaconda.org/conda-forge/mlflow-gateway) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/mlflow-gateway.svg)](https://anaconda.org/conda-forge/mlflow-gateway) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/mlflow-gateway.svg)](https://anaconda.org/conda-forge/mlflow-gateway) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/mlflow-gateway.svg)](https://anaconda.org/conda-forge/mlflow-gateway) | | [![Conda Recipe](https://img.shields.io/badge/recipe-mlflow--skinny-green.svg)](https://anaconda.org/conda-forge/mlflow-skinny) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/mlflow-skinny.svg)](https://anaconda.org/conda-forge/mlflow-skinny) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/mlflow-skinny.svg)](https://anaconda.org/conda-forge/mlflow-skinny) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/mlflow-skinny.svg)](https://anaconda.org/conda-forge/mlflow-skinny) | +| [![Conda Recipe](https://img.shields.io/badge/recipe-mlflow--skinny--gateway-green.svg)](https://anaconda.org/conda-forge/mlflow-skinny-gateway) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/mlflow-skinny-gateway.svg)](https://anaconda.org/conda-forge/mlflow-skinny-gateway) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/mlflow-skinny-gateway.svg)](https://anaconda.org/conda-forge/mlflow-skinny-gateway) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/mlflow-skinny-gateway.svg)](https://anaconda.org/conda-forge/mlflow-skinny-gateway) | | [![Conda Recipe](https://img.shields.io/badge/recipe-mlflow--ui--dbg-green.svg)](https://anaconda.org/conda-forge/mlflow-ui-dbg) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/mlflow-ui-dbg.svg)](https://anaconda.org/conda-forge/mlflow-ui-dbg) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/mlflow-ui-dbg.svg)](https://anaconda.org/conda-forge/mlflow-ui-dbg) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/mlflow-ui-dbg.svg)](https://anaconda.org/conda-forge/mlflow-ui-dbg) | Installing mlflow @@ -393,16 +395,16 @@ conda config --add channels conda-forge conda config --set channel_priority strict ``` -Once the `conda-forge` channel has been enabled, `mlflow, mlflow-skinny, mlflow-ui-dbg` can be installed with `conda`: +Once the `conda-forge` channel has been enabled, `mlflow, mlflow-gateway, mlflow-skinny, mlflow-skinny-gateway, mlflow-ui-dbg` can be installed with `conda`: ``` -conda install mlflow mlflow-skinny mlflow-ui-dbg +conda install mlflow mlflow-gateway mlflow-skinny mlflow-skinny-gateway mlflow-ui-dbg ``` or with `mamba`: ``` -mamba install mlflow mlflow-skinny mlflow-ui-dbg +mamba install mlflow mlflow-gateway mlflow-skinny mlflow-skinny-gateway mlflow-ui-dbg ``` It is possible to list all of the versions of `mlflow` available on your platform with `conda`: From 8f9a9373286be6b9d13bc8e89e2ea1c18cfaa046 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Mon, 11 Sep 2023 16:18:53 +0200 Subject: [PATCH 3/3] Make the linter happy --- recipe/meta.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 919bf84..e00d492 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -120,6 +120,9 @@ outputs: - {{ pin_subpackage('mlflow' + mlflow_suffix, exact=True) }} script: build-mlflow.bat # [win] script: build-mlflow.sh # [unix] + test: + commands: + - exit 0 - name: mlflow{{ mlflow_suffix }}-gateway build: