1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
From: Roland Mas <roland.mas@entierement.net>
Date: Sun, 12 May 2024 22:06:29 +0200
Subject: Use platformdirs instead of appdirs
---
pyproject.toml | 2 +-
src/napari/utils/_appdirs.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pyproject.toml b/pyproject.toml
index 5125531..f9ba4f8 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -36,7 +36,7 @@ classifiers = [
]
requires-python = ">=3.10"
dependencies = [
- "appdirs>=1.4.4",
+ "platformdirs",
"app-model>=0.4.0,<0.5.0",
"cachey>=0.2.1",
"certifi>=2018.1.18",
diff --git a/src/napari/utils/_appdirs.py b/src/napari/utils/_appdirs.py
index d73f12f..9511751 100644
--- a/src/napari/utils/_appdirs.py
+++ b/src/napari/utils/_appdirs.py
@@ -4,7 +4,7 @@ import sys
from collections.abc import Callable
from functools import partial
-import appdirs
+import platformdirs as appdirs
PREFIX_PATH = os.path.realpath(sys.prefix)
|