Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add run_constrained for requests #287

Merged
merged 3 commits into from
Jun 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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