jazzband / django-polymorphic

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

pkg_resources is deprecated #599

Closed bckohan closed 5 months ago

bckohan commented 5 months ago

Getting deprecation warnings in my projects that use django-polymorphic

I will submit a PR.

bckohan commented 5 months ago

Ah, I see this was already fixed in master.

martin-thoma commented 3 months ago

Why wasn't there a release for django-polymorphic for such a long time? https://pypi.org/project/django-polymorphic/

jedie commented 2 months ago

This is still not released?!? So Python 3.12 installation are broken by:

...
   File "/home/runner/work/bx_django_utils/bx_django_utils/bx_django_utils_tests/test_app/models.py", line 5, in <module>
    from polymorphic.models import PolymorphicModel
  File "/home/runner/work/bx_django_utils/bx_django_utils/.tox/py312-django50/lib/python3.12/site-packages/polymorphic/__init__.py", line 9, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'
martin-thoma commented 2 months ago

You can install from github. I guess at the moment that is the only option.