-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch from appdirs to platformdirs #10178
Comments
So, do you want to vendor |
Yes that's my proposal. |
None of the paths or APIs changed, right? |
Yeah, fully backward compatible API-wise. We fixed some bugs, so paths might alter depending on what you're using, see https://github.com/platformdirs/platformdirs/blob/main/tests/test_comp_with_appdirs.py#L31-L32. |
Tentitively adding this to 21.2 since I think this can be done as the vendor upgrade process. |
I took a look at the compatibility test. Pip does not use |
Bad news, appdirs is used by pkg_resources, so we need to patch it. Not a showstopper, but it does mean the conversion would not be trivial. So I'm removing this from the 21.2 milestone to give it more time. |
I have made a start on the switch, including patching pkg_resources (see domdfcoding@f6513eb). I'm working on the tests now, but they're proving troublesome because the current monkeypatching approach doesn't work with platformdirs. |
One way we could make it work is to make all appdirs/platformdirs calls go through the |
We've forked appdirs under platformdirs https://github.com/platformdirs/platformdirs, is better maintain so I propose pip to switch part of its vendoring 👍
The text was updated successfully, but these errors were encountered: