Skip to content

Commit

Permalink
Patch automerged anndata 0.9.0 that dropped support for Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
jdblischak committed Apr 12, 2023
1 parent 71e3562 commit 396ebe1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions recipe/gen_patch_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -2795,6 +2795,17 @@ def _gen_new_index_per_key(repodata, subdir, index_key):
new_constrains.append(f"cuda-cccl_{subdir} <0.0.0a0")
record['constrains'] = new_constrains

# anndata 0.9.0 dropped support for Python 3.7 but build 0 didn't
# update the Python pin. Fixed for build_number 1 in
# https://github.com/conda-forge/anndata-feedstock/pull/28
if (
record_name == "anndata"
and record["version"] == "0.9.0"
and record["build_number"] == 0
and record.get("timestamp", 0) < 1681324213000
):
_replace_pin("python >=3.6", "python >=3.8", record["depends"], record)

return index


Expand Down

0 comments on commit 396ebe1

Please sign in to comment.