Skip to content

Commit 41b1a4d

Browse files
Fix: Pin setuptools<82 for pkg_resources compatibility
setuptools 82.0.0 removed pkg_resources, which plugin.py imports for entry point discovery and plugin verification. This is a minimal fix for the 0.14.x maintenance line. DataJoint 2.x uses importlib.metadata instead. Fixes #1394 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 7baf258 commit 41b1a4d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

datajoint/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import logging
22
from pathlib import Path
33

4-
import pkg_resources
4+
import pkg_resources # requires setuptools<82
55
from cryptography.exceptions import InvalidSignature
66
from otumat import hash_pkg, verify
77

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies = [
2222
"faker",
2323
"cryptography",
2424
"urllib3",
25-
"setuptools",
25+
"setuptools<82", # pkg_resources removed in 82.0.0
2626
]
2727
requires-python = ">=3.9,<4.0"
2828
authors = [

0 commit comments

Comments
 (0)