jazzband / django-polymorphic

Improved Django model inheritance with automatic downcasting
https://django-polymorphic.readthedocs.io
Other
1.64k stars 280 forks source link

ModuleNotFoundError: No module named 'pkg_resources' #617

Open ldng opened 2 weeks ago

ldng commented 2 weeks ago

It seems the project is depending implicitly on setuptools at runtime. Systematic presence of setuptools should not be assumed; especially now since uv is eating pypa's lunch. Could that dependency at least be made explicit ? Or, even better, drop pkg_resources to not depend on setuptools at all (at least runtime wise).

Thanks

beahues commented 5 days ago

This looks fixed in https://github.com/jazzband/django-polymorphic/pull/541 but it requires either a new release, which looks challenging based on https://github.com/jazzband/django-polymorphic/releases or using the repo directly.