Skip to content

Replace deprecated appdirs with platformdirs#441

Open
kratos6753 wants to merge 1 commit into
joerick:mainfrom
kratos6753:fix-279
Open

Replace deprecated appdirs with platformdirs#441
kratos6753 wants to merge 1 commit into
joerick:mainfrom
kratos6753:fix-279

Conversation

@kratos6753
Copy link
Copy Markdown

Fixes #279

Summary

  • Removes the vendored pyinstrument/vendor/appdirs.py (the upstream appdirs project is officially deprecated)
  • Adds platformdirs as a runtime dependency in setup.py — it is the actively maintained fork recommended by the appdirs maintainers
  • Updates the import and usage in pyinstrument/__main__.py; the user_data_dir API is fully compatible so no behaviour changes

Test plan

  • python -c "from pyinstrument.__main__ import report_dir; print(report_dir())" returns a valid path
  • Existing test suite passes (pytest)

@joerick
Copy link
Copy Markdown
Owner

joerick commented May 7, 2026 via email

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.

replace deprecated appdirs with platformdirs

2 participants