File: 0003-Use-platformdirs-instead-of-appdirs.patch

package info (click to toggle)
napari 0.6.6-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 12,004 kB
  • sloc: python: 112,264; xml: 72; makefile: 42; sh: 5
file content (35 lines) | stat: -rw-r--r-- 994 bytes parent folder | download
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 95e74e4..76d3ddc 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -40,7 +40,7 @@ license-files = [
     "LICENSE",
 ]
 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 fbc6631..f909338 100644
--- a/src/napari/utils/_appdirs.py
+++ b/src/napari/utils/_appdirs.py
@@ -7,7 +7,7 @@ from functools import partial
 from importlib.metadata import version
 from pathlib import Path
 
-import appdirs
+import platformdirs as appdirs
 from packaging.version import InvalidVersion, parse as parse_version
 
 __all__ = (