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

[MAINT] Update pydantic to >=2.0 #985

Merged
merged 12 commits into from
Nov 22, 2024
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def action_solve_lockfile(
lockfile_filename = pathlib.Path.cwd() / "conda-lock.yaml"

with environment_filename.open("w") as f:
json.dump(specification.dict(), f)
json.dump(specification.model_dump(), f)

context.log.info(
"Note that the output of `conda config --show` displayed below only reflects "
Expand Down Expand Up @@ -82,7 +82,7 @@ def action_save_lockfile(
):
# Note: this calls dict on specification so that the version field is
# part of the output
lockfile = specification.dict()["lockfile"]
lockfile = specification.model_dump()["lockfile"]
lockfile_filename = pathlib.Path.cwd() / "conda-lock.yaml"

with lockfile_filename.open("w") as f:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def action_install_specification(
):
environment_filename = pathlib.Path.cwd() / "environment.yaml"
with environment_filename.open("w") as f:
json.dump(specification.dict(), f)
json.dump(specification.model_dump(), f)

command = [
conda_command,
Expand Down
Loading
Loading