Skip to content

fix: upgrade django-simple-history 3.0.0 -> 3.7.0#283

Merged
devinbarry merged 1 commit intodevelopfrom
fix/upgrade-django-simple-history
Mar 4, 2026
Merged

fix: upgrade django-simple-history 3.0.0 -> 3.7.0#283
devinbarry merged 1 commit intodevelopfrom
fix/upgrade-django-simple-history

Conversation

@devinbarry
Copy link
Contributor

@devinbarry devinbarry commented Mar 4, 2026

Summary

  • Upgrades django-simple-history from 3.0.0 to 3.7.0 to fix pkg_resources ModuleNotFoundError during collectstatic (build STEP 11/17)
  • Version 3.0.0 imports pkg_resources at runtime, which was removed in setuptools>=82. Version 3.7.0 uses pyproject.toml/Hatchling instead, eliminating the dependency
  • Updated all 4 requirement files (requirements.in, requirements.txt, requirements-dev.in, requirements-dev.txt)

Compatibility

  • 3.7.0 requires Django >= 4.2 (project uses 5.0.14) and Python >= 3.8 (project uses 3.12)
  • No breaking API changes; project uses only basic HistoricalRecords() on 5 models + middleware

Test plan

  • Full local test suite passes (1442 passed, 78 skipped)
  • CI pipeline passes (build STEP 11/17 collectstatic no longer fails)

Fixes pkg_resources ModuleNotFoundError during collectstatic in build.
Version 3.0.0 imports pkg_resources at runtime, which is removed in
setuptools>=82. Version 3.7.0 uses pyproject.toml/Hatchling instead.
@devinbarry
Copy link
Contributor Author

Screenshot 2026-03-04 at 10 43 13 Build is green again

@devinbarry devinbarry merged commit 9caffee into develop Mar 4, 2026
4 checks passed
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.

3 participants