Skip to content

Commit f92258f

Browse files
fix: declare packaging as an explicit dependency
src/datajoint/migrate.py imports ``packaging.version.Version`` but ``packaging`` is not listed in pyproject.toml dependencies. None of the declared deps pull it in transitively, so a fresh ``pip install datajoint`` into a clean Python 3.12+ venv (where the venv no longer ships setuptools by default) leaves ``packaging`` uninstalled and ``import datajoint`` raises:: ModuleNotFoundError: No module named 'packaging' This is a pre-existing bug — same failure reproduces on 2.2.2 and 2.2.3 — but only became user-visible with Python 3.12's leaner venvs. Adds ``packaging`` to the dependencies list. No version pin since ``migrate.py`` uses only the basic ``Version`` class, which has been stable across the package's history.
1 parent 72cf607 commit f92258f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ dependencies = [
1616
"pydot",
1717
"fsspec>=2023.1.0",
1818
"pydantic-settings>=2.0.0",
19+
"packaging",
1920
]
2021

2122
requires-python = ">=3.10,<3.14"

0 commit comments

Comments
 (0)