Skip to content

Fix: import plateprep does not match PyPI package name - #1

Merged
edgarciavfx merged 1 commit into
mainfrom
fix/plateprep-import-alias
Jul 7, 2026
Merged

edgarciavfx merged 1 commit into
mainfrom
fix/plateprep-import-alias

Conversation

@edgarciavfx

Copy link
Copy Markdown
Owner

Summary

  • pip install plateprep installs a package importable only as plate (import plateprep raises ModuleNotFoundError), discovered while smoke-testing the 0.2.0 release.
  • Adds a thin plateprep/__init__.py shim re-exporting plate.__version__, registers it in pyproject.toml's setuptools packages, and bumps the version to 0.2.1 for release.
  • plate remains the primary, documented import (from plate.pipeline import PlatePipeline) — this only adds the alias so the distribution name also works.

Test plan

  • pytest tests/ — 166 passed, 8 skipped
  • New tests/test_plateprep_alias.py verifies plateprep.__version__ == plate.__version__
  • Built wheel locally and confirmed plateprep/__init__.py is bundled in the dist

🤖 Generated with Claude Code

The PyPI package is named plateprep but the only importable module is
plate, so `import plateprep` raises ModuleNotFoundError for anyone
following the distribution name. Add a thin plateprep package that
re-exports plate's __version__, and register it in setuptools packages.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@edgarciavfx
edgarciavfx merged commit 950f118 into main Jul 7, 2026
0 of 4 checks passed
@edgarciavfx
edgarciavfx deleted the fix/plateprep-import-alias branch July 7, 2026 21:24
@edgarciavfx edgarciavfx mentioned this pull request Jul 7, 2026
2 tasks done
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.

1 participant