jazzband/django-model-utils

package not compatible with python 3.12

domdinicola opened this issue · 3 comments

Problem

Not compatible with python 3.12: pkg_resources is not anymore

Environment

  • Python version: 3.12

Code examples


    from model_utils.models import TimeStampedModel
  File "/home/circleci/project/.tox/py312-d50/lib/python3.12/site-packages/model_utils/__init__.py", line 1, in <module>
    from pkg_resources import DistributionNotFound, get_distribution
ModuleNotFoundError: No module named 'pkg_resources'
py312-d50: exit 1 (1.84 seconds) /home/circleci/project> pytest tests -q --create-db --cov-report=html --cov-report=term --cov-config=/home/circleci/project/tests/.coveragerc --cov=******_attachments pid=856
.pkg: _exit> python /home/circleci/.pyenv/versions/3.12.0/lib/python3.12/site-packages/pyproject_api/_backend.py True hatchling.build

This should be fixed in #545, which is already merged.
@adamchainz Is there anything blocking the new release?

I am not a maintainer

Closing this as of v4.4.0 is released on 2024-02-10 with support for python 3.12