File: platformdirs.patch

package info (click to toggle)
intake 0.6.6-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,724 kB
  • sloc: python: 12,409; makefile: 37; sh: 14
file content (68 lines) | stat: -rw-r--r-- 2,393 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
Index: intake-0.6.6/intake/catalog/default.py
===================================================================
--- intake-0.6.6.orig/intake/catalog/default.py
+++ intake-0.6.6/intake/catalog/default.py
@@ -5,7 +5,7 @@
 # The full license is in the LICENSE file, distributed with this software.
 #-----------------------------------------------------------------------------
 
-import appdirs
+import platformdirs
 import json
 import os
 import shutil
@@ -28,7 +28,7 @@ def load_user_catalog():
 
 def user_data_dir():
     """Return the user Intake catalog directory"""
-    return appdirs.user_data_dir(appname='intake', appauthor='intake')
+    return platformdirs.user_data_dir(appname='intake', appauthor='intake')
 
 
 def load_global_catalog():
@@ -72,7 +72,7 @@ def global_data_dir():
         # conda and virtualenv use Linux-style directory pattern
         return make_path_posix(os.path.join(prefix, 'share', 'intake'))
     else:
-        return appdirs.site_data_dir(appname='intake', appauthor='intake')
+        return platformdirs.site_data_dir(appname='intake', appauthor='intake')
 
 
 def load_combo_catalog():
Index: intake-0.6.6/intake/tests/test_top_level.py
===================================================================
--- intake-0.6.6.orig/intake/tests/test_top_level.py
+++ intake-0.6.6/intake/tests/test_top_level.py
@@ -11,7 +11,7 @@ import sys
 import tempfile
 import time
 
-import appdirs
+import platformdirs
 import intake
 import intake.catalog.local
 import pytest
@@ -22,8 +22,8 @@ from .test_utils import copy_test_file
 @pytest.fixture
 def user_catalog():
     target_catalog = copy_test_file('catalog1.yml',
-                                    appdirs.user_data_dir(appname='intake',
-                                                          appauthor='intake'))
+                                    platformdirs.user_data_dir(appname='intake',
+                                                               appauthor='intake'))
     yield target_catalog
     # Remove the file, but not the directory (because there might be other
     # files already there)
Index: intake-0.6.6/requirements.txt
===================================================================
--- intake-0.6.6.orig/requirements.txt
+++ intake-0.6.6/requirements.txt
@@ -1,7 +1,7 @@
-appdirs
 dask
 entrypoints
 pyyaml
 fsspec >=2021.7.0
 jinja2
 msgpack
+platformdirs