justanr / marshmallow-annotations

Allows declaring marshmallow schema through type annotations
MIT License
48 stars 12 forks source link

Marshmallow v3 support #7

Open justanr opened 6 years ago

justanr commented 6 years ago

Need to track changes in names and apis in v3.

sloria commented 5 years ago

FYI, marshmallow v3 stable is released. Let me know if you have any trouble upgrading!

blagree94 commented 4 years ago

FYI, marshmallow v3 stable is released. Let me know if you have any trouble upgrading!

It would be nice because as of today use of marshmallow v3 fails with stack (with python 3.6, marshmallow 3.2.1 and marshmallow-annotations 2.4.0):

ImportError while loading conftest '/home/blagree/git_projects/marshmallow-annotations/test/conftest.py'.
test/conftest.py:5: in <module>
    from marshmallow_annotations.registry import DefaultTypeRegistry
src/marshmallow_annotations/__init__.py:4: in <module>
    from .scheme import AnnotationSchema, AnnotationSchemaMeta
src/marshmallow_annotations/scheme.py:115: in <module>
    class AnnotationSchema(Schema, metaclass=AnnotationSchemaMeta):
../../../conda/envs/marshmallow-annotations_1901_py3/lib/python3.6/site-packages/marshmallow/schema.py:114: in __new__
    klass.opts = klass.OPTIONS_CLASS(meta, ordered=ordered)
E   TypeError: OPTIONS_CLASS() got an unexpected keyword argument 'ordered'

I would gladly use some advice. Thanking you in advance!