Skip to content

Commit

Permalink
Merge pull request #287 from ngam/requests
Browse files Browse the repository at this point in the history
add run_constrained for requests
  • Loading branch information
ocefpaf committed Jun 29, 2022
2 parents ac36e49 + b90b5e3 commit 1bdda53
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions recipe/gen_patch_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -1630,6 +1630,22 @@ def _gen_new_index_per_key(repodata, subdir, index_key):
if record.get("timestamp", 0) <= 1654360235233:
_replace_pin("scipy >=0.14,<1.8.0", "scipy >=0.14", record["depends"], record)

if record_name == "requests" and (
pkg_resources.parse_version(record["version"]) >=
pkg_resources.parse_version("2.26.0") and
pkg_resources.parse_version(record["version"]) <
pkg_resources.parse_version("2.28.0")):
record.setdefault('constrains', []).extend((
"chardet >=3.0.2,<5",
))

if record_name == "requests" and (
pkg_resources.parse_version(record["version"]) ==
pkg_resources.parse_version("2.28.0") and
record["build_number"] == 0):
record.setdefault('constrains', []).extend((
"chardet >=3.0.2,<5",
))
# Different patch versions of ipopt can be ABI incompatible
# See https://github.com/conda-forge/ipopt-feedstock/issues/85
if has_dep(record, "ipopt") and record.get('timestamp', 0) < 1656352053694:
Expand Down

0 comments on commit 1bdda53

Please sign in to comment.