forked from pool/python-fs
Accepting request 681587 from home:jayvdb:noflake8
- 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 OBS-URL: https://build.opensuse.org/request/show/681587 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fs?expand=0&rev=14
This commit is contained in:
committed by
Git OBS Bridge
parent
fb7e81c49b
commit
42c9e126b3
@@ -16,10 +16,10 @@
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without test
|
||||
Name: python-fs
|
||||
Version: 2.2.1
|
||||
Version: 2.4.4
|
||||
Release: 0
|
||||
Summary: Python's filesystem abstraction layer
|
||||
License: MIT
|
||||
@@ -28,32 +28,35 @@ 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
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module appdirs >= 1.4}
|
||||
BuildRequires: %{python_module appdirs >= 1.4.3}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module nose}
|
||||
BuildRequires: %{python_module pyftpdlib}
|
||||
BuildRequires: %{python_module psutil}
|
||||
BuildRequires: %{python_module pyftpdlib}
|
||||
BuildRequires: %{python_module pysendfile}
|
||||
BuildRequires: %{python_module pytz}
|
||||
BuildRequires: %{python_module scandir >= 1.5}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six >= 1.10.0}
|
||||
BuildRequires: %{python_module typing}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-backports.os
|
||||
BuildRequires: python-typing
|
||||
%endif
|
||||
Requires: python-appdirs
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-appdirs >= 1.4.3
|
||||
Requires: python-psutil
|
||||
Requires: python-pytz
|
||||
Requires: python-setuptools
|
||||
Requires: python-six
|
||||
Requires: python-six >= 1.10.0
|
||||
Requires: python-typing >= 3.6
|
||||
Recommends: python-pyftpdlib
|
||||
%ifpython2
|
||||
Requires: python-backports.os
|
||||
%endif
|
||||
%if %{python_version_nodots} < 35
|
||||
Requires: python-typing
|
||||
Recommends: python-enum34
|
||||
%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
|
||||
BuildArch: noarch
|
||||
@@ -78,11 +81,9 @@ any of the supported filesystems (zip, ftp, S3 etc.).
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
export LANG=en_US.UTF-8
|
||||
%python_exec setup.py test
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
|
||||
Reference in New Issue
Block a user