Skip to content

pkg_resources package is slated for removal as early as 2025-11-30 #76

@Emad88

Description

@Emad88

This line raises the following warning:

/django_excel/_compact.py:1: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.

So I would suggest changing how the this package gets the django version.
Here are described some alternative ways to do it: https://stackoverflow.com/questions/6468397/how-to-check-django-version

In the same file there is also this deprecation warning:

/django_excel/_compact.py:18: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions