From ac9f520932dd13cf89519c708466592ecdd10e7fbf5b164e871467a043676a8a Mon Sep 17 00:00:00 2001 From: Karol Babioch Date: Tue, 23 Oct 2018 06:43:56 +0000 Subject: [PATCH 1/4] Accepting request 643884 from home:kbabioch:branches:devel:languages:python - 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 OBS-URL: https://build.opensuse.org/request/show/643884 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyfakefs?expand=0&rev=5 --- python-pyfakefs-3.4.3.tar.gz | 3 --- python-pyfakefs-3.5.tar.gz | 3 +++ python-pyfakefs.changes | 18 ++++++++++++++++++ python-pyfakefs.spec | 4 ++-- 4 files changed, 23 insertions(+), 5 deletions(-) delete mode 100644 python-pyfakefs-3.4.3.tar.gz create mode 100644 python-pyfakefs-3.5.tar.gz diff --git a/python-pyfakefs-3.4.3.tar.gz b/python-pyfakefs-3.4.3.tar.gz deleted file mode 100644 index 519d7d6..0000000 --- a/python-pyfakefs-3.4.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5b009700f2887dee4344c2d06dbdd9246a5591f0d3b4b45d4dc88124bbe236db -size 156896 diff --git a/python-pyfakefs-3.5.tar.gz b/python-pyfakefs-3.5.tar.gz new file mode 100644 index 0000000..b7a868a --- /dev/null +++ b/python-pyfakefs-3.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:15427f405666c6bf69f124ceb41bfe525d2ff4feaf77f566058b62d474689823 +size 164792 diff --git a/python-pyfakefs.changes b/python-pyfakefs.changes index 15215fd..3c67173 100644 --- a/python-pyfakefs.changes +++ b/python-pyfakefs.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Tue Oct 23 06:39:22 UTC 2018 - Karol Babioch + +- 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 diff --git a/python-pyfakefs.spec b/python-pyfakefs.spec index 6d00788..aa5db9e 100644 --- a/python-pyfakefs.spec +++ b/python-pyfakefs.spec @@ -12,13 +12,13 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pyfakefs -Version: 3.4.3 +Version: 3.5 Release: 0 Summary: Fake file system that mocks the Python file system modules License: Apache-2.0 From bedee0f129eef78e91be139e68e463b1d5fdfa98230e038b15b5efdddf5c6e91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 1 Nov 2018 10:04:53 +0000 Subject: [PATCH 2/4] - State in more dependencies, the tests are still borked OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyfakefs?expand=0&rev=6 --- python-pyfakefs.changes | 5 +++++ python-pyfakefs.spec | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/python-pyfakefs.changes b/python-pyfakefs.changes index 3c67173..70cf278 100644 --- a/python-pyfakefs.changes +++ b/python-pyfakefs.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 1 10:04:37 UTC 2018 - Tomáš Chvátal + +- State in more dependencies, the tests are still borked + ------------------------------------------------------------------- Tue Oct 23 06:39:22 UTC 2018 - Karol Babioch diff --git a/python-pyfakefs.spec b/python-pyfakefs.spec index aa5db9e..910fc29 100644 --- a/python-pyfakefs.spec +++ b/python-pyfakefs.spec @@ -25,11 +25,17 @@ License: Apache-2.0 Group: Development/Languages/Python URL: http://pyfakefs.org Source: https://github.com/jmcgeheeiv/pyfakefs/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz -BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pathlib2 >= 2.3.2} +BuildRequires: %{python_module pytest >= 2.8.6} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildRequires: python2-scandir >= 1.8 +Requires: python-pathlib2 >= 2.3.2 BuildArch: noarch +%ifpython2 +Requires: python-scandir >= 1.8 +%endif %python_subpackages %description From f77f6262acb0f8001dda3cdfe45c4eba7ccb6c4770bc90b6a83b1a6b6e16a6f8 Mon Sep 17 00:00:00 2001 From: Karol Babioch Date: Mon, 12 Nov 2018 09:11:29 +0000 Subject: [PATCH 3/4] Accepting request 648402 from home:kbabioch:branches:devel:languages:python - 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` OBS-URL: https://build.opensuse.org/request/show/648402 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyfakefs?expand=0&rev=7 --- python-pyfakefs-3.5.2.tar.gz | 3 +++ python-pyfakefs-3.5.tar.gz | 3 --- python-pyfakefs.changes | 12 ++++++++++++ python-pyfakefs.spec | 2 +- 4 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 python-pyfakefs-3.5.2.tar.gz delete mode 100644 python-pyfakefs-3.5.tar.gz diff --git a/python-pyfakefs-3.5.2.tar.gz b/python-pyfakefs-3.5.2.tar.gz new file mode 100644 index 0000000..2a401e2 --- /dev/null +++ b/python-pyfakefs-3.5.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8796f09a59a4d038ede40c7b3ba4d285f9dfdc8f993f6cb38e0a810b60d8114e +size 166325 diff --git a/python-pyfakefs-3.5.tar.gz b/python-pyfakefs-3.5.tar.gz deleted file mode 100644 index b7a868a..0000000 --- a/python-pyfakefs-3.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:15427f405666c6bf69f124ceb41bfe525d2ff4feaf77f566058b62d474689823 -size 164792 diff --git a/python-pyfakefs.changes b/python-pyfakefs.changes index 70cf278..57d2f22 100644 --- a/python-pyfakefs.changes +++ b/python-pyfakefs.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Mon Nov 12 09:07:49 UTC 2018 - Karol Babioch + +- 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 diff --git a/python-pyfakefs.spec b/python-pyfakefs.spec index 910fc29..c0054e4 100644 --- a/python-pyfakefs.spec +++ b/python-pyfakefs.spec @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pyfakefs -Version: 3.5 +Version: 3.5.2 Release: 0 Summary: Fake file system that mocks the Python file system modules License: Apache-2.0 From 450e240f4be10c0361a96fb4ded24d99f5ce0cb5561b541511fb06ae2597d8fe Mon Sep 17 00:00:00 2001 From: Karol Babioch Date: Thu, 22 Nov 2018 19:47:40 +0000 Subject: [PATCH 4/4] Accepting request 651219 from home:kbabioch:branches:devel:languages:python - 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 OBS-URL: https://build.opensuse.org/request/show/651219 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyfakefs?expand=0&rev=8 --- python-pyfakefs-3.5.2.tar.gz | 3 --- python-pyfakefs-3.5.3.tar.gz | 3 +++ python-pyfakefs.changes | 9 +++++++++ python-pyfakefs.spec | 2 +- 4 files changed, 13 insertions(+), 4 deletions(-) delete mode 100644 python-pyfakefs-3.5.2.tar.gz create mode 100644 python-pyfakefs-3.5.3.tar.gz diff --git a/python-pyfakefs-3.5.2.tar.gz b/python-pyfakefs-3.5.2.tar.gz deleted file mode 100644 index 2a401e2..0000000 --- a/python-pyfakefs-3.5.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8796f09a59a4d038ede40c7b3ba4d285f9dfdc8f993f6cb38e0a810b60d8114e -size 166325 diff --git a/python-pyfakefs-3.5.3.tar.gz b/python-pyfakefs-3.5.3.tar.gz new file mode 100644 index 0000000..a500047 --- /dev/null +++ b/python-pyfakefs-3.5.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4d1d9633f07c949b304d55edec95d30c2030342375c276b83dd26a9b2e9400ee +size 167207 diff --git a/python-pyfakefs.changes b/python-pyfakefs.changes index 57d2f22..e9ce7a1 100644 --- a/python-pyfakefs.changes +++ b/python-pyfakefs.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Nov 22 19:40:46 UTC 2018 - Karol Babioch + +- 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 diff --git a/python-pyfakefs.spec b/python-pyfakefs.spec index c0054e4..166f1b0 100644 --- a/python-pyfakefs.spec +++ b/python-pyfakefs.spec @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pyfakefs -Version: 3.5.2 +Version: 3.5.3 Release: 0 Summary: Fake file system that mocks the Python file system modules License: Apache-2.0