1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-21 04:10:37 +02:00

Replace unmaintained appdirs by platformdirs

8734277956
This commit is contained in:
Jochen Sprickerhof 2024-07-13 19:05:57 +02:00
parent 956c4be7e5
commit e1aaa3ce93
No known key found for this signature in database
GPG Key ID: 5BFFDCC258E69433
2 changed files with 5 additions and 5 deletions

View File

@ -133,17 +133,17 @@ orig_path = None
def get_default_cachedir():
"""Get a cachedir, using appdirs for cross-platform, but works without.
"""Get a cachedir, using platformdirs for cross-platform, but works without.
Once appdirs is installed everywhere, this function can be
Once platformdirs is installed everywhere, this function can be
removed.
"""
appname = __name__.split('.')[0]
try:
import appdirs
import platformdirs
return appdirs.user_cache_dir(appname, 'F-Droid')
return platformdirs.user_cache_dir(appname, 'F-Droid')
except ImportError:
return str(Path.home() / '.cache' / appname)

View File

@ -91,7 +91,7 @@ setup(
'babel',
],
install_requires=[
'appdirs',
'platformdirs',
'androguard >= 3.3.5',
'asn1crypto',
'clint',