Sync from SUSE:SLFO:Main python-pyfakefs revision 2f854a60abcbbec21b149a446f418cef

This commit is contained in:
Adrian Schröter 2024-12-13 12:04:24 +01:00
parent 12e4e8f035
commit fa149f4f74
4 changed files with 104 additions and 7 deletions

BIN
python-pyfakefs-5.2.4.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
python-pyfakefs-5.6.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,101 @@
-------------------------------------------------------------------
Fri Jul 26 11:50:28 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 5.6.0
* added preliminary support for Python 3.13 (tested with beta2) (see #1017)
* added `apply_umask` argument to `FakeFilesystem.create_dir`
to allow ignoring the umask (see #1038)
* use real open calls for remaining `pathlib` functions so that
it works nice with skippedmodules (see #1012)
- from version 5.5.0
* 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
(see #1006)
* fixed handling of Windows `pathlib` paths under POSIX and vice verse
(see #1006)
* correctly use real open calls in pathlib for skipped modules (see #1012)
-------------------------------------------------------------------
Sun Apr 21 08:45:26 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 5.4.1:
* fixed a regression from version 5.4.0 that incorrectly
handled files opened twice via file descriptor
- update to 5.4.0
* Improves permission handling.
* added support for `O_NOFOLLOW` and `O_DIRECTORY` flags in
`os.open`
* added support for fake `os.dup`, `os.dup2` and `os.lseek`
* 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 (see #932)
* fixed `EncodingWarning` for Python >= 3.11 (see #957)
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` (see #968)
* add missing `follow_symlink` argument to `os.link` (see #973)
* fixed handling of missing attribute in `os.getxattr` (see
* 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` (see #987)
-------------------------------------------------------------------
Sun Feb 4 12:23:11 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 5.3.5:
* Fixes a regression due to the changed behavior of the dynamic
patcher cleanup (see #939).
* 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`.
-------------------------------------------------------------------
Fri Jan 26 21:21:41 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 5.3.4:
* fixes handling of unhashable modules which cannot be cached
(see #923)
* reload modules loaded by the dynamic patcher instead of
removing them - sometimes they may
* not be reloaded automatically (see #932)
* add back argument `use_dynamic_patch` as a fallback for
similar problems
* fixed a problem with patching `_io` under Python 3.12 (see
#910)
* fixed a problem with accessing the temp path if emulating
Linux under Windows
* (see #912)
* fixed result of `os.walk` with a path-like top directory
* (see #915)
* properly fixed the problem that filesystem patching was still
active in the pytest
* logreport phase (see #904), the previous fix was incomplete
* changed behavior of `add_real_directory` to be able to map a
real directory
* Restores compatibility with PyTorch 2.0 and above, as well as
with other classes that have custom __setattr__ methods
(see #905).
* Adds official support for Python 3.12.
* removed a leftover debug print statement (see #869)
* make sure tests work without HOME environment set (see #870)
* automount drive or UNC path under Windows if needed for
`pathlib.Path.mkdir()`
* (see #890)
* adapt patching `io.open` and `io.open_code` to work with
Python 3.12
* (see #836 and #892)
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Sep 7 11:35:15 UTC 2023 - Dirk Müller <dmueller@suse.com> Thu Sep 7 11:35:15 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file # spec file for package python-pyfakefs
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,7 +16,6 @@
# #
%{?!python_module:%define python_module() python3-%{**}}
%global flavor @BUILD_FLAVOR@%{nil} %global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test" %if "%{flavor}" == "test"
%define psuffix -test %define psuffix -test
@ -27,7 +26,7 @@
%endif %endif
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-pyfakefs%{psuffix} Name: python-pyfakefs%{psuffix}
Version: 5.2.4 Version: 5.6.0
Release: 0 Release: 0
Summary: Fake file system that mocks the Python file system modules Summary: Fake file system that mocks the Python file system modules
License: Apache-2.0 License: Apache-2.0