Skip to content

marshmallow 4.0.0 compatibility - marshmallow.__version__ missing in 4.0.0 #333

Description

@joeld1

Describe the bug
marshmallow no longer contains __version__ attribute.

    if name == "__version__":
        warnings.warn(
            "The '__version__' attribute is deprecated and will be removed in"
            " in a future version. Use feature detection or"
            " 'importlib.metadata.version(\"marshmallow\")' instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return importlib.metadata.version("marshmallow")

To Reproduce
accompany uplink installation with marshmallow 4.0.0 pinned

Expected behavior
no import errors should occur because of marshmallow.__version__

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions