Closed orbeckst closed 10 months ago
We use pkg_resources:
DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html from pkg_resources import resource_string
Use importlib instead, along the line of
import importlib.resources as importlib_resources __all__ = ["DX", "CCP4", "gOpenMol"] DX = importlib_resources.files(__name__) / 'test.dx'
(from https://github.com/MDAnalysis/GridDataFormats/blob/master/gridData/tests/datafiles/__init__.py where this was recently fixed)
I'm surprised, I thought that would have failed with Python 3.12 O.O!
It just versioneer... need to update.
Well, I am wrong: MDAnalysisData/base.py:from pkg_resources import resource_string
We use pkg_resources:
Use importlib instead, along the line of
(from https://github.com/MDAnalysis/GridDataFormats/blob/master/gridData/tests/datafiles/__init__.py where this was recently fixed)