Compare commits
1 Commits
Author | SHA256 | Date | |
---|---|---|---|
469d136701 |
BIN
python-pyfakefs-5.2.4.tar.gz
(Stored with Git LFS)
BIN
python-pyfakefs-5.2.4.tar.gz
(Stored with Git LFS)
Binary file not shown.
BIN
python-pyfakefs-5.8.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
python-pyfakefs-5.8.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@@ -1,3 +1,151 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 11 05:49:28 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to pyproject macros.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 28 16:33:01 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 5.8.0:
|
||||||
|
* Adds preliminary support for Python 3.14.
|
||||||
|
* added some preliminary support for Python 3.14
|
||||||
|
* change behavior of `FakeFilesystem.get_object()` to ignore
|
||||||
|
permissions as it has been
|
||||||
|
* before version 5.4.0 (see #1122)
|
||||||
|
* fixed a problem with flushing if writing over the buffer end
|
||||||
|
* (see #1120)
|
||||||
|
* fixed a regression that could break tests under Posix in
|
||||||
|
Python 3.12
|
||||||
|
* (see #1126)
|
||||||
|
* fixed behavior for `os.access` for symlinks under Windows
|
||||||
|
* fixed permission problem on querying file properties (see
|
||||||
|
#1122)
|
||||||
|
* fixed patching in pytest setup phase for module and session-
|
||||||
|
scoped fs fixtures
|
||||||
|
* fixed a problem with module and session scoped fixtures in
|
||||||
|
Python 3.13
|
||||||
|
* fixed handling of `cwd` if set to a `pathlib.Path` (see
|
||||||
|
#1108)
|
||||||
|
* fixed documentation for cleanup handlers, added convenience
|
||||||
|
handler `reload_cleanup_handler`
|
||||||
|
* Fixes some problems with patching.
|
||||||
|
* added some support for loading fake modules in `AUTO` patch
|
||||||
|
mode using `importlib.import_module` (see #1079)
|
||||||
|
* added some support to avoid patching debugger related modules
|
||||||
|
* avoid reloading `tempfile` in Posix systems
|
||||||
|
* Adds official Python 3.13 support, improves OS emulation
|
||||||
|
behavior.
|
||||||
|
* avoid reloading `glob` in Python 3.13
|
||||||
|
* removing files while iterating over `scandir` results is now
|
||||||
|
possible (see #1051)
|
||||||
|
* fake `pathlib.PosixPath` and `pathlib.WindowsPath` now behave
|
||||||
|
more like in the real filesystem
|
||||||
|
* (see #1053)
|
||||||
|
* `PurePosixPath` reported Windows reserved names as reserved
|
||||||
|
in Python >= 3.12
|
||||||
|
* (see #1067)
|
||||||
|
* `PurePosixPath.joinpath()` incorrectly handled paths with
|
||||||
|
drives under Windows in Python >= 3.12
|
||||||
|
* (see #1070)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file
|
# spec file for package python-pyfakefs
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2025 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,13 +26,15 @@
|
|||||||
%endif
|
%endif
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-pyfakefs%{psuffix}
|
Name: python-pyfakefs%{psuffix}
|
||||||
Version: 5.2.4
|
Version: 5.8.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
|
||||||
URL: https://github.com/jmcgeheeiv/pyfakefs
|
URL: https://github.com/jmcgeheeiv/pyfakefs
|
||||||
Source: https://github.com/jmcgeheeiv/pyfakefs/archive/v%{version}.tar.gz#/python-pyfakefs-%{version}.tar.gz
|
Source: https://github.com/jmcgeheeiv/pyfakefs/archive/v%{version}.tar.gz#/python-pyfakefs-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python
|
Requires: python
|
||||||
@@ -54,11 +55,11 @@ no modification to work with pyfakefs.
|
|||||||
%setup -q -n pyfakefs-%{version}
|
%setup -q -n pyfakefs-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if !%{with test}
|
%if !%{with test}
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand rm -r %{buildroot}%{$python_sitelib}/pyfakefs/tests/
|
%python_expand rm -r %{buildroot}%{$python_sitelib}/pyfakefs/tests/
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
%endif
|
%endif
|
||||||
@@ -74,7 +75,7 @@ export LANG=C.UTF-8
|
|||||||
%doc CHANGES.md README.md
|
%doc CHANGES.md README.md
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%{python_sitelib}/pyfakefs
|
%{python_sitelib}/pyfakefs
|
||||||
%{python_sitelib}/pyfakefs-%{version}*-info
|
%{python_sitelib}/pyfakefs-%{version}.dist-info
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user