SHA256
15
0
forked from pool/python-fs

- 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fs?expand=0&rev=20
This commit is contained in:
Tomáš Chvátal
2019-09-12 12:32:30 +00:00
committed by Git OBS Bridge
parent f9b4390353
commit d77cc5a8bb
6 changed files with 65 additions and 43 deletions

View File

@@ -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 sebix+novell.com@sebix.at -- 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,16 +39,19 @@ BuildRequires: %{python_module six >= 1.10.0}
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 >= 1.10.0
Requires: python-typing >= 3.6
Recommends: python-pyftpdlib
Recommends: python-typing >= 3.6
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 @@ Recommends: python-pysendfile
%if %{python3_version_nodots} < 35
Recommends: python-scandir >= 1.5
%endif
BuildArch: noarch
%python_subpackages
%description
@@ -72,7 +71,8 @@ any of the supported filesystems (zip, ftp, S3 etc.).
%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 @@ any of the supported filesystems (zip, ftp, S3 etc.).
%check
export LANG=en_US.UTF-8
%python_exec setup.py test
export PYTHONDONTWRITEBYTECODE=1
%pytest
%files %{python_files}
%doc README.md