Hello community,

here is the log from the commit of package python-pyfakefs for openSUSE:Factory 
checked in at 2019-02-25 17:51:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyfakefs (Old)
 and      /work/SRC/openSUSE:Factory/.python-pyfakefs.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyfakefs"

Mon Feb 25 17:51:09 2019 rev:7 rq:674178 version:3.5.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyfakefs/python-pyfakefs.changes  
2019-01-24 14:10:09.271587947 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pyfakefs.new.28833/python-pyfakefs.changes   
    2019-02-25 17:51:13.310757551 +0100
@@ -1,0 +2,6 @@
+Tue Feb 12 15:37:32 UTC 2019 - Karol Babioch <kbabi...@suse.de>
+
+- Update to version 3.5.7
+  * Fixes a regression introduced in the last version
+
+-------------------------------------------------------------------

Old:
----
  python-pyfakefs-3.5.6.tar.gz

New:
----
  python-pyfakefs-3.5.7.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pyfakefs.spec ++++++
--- /var/tmp/diff_new_pack.Fx2faL/_old  2019-02-25 17:51:13.758757308 +0100
+++ /var/tmp/diff_new_pack.Fx2faL/_new  2019-02-25 17:51:13.762757305 +0100
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-pyfakefs
-Version:        3.5.6
+Version:        3.5.7
 Release:        0
 Summary:        Fake file system that mocks the Python file system modules
 License:        Apache-2.0

++++++ python-pyfakefs-3.5.6.tar.gz -> python-pyfakefs-3.5.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyfakefs-3.5.6/.travis.yml 
new/pyfakefs-3.5.7/.travis.yml
--- old/pyfakefs-3.5.6/.travis.yml      2019-01-13 14:18:48.000000000 +0100
+++ new/pyfakefs-3.5.7/.travis.yml      2019-02-08 20:09:41.000000000 +0100
@@ -50,6 +50,7 @@
   - ./.travis/install.sh
 
 script:
+  - export TEST_REAL_FS=1
   - ./.travis/run_tests.sh
   - ./.travis/run_pytest.sh
   - ./.travis/docker_tests.sh
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyfakefs-3.5.6/CHANGES.md 
new/pyfakefs-3.5.7/CHANGES.md
--- old/pyfakefs-3.5.6/CHANGES.md       2019-01-13 14:18:48.000000000 +0100
+++ new/pyfakefs-3.5.7/CHANGES.md       2019-02-08 20:09:41.000000000 +0100
@@ -1,12 +1,27 @@
 # pyfakefs Release Notes
 The release versions are PyPi releases.
 
