assist icon indicating copy to clipboard operation
assist copied to clipboard

DeprecationWarning: pkg_resources is deprecated as an API.

Open mschwamb opened this issue 1 year ago • 6 comments

../../../../../../../../mambaforge/envs/sorcha/lib/python3.10/site-packages/assist/init.py:44 /Users/mschwamb/mambaforge/envs/sorcha/lib/python3.10/site-packages/assist/init.py:44: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html import pkg_resources

mschwamb avatar Feb 17 '24 14:02 mschwamb

Use of pkg_resources is deprecated in favor of importlib.resources, importlib.metadata and their backports (importlib_resources, importlib_metadata). Some useful APIs are also provided by packaging (e.g. requirements and version parsing). Users should refrain from new usage of pkg_resources and should work to port to importlib-based solutions.

mschwamb avatar Feb 17 '24 14:02 mschwamb

@hannorein and @matthewholman would it be possible to get to this ticket? That way layup unit tests won't include the warning. It gets a bit annoying when running the layup unit tests a whole bunch of times when developing new unit tests

mschwamb avatar Apr 22 '25 12:04 mschwamb

Looks like it's already addressed in PR #114 - is the latest version of assist pushed to pypi?

mschwamb avatar Apr 22 '25 12:04 mschwamb

Looks like the last publication to pypi was in March of 2024. Is it possible to get a new version on to pypi so layup is using the latest version

mschwamb avatar Apr 22 '25 12:04 mschwamb

Yes, this should be fixed in #114. @matthewholman would need to push it to pypi.

hannorein avatar Apr 22 '25 13:04 hannorein

The updated version has been pushed to pypi.

matthewholman avatar Apr 24 '25 00:04 matthewholman