Package: python-fs / 2.4.16-9

Metadata

Package Version Patches format
python-fs 2.4.16-9 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
f6f260f97df29500a531baf1b370c3e4e4f3dc76.patch | (download)

fs/test.py | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 [patch] replace testcase method aliases removed in python 3.12

Bug: https://github.com/PyFilesystem/pyfilesystem2/issues/568
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1058294
remove_runtime_six.patch | (download)

fs/_bulk.py | 2 1 + 1 - 0 !
fs/_fscompat.py | 5 2 + 3 - 0 !
fs/_typing.py | 17 1 + 16 - 0 !
fs/_url_tools.py | 10 3 + 7 - 0 !
fs/appfs.py | 4 1 + 3 - 0 !
fs/base.py | 14 5 + 9 - 0 !
fs/compress.py | 9 1 + 8 - 0 !
fs/error_tools.py | 3 1 + 2 - 0 !
fs/errors.py | 7 2 + 5 - 0 !
fs/ftpfs.py | 19 4 + 15 - 0 !
fs/info.py | 2 0 + 2 - 0 !
fs/memoryfs.py | 3 0 + 3 - 0 !
fs/mode.py | 4 1 + 3 - 0 !
fs/mountfs.py | 3 1 + 2 - 0 !
fs/multifs.py | 3 1 + 2 - 0 !
fs/opener/base.py | 4 1 + 3 - 0 !
fs/opener/parse.py | 5 2 + 3 - 0 !
fs/osfs.py | 8 1 + 7 - 0 !
fs/permissions.py | 2 0 + 2 - 0 !
fs/subfs.py | 2 0 + 2 - 0 !
fs/tarfs.py | 40 7 + 33 - 0 !
fs/tempfs.py | 2 0 + 2 - 0 !
fs/wrapfs.py | 2 0 + 2 - 0 !
fs/zipfs.py | 9 1 + 8 - 0 !
setup.cfg | 1 0 + 1 - 0 !
25 files changed, 36 insertions(+), 144 deletions(-)

 remove runtime dependency on python3-six

remove six from fs test.py.patch | (download)

fs/test.py | 57 26 + 31 - 0 !
1 file changed, 26 insertions(+), 31 deletions(-)

 remove six from fs/test.py

Fix packages that build depend on python3-fs and import fs.test, eg.
this is what pyfatfs does:

```
from fs.test import FSTestCases
```

platformdirs.patch | (download)

fs/appfs.py | 4 2 + 2 - 0 !
setup.cfg | 2 1 + 1 - 0 !
tests/test_appfs.py | 7 3 + 4 - 0 !
tests/test_opener.py | 6 3 + 3 - 0 !
4 files changed, 9 insertions(+), 10 deletions(-)

 platformdirs

===================================================================

tests remove test that doesn t seem to make a lot of sens.patch | (download)

tests/test_opener.py | 6 0 + 6 - 0 !
1 file changed, 6 deletions(-)

 tests: remove test that doesn't seem to make a lot of sense

It claims to be testing that a `__repr__()` "works", but this doesn't
make any sense as everything eventually gets one from `object()`. It
also makes use of the deprecated pkg_resources interface, so simply
ditch this code entirely.

migrate entrypoints handling to standard library importli.patch | (download)

fs/opener/registry.py | 38 29 + 9 - 0 !
tests/test_opener.py | 74 58 + 16 - 0 !
2 files changed, 87 insertions(+), 25 deletions(-)

 migrate entrypoints handling to standard library importlib.metadata

drop the final remaining use of the deprecated pkg_resour.patch | (download)

fs/__init__.py | 2 1 + 1 - 0 !
fs/opener/__init__.py | 2 1 + 1 - 0 !
setup.cfg | 2 1 + 1 - 0 !
3 files changed, 3 insertions(+), 3 deletions(-)

 drop the final remaining use of the deprecated pkg_resources module

Declaring a namespace package has gone through a few revisions.
pkg_resources has a version that is heavily deprecated. pkgutil provides
a python2/python3 compatible version that is also compatible with native
python3 namespaces.

https://packaging.python.org/en/latest/guides/packaging-namespace-packages/

pkg_resources is very very deprecated and importing or using it results
in deprecation warnings. It's time to move off of it entirely.

Fixes: https://github.com/PyFilesystem/pyfilesystem2/issues/577