jazzband / django-hosts

Dynamic and static host resolving for Django. Maps hostnames to URLconfs.
http://django-hosts.rtfd.org
Other
979 stars 107 forks source link

Switch pkg_resources to importlib.metadata to avoid DeprecationWarning #160

Closed tok3rat0r closed 1 year ago

tok3rat0r commented 1 year ago

With newer versions of Python, use of pkg_resources raises a DeprecationWarning (see for example here and here). From Python 3.8 onward we can instead use importlib.metadata, which provides the version method directly.