Skip to content
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

Move to platformdirs instead of deprecated appdirs #408

Open
ameraner opened this issue May 7, 2024 · 0 comments
Open

Move to platformdirs instead of deprecated appdirs #408

ameraner opened this issue May 7, 2024 · 0 comments
Labels
dependencies Pull requests that update a dependency file

Comments

@ameraner
Copy link
Collaborator

ameraner commented May 7, 2024

The package appdirs is officially deprecated and not maintained anymore. We should therefore switch to the maintained fork platformdirs: https://github.com/platformdirs/platformdirs .

Appdirs is currently used in e.g.

import appdirs
APPLICATION_AUTHOR = False # used only in Windows, passing False avoids an unnecessary extra parent folder
APPLICATION_NAME = "SIFT"
USER_CACHE_DIR = appdirs.user_cache_dir(APPLICATION_NAME, APPLICATION_AUTHOR)
# Data and config are the same on everything except linux
USER_DATA_DIR = appdirs.user_data_dir(APPLICATION_NAME, APPLICATION_AUTHOR, roaming=True)
USER_CONFIG_DIR = appdirs.user_config_dir(APPLICATION_NAME, APPLICATION_AUTHOR, roaming=True)

Note: this issue is ported from the EUM Gitlab issue 200.

@ameraner ameraner added dependencies Pull requests that update a dependency file EUM-WIP This issue is (scheduled to) being worked on by EUM and removed EUM-WIP This issue is (scheduled to) being worked on by EUM labels May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

1 participant