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

Patch older versions of psiresp to pin dependencies #249

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions recipe/gen_patch_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -1417,6 +1417,19 @@ def _gen_new_index_per_key(repodata, subdir, index_key):
new_depends += ["click ==8.0.4", "__linux"]
record["depends"] = new_depends

# Fix pins for psiresp to avoid pulling in very old QCFractal versions
# This is fixed from 0.4.2 onwards but should be fixed for older versions too
# https://github.com/lilyminium/psiresp/issues/93
if record_name == "psiresp" and record["version"] in ["0.3.1", "0.4.0", "0.4.1"]:
_replace_pin("qcfractal", "qcfractal >=0.15", record["depends"], record)
elif record_name == "psiresp-base":
if record["version"] in ["0.3.1", "0.4.0", "0.4.1"]:
if record["version"] == "0.3.1" and record["build_number"] == 0:
record["depends"].append("pydantic >=1.9")
else:
_replace_pin("pydantic", "pydantic >=1.9", record["depends"], record)
_replace_pin("pydantic >=1.0", "pydantic >=1.9", record["depends"], record)

return index


Expand Down