python-pyfakefs/python-pyfakefs.changes
Steve Kowalik e804cd0f77 - Update to 4.5.3:
* New Features
    + added support for some Python 3.10 features:
    + new method pathlib.Path.hardlink_to
    + new newline argument in pathlib.Path.write_text
    + new follow_symlinks argument in pathlib.Path.stat and pathlib.Path.chmod
    + new 'strict' argument in os.path.realpath
    + added support for pathlib.Path.link_to (new in Python 3.8) (see #580)
    + added support for pathlib.Path.readlink (new in Python 3.9) (see #584)
    + added FakeFilesystem.create_link convenience method which creates intermittent directories (see #580)
  * Changes
    + Python 3.5 has reached its end of life in September 2020 and is no longer supported
    + pathlib2 is still supported, but considered to have the same functionality as pathlib and is no longer tested separately; the previous behavior broke newer pathlib features if pathlib2 was installed (see #592)
    + Added caching of patched modules to avoid lookup overhead
    + Added use_cache option and clear_cache method to be able to deal with unwanted side effects of the newly introduced caching
    + The patchfs decorator now expects a positional argument instead of the keyword arguments fs. This avoids confusion with the pytest fs fixture and conforms to the behavior of mock.patch. You may have to adapt the argument order if you use the patchfs and mock.patch decorators together (see #566)
    + Default arguments that are file system functions are now not patched by default to avoid a large performance impact. An additional parameter patch_default_args has been added that switches this behavior on (see #567).
  * Fixes
    + added handling of path-like where missing
    + improved handling of str/bytes paths
    + suppress all warnings while inspecting loaded modules (see #614)
    + do not import pandas and related modules if it is not patched (see #627)
    + handle pathlib.Path.owner() and pathlib.Path.group by returning the current user/group name (see #629)
    + fixed handling of use_known_patches=False (could cause an exception)
    + correctly handle byte paths in os.path.exists (see #595)
    + Update fake_pathlib to support changes coming in Python 3.10 (see
    + correctly handle UNC paths in os.path.split and in directory path evaluation (see #606)
    + fixed handling of pipe descriptors in the fake filesystem (see #581)
    + added non-functional argument effective_ids to os.access (see #585)
    + correctly handle os.file for unreadable files (see #588)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyfakefs?expand=0&rev=31
2021-12-14 04:42:16 +00:00

178 lines
8.6 KiB
Plaintext

-------------------------------------------------------------------
Tue Dec 14 04:24:56 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 4.5.3:
* New Features
+ added support for some Python 3.10 features:
+ new method pathlib.Path.hardlink_to
+ new newline argument in pathlib.Path.write_text
+ new follow_symlinks argument in pathlib.Path.stat and pathlib.Path.chmod
+ new 'strict' argument in os.path.realpath
+ added support for pathlib.Path.link_to (new in Python 3.8) (see #580)
+ added support for pathlib.Path.readlink (new in Python 3.9) (see #584)
+ added FakeFilesystem.create_link convenience method which creates intermittent directories (see #580)
* Changes
+ Python 3.5 has reached its end of life in September 2020 and is no longer supported
+ pathlib2 is still supported, but considered to have the same functionality as pathlib and is no longer tested separately; the previous behavior broke newer pathlib features if pathlib2 was installed (see #592)
+ Added caching of patched modules to avoid lookup overhead
+ Added use_cache option and clear_cache method to be able to deal with unwanted side effects of the newly introduced caching
+ The patchfs decorator now expects a positional argument instead of the keyword arguments fs. This avoids confusion with the pytest fs fixture and conforms to the behavior of mock.patch. You may have to adapt the argument order if you use the patchfs and mock.patch decorators together (see #566)
+ Default arguments that are file system functions are now not patched by default to avoid a large performance impact. An additional parameter patch_default_args has been added that switches this behavior on (see #567).
* Fixes
+ added handling of path-like where missing
+ improved handling of str/bytes paths
+ suppress all warnings while inspecting loaded modules (see #614)
+ do not import pandas and related modules if it is not patched (see #627)
+ handle pathlib.Path.owner() and pathlib.Path.group by returning the current user/group name (see #629)
+ fixed handling of use_known_patches=False (could cause an exception)
+ correctly handle byte paths in os.path.exists (see #595)
+ Update fake_pathlib to support changes coming in Python 3.10 (see
+ correctly handle UNC paths in os.path.split and in directory path evaluation (see #606)
+ fixed handling of pipe descriptors in the fake filesystem (see #581)
+ added non-functional argument effective_ids to os.access (see #585)
+ correctly handle os.file for unreadable files (see #588)
+ Reverted one Windows-specific optimization that can break tests under some conditions (see #573)
+ Setting os did not reset os.sep and related variables, fixed null device name, added os.pathsep and missing os.path variables (see #572)
+ open calls had not been patched for modules with a name ending with "io" (see #569)
+ remove dependency of pyfakefs on pytest (regression, see #565)
-------------------------------------------------------------------
Sat Mar 14 07:22:28 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 4.0.2:
* py3 only variant
-------------------------------------------------------------------
Sun Mar 8 03:36:36 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Swith to multibuild in order to avoid full python buildcycle
-------------------------------------------------------------------
Sat Mar 7 13:52:47 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 3.7.2:
* Various fixes for python 3.8
-------------------------------------------------------------------
Wed Dec 11 08:44:45 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Pull in the full python
-------------------------------------------------------------------
Mon Oct 7 18:01:45 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update 3.6.1:
* fix borked tests from 3.6
-------------------------------------------------------------------
Mon Oct 7 08:49:15 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 3.6:
* fixed incorrect argument names for some os functions
* fake DirEntry now implements os.PathLike in Python >= 3.6 (see #483)
* fixed incorrect argument name for os.makedirs (see #481)
* avoid pytest warning under Python 2.7 (see #466)
* add next to FakeFileWrapper (see #485)
-------------------------------------------------------------------
Fri Mar 22 14:28:34 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 3.5.8:
* Mainly fixes a regression bug under Python 2.7.
-------------------------------------------------------------------
Tue Feb 12 15:37:32 UTC 2019 - Karol Babioch <kbabioch@suse.de>
- Update to version 3.5.7
* Fixes a regression introduced in the last version
-------------------------------------------------------------------
Mon Jan 14 08:32:56 UTC 2019 - Karol Babioch <kbabioch@suse.de>
- Removed unit tests from package
-------------------------------------------------------------------
Sun Jan 13 17:26:44 UTC 2019 - Karol Babioch <kbabioch@suse.de>
- Update to version 3.5.6
* import external pathlib2 and scandir packages first if present
-------------------------------------------------------------------
Thu Dec 20 21:11:36 UTC 2018 - Karol Babioch <kbabioch@suse.de>
- Update to version 3.5.5
* Removed permission warnings (shebang line vs. executable bit)
-------------------------------------------------------------------
Thu Dec 20 07:33:19 UTC 2018 - Karol Babioch <kbabioch@suse.de>
- Update to version 3.5.4
* added context manager class Pause for pause/resume
* fixed permission handling for root user
* avoid AttributeError triggered by modules without __module__ attribute
-------------------------------------------------------------------
Thu Nov 22 19:40:46 UTC 2018 - Karol Babioch <kbabioch@suse.de>
- Update to version 3.5.3
* automatically patch file system methods imported as another name like from
os.path import exists as my_exists, including builtin open and io.open
* make tests for access time less strict to account for file systems that do
not change it immediately
-------------------------------------------------------------------
Mon Nov 12 09:07:49 UTC 2018 - Karol Babioch <kbabioch@suse.com>
- Update to version 3.5.2
* This is mostly a bug-fix release.
* added support for pause/resume of patching the file system modules
* allow to set current group ID, set current user ID and group ID as `st_uid`
and `st_gid` in new files
* fixed using `modules_to_patch` (regression)
* fixed recursion error on unpickling the fake file system
* allow trailing path in `add_real_directory`
-------------------------------------------------------------------
Thu Nov 1 10:04:37 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- State in more dependencies, the tests are still borked
-------------------------------------------------------------------
Tue Oct 23 06:39:22 UTC 2018 - Karol Babioch <kbabioch@suse.com>
- Update to version 3.5
* This version of pyfakefs does not support Python 3.3.
* The deprecation warnings for the old API are now switched on by default.
* Improved automatic patching:
* added possibility to set user ID
* added side_effect option to fake files
* added some support for extended filesystem attributes under Linux
* handle `contents=None` in `create_file()` as empty contents if size not set
* added pathlib2 support
* added support for null device
* improved error message for "Bad file descriptor in fake filesystem"
* fixed pytest when both pyfakefs and future are installed
* file timestamps are now updated more according to the real behavior
* fixed a problem related with patching shutil functions using zipfile
-------------------------------------------------------------------
Thu Jun 14 05:05:28 UTC 2018 - kbabioch@suse.com
- Update to version 3.4.3
- Added support for path-like objects as arguments in create_file(),
create_dir(), create_symlink(), add_real_file() and add_real_directory()
- Bugfixes:
- tell after seek gave incorrect result in append mode
- flushing file contents after truncate was incorrect under some conditions
- readline() did not work correctly in binary mode
- pathlib.Path.resolve() behaved incorrectly if the path does not exist
- closed attribute was not implemented in fake file
- add_real_directory did not behave correctly for nested paths
- several functions did not behave correctly for paths ending with a
path separator
-------------------------------------------------------------------
Tue Apr 17 11:42:01 UTC 2018 - kbabioch@suse.com
- Initial packaging of version 3.4.1