Package: python-fs
Version: 2.4.16-5
Severity: normal
Tags: patch  pending

Dear maintainer,

I've prepared an NMU for python-fs (versioned as 2.4.16-5.1) and
uploaded it to DELAYED/10. Please feel free to tell me if I
should delay it longer.

Regards.

diff -Nru python-fs-2.4.16/debian/changelog python-fs-2.4.16/debian/changelog
--- python-fs-2.4.16/debian/changelog	2024-12-01 17:40:57.000000000 +0100
+++ python-fs-2.4.16/debian/changelog	2024-12-15 23:47:47.000000000 +0100
@@ -1,3 +1,11 @@
+python-fs (2.4.16-5.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Replace python3-appdirs with python3-platformdirs.
+    (Closes: #1067994, #1067051)
+
+ -- Chris Hofstaedtler <z...@debian.org>  Sun, 15 Dec 2024 23:47:47 +0100
+
 python-fs (2.4.16-5) unstable; urgency=medium
 
   * Team upload.
diff -Nru python-fs-2.4.16/debian/control python-fs-2.4.16/debian/control
--- python-fs-2.4.16/debian/control	2024-12-01 17:25:48.000000000 +0100
+++ python-fs-2.4.16/debian/control	2024-12-15 23:46:39.000000000 +0100
@@ -10,10 +10,10 @@
                python3-setuptools,
                python3-tz,
                python3-six,
-               python3-appdirs <!nocheck>,
                python3-coverage <!nocheck>,
                python3-pytest <!nocheck>,
                python3-parameterized <!nocheck>,
+               python3-platformdirs <!nocheck>,
                python3-sphinx,
 Rules-Requires-Root: no
 Standards-Version: 4.6.1
diff -Nru python-fs-2.4.16/debian/patches/platformdirs.patch python-fs-2.4.16/debian/patches/platformdirs.patch
--- python-fs-2.4.16/debian/patches/platformdirs.patch	1970-01-01 01:00:00.000000000 +0100
+++ python-fs-2.4.16/debian/patches/platformdirs.patch	2024-12-15 23:47:47.000000000 +0100
@@ -0,0 +1,84 @@
+Index: python-fs-2.4.16/fs/appfs.py
+===================================================================
+--- python-fs-2.4.16.orig/fs/appfs.py
++++ python-fs-2.4.16/fs/appfs.py
+@@ -12,7 +12,7 @@ subclasses of `~fs.osfs.OSFS`.
+ import typing
+ 
+ import abc
+-from appdirs import AppDirs
++from platformdirs import PlatformDirs
+ 
+ from ._repr import make_repr
+ from .osfs import OSFS
+@@ -76,7 +76,7 @@ class _AppFS(OSFS,metaclass=_CopyInitMet
+                 will be created if it does not exist.
+ 
+         """
+-        self.app_dirs = AppDirs(appname, author, version, roaming)
++        self.app_dirs = PlatformDirs(appname, author, version, roaming)
+         self._create = create
+         super(_AppFS, self).__init__(
+             getattr(self.app_dirs, self.app_dir), create=create
+Index: python-fs-2.4.16/tests/test_appfs.py
+===================================================================
+--- python-fs-2.4.16.orig/tests/test_appfs.py
++++ python-fs-2.4.16/tests/test_appfs.py
+@@ -29,10 +29,9 @@ class _TestAppFS(fs.test.FSTestCases):
+ 
+     def make_fs(self):
+         with mock.patch(
+-            "appdirs.{}".format(self.AppFS.app_dir),
+-            autospec=True,
+-            spec_set=True,
+-            return_value=tempfile.mkdtemp(dir=self.tmpdir),
++            f"platformdirs.PlatformDirs.{self.AppFS.app_dir}",
++            new_callable=mock.PropertyMock,
++            return_value=tempfile.mkdtemp(),
+         ):
+             return self.AppFS("fstest", "willmcgugan", "1.0")
+ 
+Index: python-fs-2.4.16/tests/test_opener.py
+===================================================================
+--- python-fs-2.4.16.orig/tests/test_opener.py
++++ python-fs-2.4.16/tests/test_opener.py
+@@ -265,7 +265,7 @@ class TestOpeners(unittest.TestCase):
+         mem_fs_2 = opener.open_fs(mem_fs)
+         self.assertEqual(mem_fs, mem_fs_2)
+ 
+-    @mock.patch("appdirs.{}".format(UserDataFS.app_dir), autospec=True, spec_set=True)
++    @mock.patch("platformdirs.{}".format(UserDataFS.app_dir), autospec=True, spec_set=True)
+     def test_open_userdata(self, app_dir):
+         app_dir.return_value = self.tmpdir
+ 
+@@ -277,7 +277,7 @@ class TestOpeners(unittest.TestCase):
+         self.assertEqual(app_fs.app_dirs.appauthor, "willmcgugan")
+         self.assertEqual(app_fs.app_dirs.version, "1.0")
+ 
+-    @mock.patch("appdirs.{}".format(UserDataFS.app_dir), autospec=True, spec_set=True)
++    @mock.patch("platformdirs.{}".format(UserDataFS.app_dir), autospec=True, spec_set=True)
+     def test_open_userdata_no_version(self, app_dir):
+         app_dir.return_value = self.tmpdir
+ 
+@@ -286,7 +286,7 @@ class TestOpeners(unittest.TestCase):
+         self.assertEqual(app_fs.app_dirs.appauthor, "willmcgugan")
+         self.assertEqual(app_fs.app_dirs.version, None)
+ 
+-    @mock.patch("appdirs.{}".format(UserDataFS.app_dir), autospec=True, spec_set=True)
++    @mock.patch("platformdirs.{}".format(UserDataFS.app_dir), autospec=True, spec_set=True)
+     def test_user_data_opener(self, app_dir):
+         app_dir.return_value = self.tmpdir
+ 
+Index: python-fs-2.4.16/setup.cfg
+===================================================================
+--- python-fs-2.4.16.orig/setup.cfg
++++ python-fs-2.4.16/setup.cfg
+@@ -42,7 +42,7 @@ packages = find:
+ setup_requires =
+     setuptools >=38.3.0
+ install_requires =
+-    appdirs~=1.4.3
++    platformdirs~=4.3.6
+     setuptools
+     enum34 ~=1.1.6      ;  python_version < '3.4'
+     typing ~=3.6        ;  python_version < '3.6'
diff -Nru python-fs-2.4.16/debian/patches/series python-fs-2.4.16/debian/patches/series
--- python-fs-2.4.16/debian/patches/series	2024-12-01 17:25:41.000000000 +0100
+++ python-fs-2.4.16/debian/patches/series	2024-12-15 23:46:08.000000000 +0100
@@ -1,2 +1,3 @@
 f6f260f97df29500a531baf1b370c3e4e4f3dc76.patch
 remove_runtime_six.patch
+platformdirs.patch

Reply via email to