From 1c902ce315c085c09447eca2e2d98cef3166c532 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Sun, 15 Dec 2024 12:52:46 -0700 Subject: [PATCH] FIX: Replace minimum required Python for scikit-hep-testdata v0.5.0. (#928) * https://github.com/conda-forge/scikit-hep-testdata-feedstock has broken metadata for package scikit-hep-testdata-0.5.0-pyhd8ed1ab_0.conda. (https://anaconda.org/conda-forge/scikit-hep-testdata/files?version=0.5.0) The package has a 'run' requirement of python >=3.8 but scikit-hep-testdata v0.5.0 dropped 3.8 support and is Python 3.9+. This was fixed in https://github.com/conda-forge/scikit-hep-testdata-feedstock PR 68 on 2024-11-20, so use 1732172400000 (2024-11-21 in human readable metadata) as the cutoff timestamp. $ python -c "import datetime; print(f'{datetime.datetime(2024,11,21).timestamp():.0f}000')" 1732172400000 --- recipe/patch_yaml/scikit-hep-testdata.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 recipe/patch_yaml/scikit-hep-testdata.yaml diff --git a/recipe/patch_yaml/scikit-hep-testdata.yaml b/recipe/patch_yaml/scikit-hep-testdata.yaml new file mode 100644 index 000000000..37d00e183 --- /dev/null +++ b/recipe/patch_yaml/scikit-hep-testdata.yaml @@ -0,0 +1,16 @@ +# https://github.com/conda-forge/scikit-hep-testdata-feedstock has broken +# metadata for package scikit-hep-testdata-0.5.0-pyhd8ed1ab_0.conda. +# The package has a 'run' requirement of python >=3.8 but scikit-hep-testdata +# v0.5.0 dropped 3.8 support and is Python 3.9+. This was fixed in PR +# https://github.com/conda-forge/scikit-hep-testdata-feedstock/pull/68 on +# 2024-11-20, so use 1732172400000 (2024-11-21 in human readable metadata) +# as the cutoff timestamp. +if: + name: scikit-hep-testdata + version_in: + - 0.5.0 + timestamp_lt: 1732172400000 +then: + - replace_depends: + old: python >=3.8 + new: python >=3.9