microsoft / DLWorkspace

Deep Learning Workspace
Other
200 stars 74 forks source link

Upgrade to marshmallow 3 #517

Open sloria opened 4 years ago

sloria commented 4 years ago

👋 Just dropping by to let you know that marshmallow v3 is released.

Upgrading will provide a few benefits for this project:

https://github.com/microsoft/DLWorkspace/blob/bb8ee5bf460a754be0966703b623dae79f5dfe70/src/ClusterManager/job.py#L152

You could even do automatic camel-casing using this snippet: https://marshmallow.readthedocs.io/en/latest/examples.html#inflection-camel-casing-keys

After skimming the codebase, it looks like the migration will be straightforward.

from marshmallow import ValidationError

try:
    job_object = JobSchema.load(job)
except ValidationError as error:
    errors = error.messages
hongzhili commented 4 years ago

Thanks! Add @xudifsd

xudifsd commented 4 years ago

Oh, this requires python>=3.5, we will update the code after we migrate to python3, thanks.

KeironO commented 4 years ago

I would love to do this, but there doesn't seem to be any meaningful documentation surrounding how best I can contribute.