File: 1068010_appdirs_to_platformdirs.patch

package info (click to toggle)
snakemake 7.32.4-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,832 kB
  • sloc: python: 32,846; javascript: 1,287; makefile: 247; sh: 163; ansic: 57; lisp: 9
file content (82 lines) | stat: -rw-r--r-- 2,233 bytes parent folder | download | duplicates (2)
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
Description: Use platformdirs not appdirs

(I suspect it's an (unrelated) bug that it appears twice
in test-environment.yml)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1068010
Forwarded: no

--- a/doc-environment.yml
+++ b/doc-environment.yml
@@ -6,7 +6,7 @@ dependencies:
   - wrapt
   - pyyaml
   - requests
-  - appdirs
+  - platformdirs
   - docutils
   - ratelimiter
   - configargparse
--- a/docs/executing/cli.rst
+++ b/docs/executing/cli.rst
@@ -15,7 +15,7 @@ Important environment variables
 -------------------------------
 
 Snakemake caches source files for performance and reproducibility.
-The location of this cache is determined by the `appdirs <https://github.com/ActiveState/appdirs>`_ package.
+The location of this cache is determined by the `platformdirs <https://github.com/platformdirs/platformdirs>`_ package.
 If you want to change the location on a unix/linux system, you can define an override path via the environment variable ``XDG_CACHE_HOME``.
 
 .. user_manual-snakemake_options:
--- a/docs/requirements.txt
+++ b/docs/requirements.txt
@@ -5,4 +5,4 @@ sphinx_rtd_theme
 docutils
 myst-parser
 configargparse
-appdirs
\ No newline at end of file
+platformdirs
--- a/setup.cfg
+++ b/setup.cfg
@@ -33,7 +33,7 @@ include_package_data = False
 packages = find:
 python_requires = >=3.7
 install_requires =
-    appdirs
+    platformdirs
     configargparse
     connection_pool >=0.0.3
     datrie
--- a/snakemake/common/__init__.py
+++ b/snakemake/common/__init__.py
@@ -82,7 +82,7 @@ RULEFUNC_CONTEXT_MARKER = "__is_snakemak
 def get_appdirs():
     global APPDIRS
     if APPDIRS is None:
-        from appdirs import AppDirs
+        from platformdirs import AppDirs
 
         APPDIRS = AppDirs("snakemake", "snakemake")
     return APPDIRS
--- a/test-environment.yml
+++ b/test-environment.yml
@@ -22,7 +22,7 @@ dependencies:
   - responses
   - dropbox
   - numpy
-  - appdirs
+  - platformdirs
   - pytools
   - docutils
   - pygments
@@ -38,7 +38,7 @@ dependencies:
   - oauth2client
   - azure-storage-blob
   - configargparse
-  - appdirs
+  - platformdirs
   - python-irodsclient <1.1.2 # bug in 1.1.2 leads to KeyError
   - cwltool
   - cwl-utils