Skip to content

docs: extend datajoint.migrate timeline to 2.4 or 2.5#1456

Merged
MilagrosMarin merged 1 commit into
masterfrom
docs/migrate-timeline-bump
May 21, 2026
Merged

docs: extend datajoint.migrate timeline to 2.4 or 2.5#1456
MilagrosMarin merged 1 commit into
masterfrom
docs/migrate-timeline-bump

Conversation

@dimitri-yatsenko
Copy link
Copy Markdown
Member

Summary

The deprecation timeline in src/datajoint/migrate.py was still pointing at a "removed in 2.3 / migrate while on 2.0" plan that has since slipped — the module is present at 2.2.x and 2.3 is shipping with it intact. Update both the module docstring and the runtime DeprecationWarning text to match the current plan.

Was Now
Removal target 2.3 2.4 or 2.5
Safe migration window while on 2.0 while on 2.3 or earlier

Both the docstring .. note:: block and the warnings.warn(...) message are updated together.

Pairs with datajoint-docs#176, which makes the matching change to the Migrate to DataJoint 2.0 how-to.

Test plan

  • python -c "import warnings; warnings.simplefilter('always'); import datajoint.migrate" shows the new warning text
  • No functional/behavior change

Note on mypy

Local pre-commit's mypy hook fails on a pre-existing unrelated error in storage_adapter.py:98 (a typing shim for older importlib.metadata). Not enforced by CI (lint.yaml only runs codespell + ruff + ruff-format). Skipped with SKIP=mypy git commit per the documented pattern at the top of .pre-commit-config.yaml. Same workaround used in #1455.

The module's docstring and runtime DeprecationWarning still pointed
at the older "removed in 2.3 / while on 2.0" timeline. The module is
still present at 2.2.x and 2.3 is shipping with it intact, so push
the targets forward:

- Removal target: 2.4 or 2.5 (was: 2.3)
- Safe migration window: 2.3 or earlier (was: 2.0)

Matches the warning text in the migration how-to in datajoint-docs.
Copy link
Copy Markdown
Contributor

@MilagrosMarin MilagrosMarin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @dimitri-yatsenko! Verified:

✅ Docstring and warnings.warn(...) updated together to the same timeline (2.4 or 2.5 removal, migrate while on 2.3 or earlier).
Version(__version__) >= Version("2.1") gate preserved — warning still fires on 2.1+.
✅ No code/behavior change, only strings.
✅ Matches the wording in datajoint-docs#176 (which I approved earlier).

Approving.

@MilagrosMarin MilagrosMarin merged commit ad4f257 into master May 21, 2026
7 checks passed
@MilagrosMarin MilagrosMarin deleted the docs/migrate-timeline-bump branch May 21, 2026 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants