Skip to content

Dependency on pkg_resources #363

@ladislav-hovan

Description

@ladislav-hovan

Hello,

Recently I've received this warning when trying to import the package:

/fp/projects01/ec31/kuijjer-group/ladislav/projects/stoat/stoat/.pixi/envs/stoat-dev/lib/python3.10/site-packages/netZooPy/sambar/sambar.py:8: 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.

The only file that depends on pkg_resources should be sambar.py. I just wanted to bring this to your attention as this dependency should probably be eliminated before December 😃. Also, this makes netZooPy depend explicitly on setuptools, which is usually shipped with Python when installing via conda or pip, but it is not part of the standard library. I was recently testing a pixi environment and there setuptools was not provided by default, so the import didn't work. My point is that if the solution ends up being dependent on setuptools anyway, it should probably be properly declared as a dependency.

Best regards,
Ladislav

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