Skip to content

Conversation

alanmcruickshank
Copy link
Member

@alanmcruickshank alanmcruickshank commented Oct 24, 2024

This resolves #6238. Switches from appdirs (which isn't maintained anymore) to platformdirs.

This however involves revisiting our XDG hack. The original test cases weren't very robust, and so a big chunk of this PR is actually making the test cases better (and work with platform_dirs). Coverage is painful here, but I think the approach I've settled on works out ok.

I've added a chunk more comments and docstrings too to help with making it clearer.

Copy link
Contributor

github-actions bot commented Nov 19, 2024

Coverage Results ✅

Name    Stmts   Miss  Cover   Missing
-------------------------------------
TOTAL   18783      0   100%

243 files skipped due to complete coverage.

@a-detiste
Copy link
Contributor

Thank you already. The original patch was imported in Debian (with this one failing test disabled)

@alanmcruickshank
Copy link
Member Author

Thank you already. The original patch was imported in Debian (with this one failing test disabled)

My pleasure! This one should be almost ready to go.

@alanmcruickshank alanmcruickshank added this pull request to the merge queue Nov 21, 2024
Merged via the queue into main with commit 4dc390f Nov 21, 2024
31 checks passed
@alanmcruickshank alanmcruickshank deleted the ac/platformdirs branch November 21, 2024 15:12
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 dependency with platformdirs
3 participants