./devel/py-fakefs, Fake file system that mocks the Python file system modules

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


Branch: CURRENT, Version: 5.7.2, Package name: py312-fakefs-5.7.2, Maintainer: bsiegert

pyfakefs implements a fake file system that mocks the Python file system
modules. Using pyfakefs, your tests operate on a fake file system in
memory without touching the real disk. The software under test requires
no modification to work with pyfakefs.


Required to run:
[devel/py-setuptools] [lang/python37]

Required to build:
[pkgtools/cwrappers]

Master sites:

Filesize: 207.423 KB

Version history: (Expand)


CVS history: (Expand)


   2024-12-02 10:09:30 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-fakefs: updated to 5.7.2

5.7.2

Fixes some problems with patching.

Fixes
* added some support for loading fake modules in `AUTO` patch mode
 using `importlib.import_module`
* added some support to avoid patching debugger related modules

Performance
* avoid reloading `tempfile` in Posix systems

Infrastructure
* use trusted publisher for release (see https://docs.pypi.org/trusted-publishers/)
   2024-11-11 08:29:31 by Thomas Klausner | Files touched by this commit (862)
Log message:
py-*: remove unused tool dependency

py-setuptools includes the py-wheel functionality nowadays
   2024-10-14 07:17:16 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-fakefs: updated to 5.7.1

Version 5.7.1

Fixes a regression in version 5.7.0 that broke patching fcntl.

Fixes
* fixes a regression that caused unfaked `fcntl` calls to fail
   2024-10-11 14:55:10 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-fakefs: updated to 5.7.0

Version 5.7.0

Adds official Python 3.13 support, improves OS emulation behavior.

Changes
* officially support Python 3.13

Enhancements
* the `additional_skip_names` parameter now works with more modules
* added support for `os.fchmod`, allow file descriptor argument for `os.chmod` \ 
only for POSIX
 for Python < 3.13
* avoid reloading `glob` in Python 3.13 (did affect test performance)

Fixes
* removing files while iterating over `scandir` results is now possible
* fake `pathlib.PosixPath` and `pathlib.WindowsPath` now behave more like in the \ 
real filesystem
* `PurePosixPath` reported Windows reserved names as reserved in Python >= 3.12
* `PurePosixPath.joinpath()` incorrectly handled paths with drives under Windows \ 
in Python >= 3.12
   2024-07-23 07:29:10 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-fakefs: updated to 5.6.0

Version 5.6.0

Adds preliminary Python 3.13 support.

Enhancements
* added preliminary support for Python 3.13 (tested with beta2)
* added `apply_umask` argument to `FakeFilesystem.create_dir` to allow ignoring \ 
the umask

Fixes
* use real open calls for remaining `pathlib` functions so that it works nice \ 
with skippedmodules

Infrastructure
* Add pyupgrade as a pre-commit hook.
   2024-05-27 07:07:58 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-fakefs: updated to 5.5.0

Version 5.5.0
Deprecates the usage of `pathlib2` and `scandir`.

Changes
* The usage of the `pathlib2` and `scandir` modules in pyfakefs is now deprecated.
  They will now cause deprecation warnings if still used. Support for patching
  these modules will be removed in pyfakefs 6.0.
* `PureWindowsPath` and `PurePosixPath` now use filesystem-independent path \ 
separators,
  and their path-parsing behaviors are now consistent regardless of runtime platform
  and/or faked filesystem customization.

Fixes
* fixed handling of Windows `pathlib` paths under POSIX and vice verse
* correctly use real open calls in pathlib for skipped modules
   2024-04-16 17:33:05 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-fakefs: updated to 5.4.1

Version 5.4.1
Fixes a regression.

Fixes
* fixed a regression from version 5.4.0 that incorrectly handled files opened \ 
twice via file descriptor

Version 5.4.0
Improves permission handling.

Changes
* the handling of file permissions under Posix should now mostly match the behavior
 of the real filesystem, which may change the behavior of some tests
* removed the argument `module_cleanup_mode`, that was introduced as a temporary \ 
workaround
 in the previous version - related problems shall be handled using a cleanup handler

Enhancements
* added support for `O_NOFOLLOW` and `O_DIRECTORY` flags in `os.open`
* added support for fake `os.dup`, `os.dup2` and `os.lseek`

Fixes
* fixed a specific problem on reloading a pandas-related module
* added possibility for unload hooks for specific modules
* use this also to reload django views
* fixed `EncodingWarning` for Python >= 3.11
* consider directory ownership while adding or removing directory entries
* fixed handling of directory enumeration and search permissions under Posix systems
* fixed creation of the temp directory in the fake file system after a \ 
filesystem reset
* fixed handling of `dirfd` in `os.symlink`
* add missing `follow_symlink` argument to `os.link`
* fixed handling of missing attribute in `os.getxattr`
* fixed permission problem with `shutil.rmtree` if emulating Windows under POSIX
* fixed handling of errors on opening files via file descriptor
* fixed handling of `umask` - it is now applied by default
* fixed behavior of `os.makedirs`

Infrastructure
* replace `undefined` by own minimal implementation to avoid importing it
   2024-01-31 00:42:13 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-fakefs: updated to 5.3.5

Version 5.3.5

Fixes a regression.

Fixes
* Fixes a regression due to the changed behavior of the dynamic patcher cleanup
  The change is now by default only made if the `django` module is loaded, and \ 
the behavior can
  be changed using the new argument `module_cleanup_mode`.

Packaging
* include `tox.ini` and a few more files into the source distribution