Skip to content

Commit

Permalink
fix: distutils deprecation warning in Python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielLins64 authored and sirosen committed Feb 6, 2023
1 parent ec410e3 commit 4bd05ce
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ Changelog
* Only support Python>=3.6, marshmallow>=3.0.0, and marshmallow-sqlalchemy>=0.24.0.
* Add support for python3.11

Bug fixes:

* Address distutils deprecation warning in Python 3.10 (:pr:`242`).
Thanks :user:`GabrielLins64` for the PR.

0.14.0 (2020-09-27)
*******************

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
EXTRAS_REQUIRE["tests"] = EXTRAS_REQUIRE["sqlalchemy"] + ["pytest", "mock"]
EXTRAS_REQUIRE["dev"] = EXTRAS_REQUIRE["tests"] + EXTRAS_REQUIRE["lint"] + ["tox"]

REQUIRES = ["Flask", "marshmallow>=3.0.0"]
REQUIRES = ["Flask", "marshmallow>=3.0.0", "packaging>=17.0"]


def find_version(fname):
Expand Down
4 changes: 2 additions & 2 deletions src/flask_marshmallow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
with your Flask application.
"""
import warnings
from distutils.version import LooseVersion
from packaging.version import Version

from marshmallow import fields as base_fields, exceptions, pprint

Expand All @@ -30,7 +30,7 @@
has_sqla = True

__version__ = "0.14.0"
__version_info__ = tuple(LooseVersion(__version__).version)
__version_info__ = Version(__version__).release
__all__ = ["EXTENSION_NAME", "Marshmallow", "Schema", "fields", "exceptions", "pprint"]

EXTENSION_NAME = "flask-marshmallow"
Expand Down

0 comments on commit 4bd05ce

Please # to comment.