datajoint-python icon indicating copy to clipboard operation
datajoint-python copied to clipboard

refactor: Removed deprecation by switching to importlib.metadata

Open tabedzki opened this issue 5 months ago • 2 comments

While the larger overhaul of the plugin architecture is being considered (#1251, this is a small fix to move away from pkg_resources and use importlib.metadata.

Nothing else has changed as this is solely to remove the deprecation warning when importing datajoint.

Edit: I tested it for Python 3.9 to 3.12 by doing

for version in 3.9 3.10 3.11 3.12; do
  uv run --python $version python -c 'import datajoint as dj; print(dj.__file__); print("Datajoint import successful")'; done

tabedzki avatar Jul 31 '25 20:07 tabedzki

Thank you, @tabedzki Please merge with the latest release.

Please also take a look at #1252 and #1253

dimitri-yatsenko avatar Aug 05 '25 03:08 dimitri-yatsenko

This PR is stale because it has been open for 45 days with no activity.

github-actions[bot] avatar Sep 20 '25 02:09 github-actions[bot]