Hello community,

here is the log from the commit of package python-fs for openSUSE:Leap:15.2 
checked in at 2020-04-18 18:40:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-fs (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-fs.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-fs"

Sat Apr 18 18:40:47 2020 rev:4 rq:776636 version:2.4.11

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-fs/python-fs.changes    2020-01-15 
15:48:59.707444925 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.python-fs.new.2738/python-fs.changes  
2020-04-18 18:40:48.489925405 +0200
@@ -1,0 +2,212 @@
+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
+
+-------------------------------------------------------------------
+Fri Jul 26 14:10:13 UTC 2019 - [email protected]
+
+- version update to 2.4.8
+  * geturl will return URL with user/password if needed @zmej-serow
+  * Flag to OSFS to disable env var expansion
+  * Implemented geturl in FTPFS @zmej-serow
+- modified patches
+  % more-relaxed-requirements.patch (refreshed)
+
+-------------------------------------------------------------------
+Thu May 16 18:12:13 UTC 2019 - [email protected]
+
+Update to 2.4.5
+Fixes:
+* Restored deprecated setfile method with deprecation warning
+  to change to writefile
+* Fixed exception when a tarfile contains a path called '.'
+* Made TarFS directory loading lazy 
+
+
+-------------------------------------------------------------------
+Fri Mar  1 09:24:19 UTC 2019 - John Vandenberg <[email protected]>
+
+- Remove unnecessary bcond_without test
+- Simplifed build dependencies on scandir and typing
+- Fix compatibility Requires for older Python which were using incorrect
+  comparisons with python_version_nodots, and incorrectly used Recommends
+- Update to v2.4.4
+  * OSFS fail in nfs mounts
+- from 2.4.3
+  * Fixed broken "case_insensitive" check
+  * Fixed Windows test fails
+- from 2.4.2
+  * Fixed exception when Python runs with -OO
+- from 2.4.1
+  * Fixed hash method missing from WrapFS
+- from 2.4.0
+  * Added exclude and filter_dirs arguments to walk
+  * Micro-optimizations to walk
+- from 2.3.1
+  * Add encoding check in OSFS.validatepath
+- from 2.3.0
+  * IllegalBackReference had mangled error message
+  * Added FS.hash method
+
+-------------------------------------------------------------------
+Fri Jan 25 21:31:50 UTC 2019 - Todd R <[email protected]>
+
+- Update to version 2.2.1
+  + Fixed
+    * `Registry.install` returns its argument.
+- Update to version 2.2.0
+    * A few methods have been renamed for greater clarity (but functionality 
remains the same).
+      The old methods are now aliases and will continue to work, but will
+      issue a deprecation warning via the `warnings` module.
+      Please update your code accordingly.
+      > `getbytes` -> `readbytes`
+      > `getfile` -> `download`
+      > `gettext` -> `readtext`
+      > `setbytes` -> `writebytes`
+      > `setbinfile` -> `upload`
+      > `settext` -> `writetext`
+  + Changed
+    * Changed default chunk size in `copy_file_data` to 1MB
+    * Added `chunk_size` and `options` to `FS.upload`
+- Update to version 2.1.3
+  + Fixed
+    * Incomplete FTPFile.write when using `workers` @geoffjukes
+    * Fixed AppFS not creating directory
+  + Added
+    * Added load_extern switch to opener, fixes #228 @althanos
+- Update to version 2.1.2
+  + Added
+    * Support for Windows NT FTP servers @sspross
+  + Fixed
+    * Root dir of MemoryFS accesible as a file
+    * Packaging issues @televi
+    * Deprecation warning re collections.Mapping
+- Update to version 2.1.1
+  + Added
+    * Added PEP 561 py.typed files
+    * Use sendfile for faster copies @althonos
+    * Atomic exclusive mode in Py2.7 @sqwishy
+  + Fixed
+    * Fixed lstat @kamomil
+- Update to version 2.1.0
+  + Added
+    * fs.glob support
+- Update to version 2.0.27
+  + Fixed
+    * Fixed for Winows paths #152
+    * Fixed ftp dir parsing (@dhirschfeld)
+- Update to version 2.0.26
+  + Fixed
+    * fs.copy and fs.move disable workers if not thread-safe
+    * fs.match detects case insensitivity
+    * Open in exclusive mode is atomic (@squishy)
+    * Exceptions can be pickleabe (@Spacerat)
+- Update to version 2.0.25
+  + Added
+    * workers parameter to fs.copy, fs.move, and fs.mirror for concurrent
+      copies
+- Update to version 2.0.24
+  + Added
+    * timeout to FTP opener
+- Update to version 2.0.23
+  * Fix for Markdown on PyPi, no code changes
+- Update to version 2.0.22
+  + Fixed
+    * Handling of broken unicode on Python2.7
+  + Added
+    * Added fs.getospath
+- Update to version 2.0.21
+  + Added
+    * Typing information
+    * Added Info.suffix, Info.suffixes, Info.stem attributes
+  + Fixed
+    * Fixed issue with implied directories in TarFS
+  + Changed
+    * Changed path.splitext so that 'leading periods on the basename are
+      ignored', which is the behaviour of os.path.splitext
+- Update to version 2.0.20
+  + Fixed
+    * MultiFS.listdir now correctly filters out duplicates
+- Update to version 2.0.19
+  + Fixed
+    * encoding issue with TarFS
+    * CreateFailed now contains the original exception in `exc` attribute
+- Update to version 2.0.18
+  + Added
+    * fs.getfile function
+  + Changed
+    * Modified walk to use iterators internally (for more efficient walking)
+    * Modified fs.copy to use getfile
+- Update to version 2.0.17
+  + Fixed
+    * Issue with ZipFS files missing a byte
+- Update to version 2.0.16
+  + Added
+    * fs.parts
+  + Fixed
+    * Walk now yields Step named tuples as advertised
+  + Added
+    * Added max_depth parameter to fs.walk
+- Update to version 2.0.15
+  + Changed
+    * ZipFS files are now seekable (Martin Larralde)
+- Update to version 2.0.14
+  * No changes, pushed wrong branch to PyPi.
+- Update to version 2.0.13
+  + Fixed
+    * Fixed ignore_errors in walk.py
+- Update to version 2.0.12
+  + Fixed
+    * settext, appendtext, appendbytes, setbytes now raise a TypeError if
+      the type is wrong, rather than ValueError
+    * More efficient feature detection for FTPFS
+    * Fixes for `fs.filesize`
+    * Major documentation refactor (Martin Larralde)
+- Update to version 2.0.11
+  + Added
+    * fs.mirror
+- Update to version 2.0.10
+  + Added
+    * Added params support to FS URLs
+  + Fixed
+    * Many fixes to FTPFS contributed by Martin Larralde.
+- Update to version 2.0.9
+  + Changed
+    * MountFS and MultiFS now accept FS URLS
+    * Add openers for AppFS
+- Update to version 2.0.8
+  + Added
+    * Lstat info namespace
+    * Link info namespace
+    * FS.islink method
+    * Info.is_link method
+- Update to version 2.0.7
+  + Fixes
+    * Fixed entry point breaking pip
+- Update to version 2.0.6
+  + Fixes
++++ 15 more lines (skipped)
++++ between /work/SRC/openSUSE:Leap:15.2/python-fs/python-fs.changes
++++ and /work/SRC/openSUSE:Leap:15.2/.python-fs.new.2738/python-fs.changes

Old:
----
  fs-2.0.4.tar.gz
  more-relaxed-requirements.patch
  python-fs-fix-ftp-test.patch

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

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

Other differences:
------------------
++++++ python-fs.spec ++++++
--- /var/tmp/diff_new_pack.wKTnb3/_old  2020-04-18 18:40:48.925926327 +0200
+++ /var/tmp/diff_new_pack.wKTnb3/_new  2020-04-18 18:40:48.929926335 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-fs
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2016 LISA GmbH, Bingen, Germany.
 #
 # All modifications and additions to the file contributed by third parties
@@ -18,40 +18,48 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%bcond_without test
 Name:           python-fs
-Version:        2.0.4
+Version:        2.4.11
 Release:        0
 Summary:        Python's filesystem abstraction layer
-License:        BSD-3-Clause
+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
-# PATCH-FIX-OPENSUSE make ftp tests pass in 2018
-Patch1:         python-fs-fix-ftp-test.patch
-BuildRequires:  %{python_module setuptools}
-BuildRequires:  python-rpm-macros
-%if %{with test}
-BuildRequires:  %{python_module appdirs >= 1.4}
-BuildRequires:  %{python_module mock}
-BuildRequires:  %{python_module nose}
+Source1:        
https://raw.githubusercontent.com/PyFilesystem/pyfilesystem2/master/tests/conftest.py
+BuildRequires:  %{python_module appdirs >= 1.4.3}
+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}
 BuildRequires:  %{python_module six >= 1.10.0}
