Skip to content

Commit

Permalink
Merge pull request #312 from charlesbluca/dask-nightly-patch
Browse files Browse the repository at this point in the history
Update `dask`/`distributed` pinnings to exclude nightlies
  • Loading branch information
jakirkham authored Aug 24, 2022
2 parents 49703f9 + c0ed168 commit bddb4b4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions recipe/gen_patch_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,24 @@ def _gen_new_index_per_key(repodata, subdir, index_key):
if pversion < v2022_6_1:
record['depends'].append('tornado <6.2')

if record_name in {"distributed", "dask"}:
version = pkg_resources.parse_version(record["version"])
if (
version >= pkg_resources.parse_version("2021.12.0") and
version < pkg_resources.parse_version("2022.8.0") or
version == pkg_resources.parse_version("2022.8.0") and
record["build_number"] < 2
):
for dep in record["depends"]:
if dep.startswith("dask-core") or dep.startswith("distributed"):
pkg = dep.split()[0]
major_minor_patch = record["version"].split(".")
major_minor_patch[2] = str(int(major_minor_patch[2]) + 1)
next_patch_version = ".".join(major_minor_patch)
_replace_pin(
dep, f"{pkg} >={version},<{next_patch_version}.0a0", record["depends"], record
)

if record_name == 'fastparquet':
# fastparquet >= 0.7.0 requires pandas >= 1.0.0
# This was taken care of by rebuilding the fastparquet=0.7.0 release
Expand Down

0 comments on commit bddb4b4

Please sign in to comment.