marshmallow-code / apispec-webframeworks

Web framework plugins for apispec (formally in apispec.ext).
MIT License
32 stars 23 forks source link

Modernize package by replacing pkg_resources with importlib.metadata #127

Closed Quentin-Pinot closed 8 months ago

Quentin-Pinot commented 8 months ago

Hello,

I've been inspired by this issue to modernize the package by replacing the deprecated pkg_resources by importlib.metadata.

sloria commented 8 months ago

thanks for the PR! i think the best approach is to get rid of the __version__ variable altogether. users can use importlib.metadata on their own. other projects seem to be going this route (see flask: https://github.com/pallets/flask/blob/7b5e176d1ab23e183d0403573358299ed6562dce/src/flask/__init__.py#L46-L60).

once i have a moment to modernize this package, i'll go ahead and do that.

thanks anyway for the PR!