./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.1, Package name: py312-fakefs-5.7.1, 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: 206.214 KB

Version history: (Expand)


CVS history: (Expand)


   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
   2024-01-19 23:14:07 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-fakefs: updated to 5.3.4

Version 5.3.4

Bugfix release.

Fixes
* fixes handling of unhashable modules which cannot be cached
* reload modules loaded by the dynamic patcher instead of removing them - \ 
sometimes they may
  not be reloaded automatically
* add back argument `use_dynamic_patch` as a fallback for similar problems
   2023-12-02 09:20:04 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-fakefs: updated to 5.3.2

Version 5.3.2
Bugfix release.

Fixes
* fixed a problem with patching `_io` under Python 3.12
* fixed a problem with accessing the temp path if emulating Linux under Windows
* fixed result of `os.walk` with a path-like top directory
* properly fixed the problem that filesystem patching was still active in the pytest
  logreport phase, the previous fix was incomplete

Version 5.3.1
Mostly a bugfix release.

Changes
* changed behavior of `add_real_directory` to be able to map a real directory
  to an existing directory in the fake filesystem

Fixes
* fixes the problem that filesystem patching was still active in the pytest
  logreport phase
* Restores compatibility with PyTorch 2.0 and above, as well as with other
  classes that have custom __setattr__ methods

Version 5.3.0
Adds official support for Python 3.12.

Changes
* add official support for Python 3.12

Fixes
* removed a leftover debug print statement
* make sure tests work without HOME environment set
* automount drive or UNC path under Windows if needed for `pathlib.Path.mkdir()`
* adapt patching `io.open` and `io.open_code` to work with Python 3.12
   2022-05-12 09:40:38 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-fakefs: updated to 4.5.6

Version 4.5.6

Changes
* minimum supported pytest version is now 3.0 (older versions do not work
  properly with current Python versions)

Fixes
* only skip `_pytest.pathlib` in pytest versions where it is actually present

Infrastructure
* add tests with different pytest versions, starting with 3.0

Version 4.5.5

Fixes
* correctly handle file system space for files opened in write mode
* correctly handle reading/writing pipes via file
* disallow `encoding` argument on binary `open()`
* fixed compatibility issue with pytest 7.0.0
   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
   2021-10-26 12:20:11 by Nia Alarie | Files touched by this commit (3016)
Log message:
archivers: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Could not be committed due to merge conflict:
devel/py-traitlets/distinfo

The following distfiles were unfetchable (note: some may be only fetched
conditionally):

./devel/pvs/distinfo pvs-3.2-solaris.tgz
./devel/eclipse/distinfo eclipse-sourceBuild-srcIncluded-3.0.1.zip
   2021-10-07 15:44:44 by Nia Alarie | Files touched by this commit (3017)
Log message:
devel: Remove SHA1 hashes for distfiles