+## [Version 3.5.7](https://pypi.python.org/pypi/pyfakefs/3.5.7)
+
+This is a mostly a bug-fix release.
+
+#### Fixes
+  * Regression: `pathlib` did not get patched in the presence of `pathlib2`
+    (see [#467](../../issues/467))
+  * fixed errors if running the PyCharm debugger under Python 2 
+    (see [#464](../../issues/464))
+    
+#### Infrastructure
+  * do not run real file system tests by default (fixes deployment problem,
+    see [#465](../../issues/465))
+  * make tests run if running `python setup.py test` under Python 2 
+
 ## [Version 3.5.6](https://pypi.python.org/pypi/pyfakefs/3.5.6)
 
 #### Changes
   * import external `pathlib2` and `scandir` packages first if present
     (see [#462](../../issues/462))
-    
+
 ## [Version 3.5.5](https://pypi.python.org/pypi/pyfakefs/3.5.5)
 
 #### Fixes
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyfakefs-3.5.6/appveyor.yml 
new/pyfakefs-3.5.7/appveyor.yml
--- old/pyfakefs-3.5.6/appveyor.yml     2019-01-13 14:18:48.000000000 +0100
+++ new/pyfakefs-3.5.7/appveyor.yml     2019-02-08 20:09:41.000000000 +0100
@@ -15,6 +15,7 @@
 build: off
 
 test_script:
+  - SET TEST_REAL_FS=1
   - "%PYTHON%\\python.exe -m pyfakefs.tests.all_tests"
   - "%PYTHON%\\python.exe -m pyfakefs.tests.all_tests_without_extra_packages"
   - "%PYTHON%\\python.exe -m pytest 
pyfakefs\\tests\\pytest\\pytest_plugin_test.py"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyfakefs-3.5.6/docs/conf.py 
new/pyfakefs-3.5.7/docs/conf.py
--- old/pyfakefs-3.5.6/docs/conf.py     2019-01-13 14:18:48.000000000 +0100
+++ new/pyfakefs-3.5.7/docs/conf.py     2019-02-08 20:09:41.000000000 +0100
@@ -66,9 +66,9 @@
 # built documents.
 #
 # The short X.Y version.
-version = '3.5.6'
+version = '3.5.7'
 # The full version, including alpha/beta/rc tags.
-release = '3.5.6'
+release = '3.5.7'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyfakefs-3.5.6/docs/usage.rst 
new/pyfakefs-3.5.7/docs/usage.rst
--- old/pyfakefs-3.5.6/docs/usage.rst   2019-01-13 14:18:48.000000000 +0100
+++ new/pyfakefs-3.5.7/docs/usage.rst   2019-02-08 20:09:41.000000000 +0100
@@ -270,10 +270,21 @@
 ~~~~~~~~~~~~~~~~~~~~~
 This may be used to add modules that shall not be patched. This is mostly
 used to avoid patching the Python file system modules themselves, but may be
-helpful in some special situations. There is also the global
-variable ``Patcher.SKIPNAMES`` that can be extended for that purpose, though
-this seldom shall be needed (except for own pytest plugins, as shown in
-the example mentioned above)
+helpful in some special situations, for example if a testrunner is accessing
+the file system after test setup. A known case is erratic behavior if running a
+debug session in PyCharm with Python 2.7, which can be avoided by adding the
+offending module to ``additional_skip_names``:
+
+.. code:: python
+
+  with Patcher(additional_skip_names=['pydevd']) as patcher:
+      patcher.fs.create_file('foo')
+
+There is also the global variable ``Patcher.SKIPNAMES`` that can be extended
+for that purpose, though this seldom shall be needed (except for own pytest
+plugins, as shown in the example mentioned above). Other than in
+``additional_skip_names``, which is a list of modules names, this is a list
+of modules that have to be imported before.
 
 use_dynamic_patch
 ~~~~~~~~~~~~~~~~~
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyfakefs-3.5.6/pyfakefs/extra_packages.py 
new/pyfakefs-3.5.7/pyfakefs/extra_packages.py
--- old/pyfakefs-3.5.6/pyfakefs/extra_packages.py       2019-01-13 
14:18:48.000000000 +0100
+++ new/pyfakefs-3.5.7/pyfakefs/extra_packages.py       2019-02-08 
20:09:41.000000000 +0100
@@ -17,15 +17,14 @@
 try:
     import pathlib2
 
-    pathlib = None
+    pathlib = pathlib2
 except ImportError:
+    pathlib2 = None
+
     try:
         import pathlib
-
-        pathlib2 = None
     except ImportError:
         pathlib = None
-        pathlib2 = None
 
 use_pathlib = pathlib or pathlib2
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyfakefs-3.5.6/pyfakefs/fake_filesystem.py 
new/pyfakefs-3.5.7/pyfakefs/fake_filesystem.py
--- old/pyfakefs-3.5.6/pyfakefs/fake_filesystem.py      2019-01-13 
14:18:48.000000000 +0100
+++ new/pyfakefs-3.5.7/pyfakefs/fake_filesystem.py      2019-02-08 
20:09:41.000000000 +0100
@@ -119,7 +119,7 @@
 
 __pychecker__ = 'no-reimportself'
 
-__version__ = '3.5.6'
+__version__ = '3.5.7'
 
 PERM_READ = 0o400  # Read permission bit.
 PERM_WRITE = 0o200  # Write permission bit.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyfakefs-3.5.6/pyfakefs/fake_filesystem_unittest.py 
new/pyfakefs-3.5.7/pyfakefs/fake_filesystem_unittest.py
--- old/pyfakefs-3.5.6/pyfakefs/fake_filesystem_unittest.py     2019-01-13 
14:18:48.000000000 +0100
+++ new/pyfakefs-3.5.7/pyfakefs/fake_filesystem_unittest.py     2019-02-08 
20:09:41.000000000 +0100
@@ -38,6 +38,7 @@
 """
 import doctest
 import inspect
+import os
 import sys
 import tempfile
 import unittest
@@ -300,11 +301,11 @@
         with Patcher():
             doStuff()
     """
-    SKIPMODULES = {None, fake_filesystem, fake_filesystem_shutil, sys}
     '''Stub nothing that is imported within these modules.
     `sys` is included to prevent `sys.path` from being stubbed with the fake
     `os.path`.
     '''
+    SKIPMODULES = {None, fake_filesystem, fake_filesystem_shutil, sys}
     assert None in SKIPMODULES, ("sys.modules contains 'None' values;"
                                  " must skip them.")
 
@@ -316,6 +317,10 @@
     if pathlib2:
         SKIPNAMES.add('pathlib2')
 
+    # exclude the PyCharm debugger as it needs to access the real fs
+    if IS_PY2 and os.environ.get('PYCHARM_HOSTED'):
+        SKIPNAMES.add('pydevd')
+
     def __init__(self, additional_skip_names=None,
                  modules_to_reload=None, use_dynamic_patch=True,
                  modules_to_patch=None):
@@ -359,12 +364,17 @@
         # `pathlib` and `pathlib2`
         self._class_modules = {}
         if use_pathlib:
-            mod_name = 'pathlib2' if pathlib2 is not None else 'pathlib'
-            self._fake_module_classes[
-                mod_name] = fake_pathlib.FakePathlibModule
+            self._class_modules['Path'] = []
+            if pathlib:
+                self._fake_module_classes[
+                    'pathlib'] = fake_pathlib.FakePathlibModule
+                self._class_modules['Path'].append('pathlib')
+            if pathlib2:
+                self._fake_module_classes[
+                    'pathlib2'] = fake_pathlib.FakePathlibModule
+                self._class_modules['Path'].append('pathlib2')
             self._fake_module_classes[
-            'Path'] = fake_pathlib.FakePathlibPathModule
-            self._class_modules['Path'] = [mod_name]
+                'Path'] = fake_pathlib.FakePathlibPathModule
         if use_scandir:
             self._fake_module_classes[
                 'scandir'] = fake_scandir.FakeScanDirModule
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyfakefs-3.5.6/pyfakefs/tests/all_tests.py 
new/pyfakefs-3.5.7/pyfakefs/tests/all_tests.py
--- old/pyfakefs-3.5.6/pyfakefs/tests/all_tests.py      2019-01-13 
14:18:48.000000000 +0100
+++ new/pyfakefs-3.5.7/pyfakefs/tests/all_tests.py      2019-02-08 
20:09:41.000000000 +0100
@@ -1,5 +1,3 @@
-#! /usr/bin/env python
-#
 # Copyright 2009 Google Inc. All Rights Reserved.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pyfakefs-3.5.6/pyfakefs/tests/all_tests_without_extra_packages.py 
new/pyfakefs-3.5.7/pyfakefs/tests/all_tests_without_extra_packages.py
--- old/pyfakefs-3.5.6/pyfakefs/tests/all_tests_without_extra_packages.py       
2019-01-13 14:18:48.000000000 +0100
+++ new/pyfakefs-3.5.7/pyfakefs/tests/all_tests_without_extra_packages.py       
2019-02-08 20:09:41.000000000 +0100
@@ -1,5 +1,3 @@
-#! /usr/bin/env python
-#
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyfakefs-3.5.6/pyfakefs/tests/example_test.py 
new/pyfakefs-3.5.7/pyfakefs/tests/example_test.py
--- old/pyfakefs-3.5.6/pyfakefs/tests/example_test.py   2019-01-13 
14:18:48.000000000 +0100
+++ new/pyfakefs-3.5.7/pyfakefs/tests/example_test.py   2019-02-08 
20:09:41.000000000 +0100
@@ -1,5 +1,3 @@
-#! /usr/bin/env python
-#
 # Copyright 2014 Altera Corporation. All Rights Reserved.
 # Author: John McGehee
 #
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyfakefs-3.5.6/pyfakefs/tests/test_utils.py 
new/pyfakefs-3.5.7/pyfakefs/tests/test_utils.py
--- old/pyfakefs-3.5.6/pyfakefs/tests/test_utils.py     2019-01-13 
14:18:48.000000000 +0100
+++ new/pyfakefs-3.5.7/pyfakefs/tests/test_utils.py     2019-02-08 
20:09:41.000000000 +0100
@@ -369,6 +369,9 @@
             self.open = fake_filesystem.FakeFileOpen(self.filesystem)
             self.os = fake_filesystem.FakeOsModule(self.filesystem)
             self.create_basepath()
+        elif not os.environ.get('TEST_REAL_FS'):
+            self.skip_real_fs()
+
         self.setUpFileSystem()
 
     def setUpFileSystem(self):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyfakefs-3.5.6/setup.py new/pyfakefs-3.5.7/setup.py
--- old/pyfakefs-3.5.6/setup.py 2019-01-13 14:18:48.000000000 +0100
+++ new/pyfakefs-3.5.7/setup.py 2019-02-08 20:09:41.000000000 +0100
@@ -32,7 +32,6 @@
 with open(os.path.join(BASE_PATH, 'README.md')) as f:
     LONG_DESCRIPTION = f.read()
 
-
 CLASSIFIERS = [
     'Development Status :: 5 - Production/Stable',
     'Environment :: Console',
@@ -79,6 +78,7 @@
     keywords=KEYWORDS,
     url=URL,
     classifiers=CLASSIFIERS,
+    test_suite='pyfakefs.tests',
     packages=find_packages(exclude=['docs'])
 )
 


Reply via email to