[med-svn] [Git][med-team/snakemake][main] Added patch to replace appdirs with platformdirs.

Michael R. Crusoe (@crusoe) gitlab at salsa.debian.org
Sat Apr 25 13:32:37 BST 2026



Michael R. Crusoe pushed to branch main at Debian Med / snakemake


Commits:
4cc4a838 by Michael R. Crusoe at 2026-04-25T14:32:29+02:00
Added patch to replace appdirs with platformdirs.

- - - - -


4 changed files:

- debian/changelog
- debian/control
- + debian/patches/replace_appdirs
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -7,6 +7,7 @@ snakemake (8.2.3-1) UNRELEASED; urgency=medium
 
   [ Michael R. Crusoe ]
   * d/gbp.conf: document layout
+  * Added patch to replace appdirs with platformdirs.
 
  -- Rebecca N. Palmer <rebecca_palmer at zoho.com>  Sat, 20 Jan 2024 10:47:03 +0000
 


=====================================
debian/control
=====================================
@@ -11,7 +11,7 @@ Build-Depends: ca-certificates,
                environment-modules,
                imagemagick,
                python3,
-               python3-appdirs <!nocheck>,
+               python3-platformdirs <!nocheck>,
                python3-biopython <!nocheck>,
                python3-boto3 <!nocheck>,
                python3-botocore <!nocheck>,
@@ -64,7 +64,7 @@ Architecture: all
 Depends: ${misc:Depends},
          ${python3:Depends},
          ca-certificates,
-         python3-appdirs,
+         python3-platformdirs,
          python3-configargparse,
          python3-datrie,
          python3-docutils,


=====================================
debian/patches/replace_appdirs
=====================================
@@ -0,0 +1,99 @@
+From: Michael R. Crusoe <crusoe at debian.org>
+Subject: replace appdirs with platformdirs
+Forwarded: https://github.com/snakemake/snakemake/pull/4170
+
+appdirs is no longer maintained upstream and has been removed from Debian and
+other distributions
+--- snakemake.orig/doc-environment.yml
++++ snakemake/doc-environment.yml
+@@ -6,7 +6,7 @@
+   - wrapt
+   - pyyaml
+   - requests
+-  - appdirs
++  - platformdirs
+   - docutils
+   - ratelimiter
+   - configargparse
+--- snakemake.orig/docs/executing/cli.rst
++++ snakemake/docs/executing/cli.rst
+@@ -15,7 +15,7 @@
+ -------------------------------
+ 
+ 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://platformdirs.readthedocs.io/>`_ 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:
+--- snakemake.orig/docs/requirements.txt
++++ snakemake/docs/requirements.txt
+@@ -4,9 +4,9 @@
+ docutils
+ myst-parser
+ configargparse
+-appdirs
++platformdirs
+ immutables
+ sphinxawesome-theme
+ snakemake-interface-common
+ snakemake-interface-executor-plugins
+-snakemake-interface-storage-plugins
+\ No newline at end of file
++snakemake-interface-storage-plugins
+--- snakemake.orig/setup.cfg
++++ snakemake/setup.cfg
+@@ -33,7 +33,7 @@
+ packages = find:
+ python_requires = >=3.11
+ install_requires =
+-    appdirs
++    platformdirs
+     immutables
+     configargparse
+     connection_pool >=0.0.3
+--- snakemake.orig/snakemake/common/__init__.py
++++ snakemake/snakemake/common/__init__.py
+@@ -106,7 +106,7 @@
+ def get_appdirs():
+     global APPDIRS
+     if APPDIRS is None:
+-        from appdirs import AppDirs
++        from platformdirs import AppDirs
+ 
+         APPDIRS = AppDirs("snakemake", "snakemake")
+     return APPDIRS
+--- snakemake.orig/test-environment.yml
++++ snakemake/test-environment.yml
+@@ -22,7 +22,7 @@
+   - requests
+   - responses
+   - numpy
+-  - appdirs
++  - platformdirs
+   - pytools
+   - docutils
+   - pygments
+@@ -35,7 +35,7 @@
+   - psutil
+   - oauth2client
+   - configargparse
+-  - appdirs
++  - platformdirs
+   - jsonschema
+   - pandas
+   - gitpython
+--- snakemake.orig/apidocs/requirements.txt
++++ snakemake/apidocs/requirements.txt
+@@ -5,8 +5,8 @@
+ docutils
+ myst-parser
+ configargparse
+-appdirs
++platformdirs
+ lutra @ git+http://github.com/pradyunsg/lutra@8f61563
+ snakemake-interface-common
+ snakemake-interface-executor-plugins
+-snakemake-interface-storage-plugins
+\ No newline at end of file
++snakemake-interface-storage-plugins


=====================================
debian/patches/series
=====================================
@@ -1,3 +1,4 @@
+replace_appdirs
 local_javascript.patch
 0003-Compat-fix.patch
 0006-restore-bin.patch



View it on GitLab: https://salsa.debian.org/med-team/snakemake/-/commit/4cc4a838202a79d3cce37494878e5fa64b4e4c56

-- 
View it on GitLab: https://salsa.debian.org/med-team/snakemake/-/commit/4cc4a838202a79d3cce37494878e5fa64b4e4c56
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20260425/7d49d0ee/attachment-0001.htm>


More information about the debian-med-commit mailing list