-
Notifications
You must be signed in to change notification settings - Fork 181
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
Use platformdirs for path locations #292
Conversation
I don't think we can make this change, I'm running into ActiveState/appdirs#167.
|
Looks like |
And maintained by Bernat, at that. 👍 |
How should we manage the transition? I can imagine this will be a big pain to people that have configs in our hardcoded places. At the very least, it seems like we should have a deprecation period for the old directories. Probably even better is to have an opt-in to the new behavior on this next major version (with deprecation of old directories), and an opt-out in the major version after that, then final removal of old directories in the major version after that? |
Yeah, that sounds reasonable. |
To elaborate more, here's a proposal: we have a
|
for more information, see https://pre-commit.ci
…iable. We also consolidate where we check the variable so that it is simple to change the default.
@blink1073 - I pushed a commit consolidating the environment checking to a single function that also uses our envset utility function. |
23e4520
to
7db89cc
Compare
493d776
to
5338567
Compare
e7b9149
to
e8b6cda
Compare
for more information, see https://pre-commit.ci
7bdf2c1
to
68624d3
Compare
68624d3
to
e43a162
Compare
for more information, see https://pre-commit.ci
0834ab6
to
58565fb
Compare
741a0eb
to
d7b6f9b
Compare
d7b6f9b
to
0bf2040
Compare
for more information, see https://pre-commit.ci
@blink1073 - this all looks good to me now. If it looks good to you, I think we can merge. Thanks! |
Great! I'll cut a 5.0 rc tomorrow |
This change is causing CI failures in my branches. Is the deprecation warning intended to raise an exception? |
I was able to resolve the failures by explicitly setting |
Hi @dlqqq - your Using jupyter-server as an example, this particular DeprecationWarning can be tolerated by adding it to the filters. |
@kevin-bates Ah, you're right. So, |
Yeah, I had to dig a bit, but found this and remember @blink1073 mentioning something about taking a stronger stance regarding warnings in one of his updates. If you remove the |
Yep, that's right, see for example how jupyter_server handles warnings in tests. |
Adds environment variable to acknowledge that we want to use `platformdirs` to determine which paths to use. See jupyter/jupyter_core#292 for more information.
Adds environment variable to acknowledge that we want to use `platformdirs` to determine which paths to use. See jupyter/jupyter_core#292 for more information.
Adds environment variable to acknowledge that we want to use `platformdirs` to determine which paths to use. See jupyter/jupyter_core#292 for more information.
Fixes #234