./filesystems/py-fs, Pythons filesystem abstraction layer

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 2.4.13, Package name: py39-fs-2.4.13, Maintainer: pkgsrc-users

PyFilesystem is a Python module that provides a common interface to any
filesystem.

Think of PyFilesystem FS objects as the next logical step to Python's file
objects. In the same way that file objects abstract a single file, FS objects
abstract an entire filesystem.


Required to run:
[devel/py-setuptools] [time/py-pytz] [lang/py-six] [devel/py-appdirs] [lang/python37]

Required to build:
[pkgtools/cwrappers]

Master sites:

Filesize: 175.443 KB

Version history: (Expand)


CVS history: (Expand)


   2021-10-26 12:25:31 by Nia Alarie | Files touched by this commit (47)
Log message:
filesystems: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes
   2021-10-07 15:51:05 by Nia Alarie | Files touched by this commit (47)
Log message:
filesystems: Remove SHA1 hashes for distfiles
   2021-04-16 15:17:39 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-fs: updated to 2.4.13

2.4.13

Added

- Added FTP over TLS (FTPS) support to FTPFS.
- `PathError` now supports wrapping an exception using the `exc` argument.
- Better documentation of the `writable` parameter of `fs.open_fs`, and
  hint about using `fs.wrap.read_only` when a read-only filesystem is
  required.

Changed

- Make `FS.upload` explicit about the expected error when the parent directory \ 
of the destination does not exist.
- Migrate continuous integration from Travis-CI to GitHub Actions and introduce \ 
several linters
  again in the build steps.
- Stop requiring `pytest` to run tests, allowing any test runner supporting \ 
`unittest`-style
  test suites.
- `FSTestCases` now builds the large data required for `upload` and `download` \ 
tests only
  once in order to reduce the total testing time.
- `MemoryFS.move` and `MemoryFS.movedir` will now avoid copying data.
- `FS.removetree("/")` behaviour has been standardized in all \ 
filesystems, and
  is expected to clear the contents of the root folder without deleting it.
- `FS.getbasic` is now deprecated, as it is redundant with `FS.getinfo`,
  and `FS.getinfo` is now explicitly expected to return the *basic* info
  namespace unconditionally.

Fixed

