From 8836bc81479cce733718d233fd30296d25a4e88c Mon Sep 17 00:00:00 2001 From: Wei Ji <23487320+weiji14@users.noreply.github.com> Date: Wed, 6 Nov 2024 16:18:09 +1300 Subject: [PATCH] Set python_min following CFEP-25 Using minimum python_requires defined at /~https://github.com/Lightning-AI/litdata/blob/v0.2.30/setup.py#L70. See details of CFEP-25 at /~https://github.com/conda-forge/conda-forge.github.io/issues/2351 and https://conda-forge.org/docs/maintainer/knowledge_base/#noarch-python --- recipe/meta.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index e127eec..e418318 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -1,5 +1,6 @@ {% set name = "litdata" %} {% set version = "0.2.30" %} +{% set python_min = python_min|default("3.8") %} package: name: {{ name|lower }} @@ -17,7 +18,7 @@ build: requirements: host: - pip - - python >=3.8 + - python {{ python_min }}.* - setuptools - wheel run: @@ -25,7 +26,7 @@ requirements: - filelock - lightning-utilities - numpy - - python >=3.8 + - python >={{ python_min }} - pytorch - requests @@ -38,6 +39,7 @@ test: - python -c "import numpy as np; from litdata.streaming.serializers import NoHeaderNumpySerializer; serializer = NoHeaderNumpySerializer(); assert serializer.can_serialize(np.ones((10,)))" requires: - pip + - python ={{ python_min }} about: home: /~https://github.com/Lightning-AI/litdata