-%endif
-Requires:       python-appdirs
+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
 Requires:       python-pytz
 Requires:       python-setuptools
-Requires:       python-six
-%if %python_version_nodots < 35
-Recommends:     python-enum34
-Suggests:       python-scandir >= 1.5
-%endif
+Requires:       python-six >= 1.10.0
+Requires:       python-typing >= 3.6
+Recommends:     python-pyftpdlib
 BuildArch:      noarch
-
+%ifpython2
+Requires:       python-backports.os >= 0.1
+%endif
+%if %{python_version_nodots} < 34
+Requires:       python-enum34 >= 1.1.6
+Recommends:     python-pysendfile
+%endif
+%if %{python3_version_nodots} < 35
+Recommends:     python-scandir >= 1.5
+%endif
 %python_subpackages
 
 %description
@@ -63,24 +71,24 @@
 
 %prep
 %setup -q -n fs-%{version}
-%patch0
-%patch1 -p1
+sed -i -e 's:~=:>=:g' setup.py
+cp %{SOURCE1} tests/
 
 %build
 %python_build
 
 %install
 %python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
-%if %{with test}
 %check
 export LANG=en_US.UTF-8
-%python_exec  setup.py test
-%endif
+export PYTHONDONTWRITEBYTECODE=1
+%pytest
 
 %files %{python_files}
-%defattr(-,root,root,-)
-%doc README.rst
+%doc README.md
+%license LICENSE
 %{python_sitelib}/*
 
 %changelog

++++++ 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.0.4.tar.gz -> fs-2.4.11.tar.gz ++++++
++++ 25085 lines of diff (skipped)


Reply via email to