Skip to content

MNT: I remove the legacy SimPEG module - #1848

Open
manduinca wants to merge 3 commits into
simpeg:mainfrom
manduinca:fix/remove-legacy-simpeg-module
Open

manduinca wants to merge 3 commits into
simpeg:mainfrom
manduinca:fix/remove-legacy-simpeg-module

Conversation

@manduinca

Copy link
Copy Markdown
Contributor

Summary

I remove the deprecated SimPEG import shim before v0.27.0. The canonical simpeg package remains available.

PR Checklist

  • I linted the changed Python file with the project’s pinned Black, flake8 and Ruff versions.
  • I updated the import regression test to cover the removed module.

Reference issue

Closes #1847.

What does this implement/fix?

I remove SimPEG.py and its py-modules packaging entry, and replace the old compatibility test with a check that importing SimPEG raises ModuleNotFoundError for that exact module.

Additional information

The regression test fails before the removal and passes afterward. All 19 focused tests pass.

I built the wheel from the sdist and verified that both omit SimPEG.py. The wheel retains the same 193 canonical package paths as the baseline wheel. In a clean Python 3.14 environment outside the checkout, import simpeg, representative submodules and an IdentityMap smoke check work, while import SimPEG fails as intended.

I have not run the full test suite.

@codecov

codecov Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.81%. Comparing base (e13cbfd) to head (dd959f9).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1848      +/-   ##
==========================================
- Coverage   86.85%   86.81%   -0.04%     
==========================================
  Files         441      441              
  Lines       58023    58020       -3     
  Branches     5460     5460              
==========================================
- Hits        50394    50370      -24     
- Misses       6196     6213      +17     
- Partials     1433     1437       +4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

Get rid of the SimPEG name for the module

1 participant