Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mlflow 2.18.0 #8

Merged
merged 6 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mlflow_variant:
- default
- skinny
- default
- skinny
37 changes: 22 additions & 15 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set name = "mlflow" %}
{% set version = "2.16.2" %}
{% set version = "2.18.0" %}

# MLFlow offers two variants, a "normal" install and a "skinny" install with
# a reduced installation and fewer dependencies. The skinny installation is obtained
Expand All @@ -23,13 +23,11 @@ package:
source:
# Using github as source for mlflow-skinny which does not exist on PyPI
url: https://github.com/mlflow/mlflow/archive/refs/tags/v{{ version }}.zip
sha256: d101bf639b7671408d67d357f4af207e8655a41d50ca3befa951026d49751e39
sha256: 910ad1e2fce93b412063637d465e9291c99678a3bbccbf2b4f7736887321f44b

build:
number: 0
entry_points:
- mlflow=mlflow.cli:cli
skip: true # [py<38 or s390x]
skip: true # [py<39 or s390x]
Copy link

@ifitchet ifitchet Dec 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scrub that version mismatch with Jira

script: |
{% if mlflow_variant == "skinny" %}
export MLFLOW_SKINNY=1 # [not win]
Expand All @@ -39,11 +37,13 @@ build:
cp {{ SRC_DIR }}/pyproject.skinny.toml pyproject.toml # [not win]
copy {{ SRC_DIR }}\pyproject.skinny.toml pyproject.toml # [win]
{% endif %}
{{ PYTHON }} -m pip install . --no-deps --no-build-isolation --ignore-installed --no-cache-dir -vvv
{{ PYTHON }} -m pip install . --no-deps --no-build-isolation --ignore-installed --no-cache-dir -vv
{% if mlflow_variant == "skinny" %}
cp orig_pyproject.toml pyproject.toml # [not win]
copy orig_pyproject.toml pyproject.toml # [win]
{% endif %}
entry_points:
- mlflow=mlflow.cli:cli

requirements:
host:
Expand Down Expand Up @@ -80,18 +80,20 @@ requirements:
- matplotlib-base <4
- numpy <3
- pandas <3
- pyarrow <18,>=4.0.0
- pyarrow <19,>=4.0.0
Copy link

@ifitchet ifitchet Dec 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scrub that version mismatch with Jira

- scikit-learn <2
- scipy <2
- sqlalchemy >=1.4.0,<3
- waitress <4 # [win]
{% endif %}
run_constrained:
- mlflow{{ mlflow_other }} <0a0
# extras
- google-cloud-storage >=1.30.0
- azureml-core >=1.2.0
- mlserver >=1.2.0, !=1.3.1, <1.4.0
- mlserver-mlflow >=1.2.0,!=1.3.1,<1.4.0
# mlserver
- mlserver >=1.2.0, !=1.3.1
- mlserver-mlflow >=1.2.0,!=1.3.1
# mlflow-gateway, mlflow-skinny-gateway, genai
- pydantic >=1.0,<3
- fastapi <1
Expand All @@ -105,6 +107,8 @@ requirements:
- azure-storage-file-datalake >12
- google-cloud-storage >=1.30.0
- boto3 >1
# langchain
- langchain >=0.1.0,<=0.3.7

test:
imports:
Expand All @@ -125,20 +129,28 @@ test:
{% endif %}
source_files:
- tests/artifacts
requires:
- pip
- pytest
- pillow
- numpy
commands:
- mlflow --help
- mlflow --version
- pip check
# these tests come from the conda-forge recipe
{% if mlflow_variant != "skinny" %}
- mlflow recipes --help
# This should not be packaged
- test ! -f $SP_DIR/pylint_plugins # [unix]
- test ! -f $SP_DIR/pylint_plugins # [unix]
- echo "Checking 'mlflow' exists..." # [unix]
- pip list | grep "mlflow \+${PKG_VERSION}" # [unix]
# smoke tests
# skip test_log_artifact_windows_path_with_hostname (run only for win)
# because needs a data file
- pytest -vv tests/artifacts -k "not test_log_artifact_windows_path_with_hostname"
{% else %}
- echo "Checking 'mlflow-skinny' exists..." # [unix]
- pip list | grep "mlflow-skinny \+${PKG_VERSION}" # [unix]
# smoke tests
# skip test_load_image because numpy is not included in the skinny variant
Expand All @@ -148,11 +160,6 @@ test:
{% endif %}
# test from .github/workflows/test-package-build.yml#L97
- python -c "import mlflow; print(mlflow.__version__); assert(mlflow.__version__ == '{{ version }}');"
requires:
- pip
- pytest
- pillow
- numpy

about:
home: https://mlflow.org
Expand Down