- Make `FTPFile`, `MemoryFile` and `RawWrapper` accept \ 
[`array.array`](https://docs.python.org/3/library/array.html)
  arguments for the `write` and `writelines` methods, as expected by their base \ 
class [`io.RawIOBase`]
- Various documentation issues, including `MemoryFS` docstring not rendering \ 
properly.
- Avoid creating a new connection on every call of `FTPFS.upload`.
- `WrapReadOnly.removetree` not raising a `ResourceReadOnly` when called.
- `WrapCachedDir.isdir` and `WrapCachedDir.isfile` raising a `ResourceNotFound` \ 
error on non-existing path.
- `FTPFS` not listing certain entries with sticky/SUID/SGID permissions set by \ 
Linux server.
- `scandir` iterator not being closed explicitly in `OSFS.scandir`, occasionally \ 
causing a `ResourceWarning`
  to be thrown.
- Incomplete type annotations for the `temp_fs` parameter of `WriteTarFS` and \ 
`WriteZipFS`.
   2021-01-24 21:27:06 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-fs: updated to 2.4.12

2.4.12

Added

Missing mode attribute to _MemoryFile objects returned by MemoryFS.openbin.
Missing readinto method for MemoryFS and FTPFS file objects.
Added compatibility if a Windows FTP server returns file information to the LIST \ 
command with 24-hour times.

Changed

Start testing on PyPy. Due to 342 we have to treat PyPy builds specially and \ 
allow them to fail, but at least we'll be able to see if we break something \ 
aside from known issues with FTP tests.
Include docs in source distributions as well as the whole tests folder, ensuring \ 
conftest.py is present, fixes 364.
Stop patching copy with Python 3.8+ because it already uses sendfile.

Fixed

Fixed crash when CPython's -OO flag is used
Fixed error when parsing timestamps from a FTP directory served from a WindowsNT \ 
FTP Server, fixes 395.
Fixed documentation of Mode.to_platform_bin.
Fixed the code example in the "Testing Filesystems" section of the \ 
"Implementing Filesystems" guide.
Fixed FTPFS.openbin not implicitly opening files in binary mode like expected \ 
from openbin.
   2020-09-01 01:07:07 by Thomas Klausner | Files touched by this commit (62)
Log message:
*: switch to versioned_dependencies.mk for py-setuptools
   2020-05-16 19:42:42 by Adam Ciarcinski | Files touched by this commit (5)
Log message:
pytest from versioned depends
   2019-12-13 12:22:51 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-fs: updated to 2.4.11

[2.4.11]:
Added
Added geturl for TarFS and ZipFS for 'fs' purpose. NoURL for 'download' purpose.
Added helpful root path in CreateFailed exception
Added Python 3.8 support

Fixed
Fixed tests leaving tmp files
Fixed typing issues
Fixed link namespace returning bytes
Fixed broken FSURL in windows
Fixed hidden exception at fs.close() when opening an absent zip/tar file URL
Fixed abstract class import from collections which would break on Python 3.8
Fixed incorrect imports of mock on Python 3
Removed some unused imports and unused requirements.txt file
Added mypy checks to Travis.
Fixed missing errno.ENOTSUP on PyPy.
Fixed bug in a decorator that would trigger an AttributeError when a class was \ 
created that implemented a deprecated method and had no docstring of its own.

Changed
Entire test suite has been migrated to pytest.
Style checking is now enforced using flake8; this involved some code cleanup \ 
such as removing unused imports.

[2.4.10]:
Fixed
Fixed broken WrapFS.movedir

[2.4.9]:
Fixed
Restored fs.path import
Fixed potential race condition in makedirs.
Added missing methods to WrapFS.

Changed
MemFS now immediately releases all memory it holds when close() is called, \ 
rather than when it gets garbage collected.
FTPFS now translates EOFError into RemoteConnectionError.
Added automatic close for filesystems that go out of scope.

[2.4.8]:
Changed
geturl will return URL with user/password if needed @zmej-serow

[2.4.7]:
Added
Flag to OSFS to disable env var expansion

[2.4.6]:
Added
Implemented geturl in FTPFS @zmej-serow

Fixed
Fixed FTP test suite when time is not UTC-0 @mrg0029
Fixed issues with paths in tarfs \ 
https://github.com/PyFilesystem/pyfiles … issues/284

Changed
Dropped Python3.3 support

[2.4.5]:
Fixed
Restored deprecated setfile method with deprecation warning to change to writefile
Fixed exception when a tarfile contains a path called '.' \ 
https://github.com/PyFilesystem/pyfiles … issues/275
Made TarFS directory loading lazy

Changed
Detect case insensitivity using by writing temp file

[2.4.4]:
Fixed
OSFS fail in nfs mounts

[2.4.3]:
Fixed
Fixed broken "case_insensitive" check
Fixed Windows test fails

[2.4.2]:
Fixed
Fixed exception when Python runs with -OO

[2.4.1]:
Fixed
Fixed hash method missing from WrapFS

[2.4.0]:
Added
Added exclude and filter_dirs arguments to walk

Micro-optimizations to walk
[2.3.1]:
Fixed
Add encoding check in OSFS.validatepath

[2.3.0]:
Fixed
IllegalBackReference had mangled error message

Added
FS.hash method
   2019-01-16 09:34:53 by Adam Ciarcinski | Files touched by this commit (4)
Log message:
py-fs: added version 2.2.1

PyFilesystem is a Python module that provides a common interface to any
filesystem.

Think of PyFilesystem FS objects as the next logical step to Python's file
objects. In the same way that file objects abstract a single file, FS objects
abstract an entire filesystem.