Skip to content

Commit

Permalink
Remove __version__ (#568)
Browse files Browse the repository at this point in the history
* Remove __version__

* Update changelog
  • Loading branch information
sloria committed Jan 30, 2024
1 parent f19b8e2 commit 6a39fac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 5 additions & 3 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ Changelog
1.0.0 (unreleased)
+++++++++++++++++++

* Support marshmallow>=3.10.0.
* Remove ``__version__`` attribute. Use feature detection or
``importlib.metadata.version("marshmallow-sqlalchemy")`` instead (:pr:`568`).
* Support marshmallow>=3.10.0 (:pr:`566`).
* Passing `info={"marshmallow": ...}` to SQLAlchemy columns is removed, as it is redundant with
the ``auto_field`` functionality.
* Remove ``packaging`` as a dependency.
the ``auto_field`` functionality (:pr:`567`).
* Remove ``packaging`` as a dependency (:pr:`566`).
* Support Python 3.12.

0.30.0 (2024-01-07)
Expand Down
4 changes: 0 additions & 4 deletions src/marshmallow_sqlalchemy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import importlib.metadata

from .convert import (
ModelConverter,
column2field,
Expand All @@ -16,8 +14,6 @@
auto_field,
)

# TODO: Deprecate __version__
__version__ = importlib.metadata.version("marshmallow-sqlalchemy")
__all__ = [
"SQLAlchemySchema",
"SQLAlchemyAutoSchema",
Expand Down

0 comments on commit 6a39fac

Please sign in to comment.