Hello community,

here is the log from the commit of package python-fs for openSUSE:Factory 
checked in at 2019-09-13 15:02:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-fs (Old)
 and      /work/SRC/openSUSE:Factory/.python-fs.new.7948 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-fs"

Fri Sep 13 15:02:13 2019 rev:9 rq:730453 version:2.4.11

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-fs/python-fs.changes      2019-07-26 
17:35:21.228064909 +0200
+++ /work/SRC/openSUSE:Factory/.python-fs.new.7948/python-fs.changes    
2019-09-13 15:03:50.473275577 +0200
@@ -1,0 +2,15 @@
+Thu Sep 12 12:00:45 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 2.4.11:
+  * Restored fs.path import
+  * Fixed potential race condition in makedirs. Fixes #310
+  * Added missing methods to WrapFS. Fixed #294
+  * MemFS now immediately releases all memory it holds when close() is called, 
rather than when it gets garbage collected. Closes issue #308.
+  * FTPFS now translates EOFError into RemoteConnectionError. Closes #292
+  * Added automatic close for filesystems that go out of scope. Fixes #298
+  * Fixed broken WrapFS.movedir #322
+  * Added geturl for TarFS and ZipFS for 'fs' purpose. NoURL for 'download' 
purpose.
+  * Added helpful root path in CreateFailed exception #340
+- remove patch more-relaxed-requirements.patch replaced by sed
+
+-------------------------------------------------------------------

Old:
----
  fs-2.4.8.tar.gz
  more-relaxed-requirements.patch

New:
----
  conftest.py
  fs-2.4.11.tar.gz

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

Other differences:
------------------
++++++ python-fs.spec ++++++
--- /var/tmp/diff_new_pack.EdXwQV/_old  2019-09-13 15:03:51.125275439 +0200
+++ /var/tmp/diff_new_pack.EdXwQV/_new  2019-09-13 15:03:51.125275439 +0200
@@ -19,21 +19,19 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-fs
-Version:        2.4.8
+Version:        2.4.11
 Release:        0
 Summary:        Python's filesystem abstraction layer
 License:        MIT
 Group:          Development/Languages/Python
-Url:            https://github.com/PyFilesystem/pyfilesystem2
+URL:            https://github.com/PyFilesystem/pyfilesystem2
 Source:         
https://files.pythonhosted.org/packages/source/f/fs/fs-%{version}.tar.gz
-# PATCH-FIX-UPSTREAM more-relaxed-requirements.patch [email protected] 
-- Weaken the version dependencies
-Patch0:         more-relaxed-requirements.patch
+Source1:        
https://raw.githubusercontent.com/PyFilesystem/pyfilesystem2/master/tests/conftest.py
 BuildRequires:  %{python_module appdirs >= 1.4.3}
-BuildRequires:  %{python_module mock}
-BuildRequires:  %{python_module nose}
 BuildRequires:  %{python_module psutil}
 BuildRequires:  %{python_module pyftpdlib}
 BuildRequires:  %{python_module pysendfile}
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module pytz}
 BuildRequires:  %{python_module scandir >= 1.5}
 BuildRequires:  %{python_module setuptools}
@@ -41,6 +39,8 @@
 BuildRequires:  %{python_module typing >= 3.6}
 BuildRequires:  fdupes
 BuildRequires:  python-backports.os >= 0.1
+BuildRequires:  python-enum34 >= 1.1.6
+BuildRequires:  python-mock
 BuildRequires:  python-rpm-macros
 Requires:       python-appdirs >= 1.4.3
 Requires:       python-psutil
@@ -49,8 +49,9 @@
 Requires:       python-six >= 1.10.0
 Requires:       python-typing >= 3.6
 Recommends:     python-pyftpdlib
+BuildArch:      noarch
 %ifpython2
-Requires:       python-backports.os
+Requires:       python-backports.os >= 0.1
 %endif
 %if %{python_version_nodots} < 34
 Requires:       python-enum34 >= 1.1.6
@@ -59,8 +60,6 @@
 %if %{python3_version_nodots} < 35
 Recommends:     python-scandir >= 1.5
 %endif
-BuildArch:      noarch
-
 %python_subpackages
 
 %description
@@ -72,7 +71,8 @@
 
 %prep
 %setup -q -n fs-%{version}
-%patch0 -p1
+sed -i -e 's:~=:>=:g' setup.py
+cp %{SOURCE1} tests/
 
 %build
 %python_build
@@ -83,7 +83,8 @@
 
 %check
 export LANG=en_US.UTF-8
-%python_exec  setup.py test
+export PYTHONDONTWRITEBYTECODE=1
+%pytest
 
 %files %{python_files}
 %doc README.md

++++++ conftest.py ++++++
import pytest

try:
    from unittest import mock
except ImportError:
    import mock


@pytest.fixture
@mock.patch("appdirs.user_data_dir", autospec=True, spec_set=True)
@mock.patch("appdirs.site_data_dir", autospec=True, spec_set=True)
@mock.patch("appdirs.user_config_dir", autospec=True, spec_set=True)
@mock.patch("appdirs.site_config_dir", autospec=True, spec_set=True)
@mock.patch("appdirs.user_cache_dir", autospec=True, spec_set=True)
@mock.patch("appdirs.user_state_dir", autospec=True, spec_set=True)
@mock.patch("appdirs.user_log_dir", autospec=True, spec_set=True)
def mock_appdir_directories(
    user_log_dir_mock,
    user_state_dir_mock,
    user_cache_dir_mock,
    site_config_dir_mock,
    user_config_dir_mock,
    site_data_dir_mock,
    user_data_dir_mock,
    tmpdir
):
    """Mock out every single AppDir directory so tests can't access real 
ones."""
    user_log_dir_mock.return_value = str(tmpdir.join("user_log").mkdir())
    user_state_dir_mock.return_value = str(tmpdir.join("user_state").mkdir())
    user_cache_dir_mock.return_value = str(tmpdir.join("user_cache").mkdir())
    site_config_dir_mock.return_value = str(tmpdir.join("site_config").mkdir())
    user_config_dir_mock.return_value = str(tmpdir.join("user_config").mkdir())
    site_data_dir_mock.return_value = str(tmpdir.join("site_data").mkdir())
    user_data_dir_mock.return_value = str(tmpdir.join("user_data").mkdir())
++++++ fs-2.4.8.tar.gz -> fs-2.4.11.tar.gz ++++++
++++ 2628 lines of diff (skipped)


Reply via email to