# # spec file for package python-pathlib2 # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pathlib2 Version: 2.3.2 Release: 3.1 Summary: Object-oriented filesystem paths License: MIT Group: Development/Languages/Python URL: https://pypi.python.org/pypi/pathlib2/ Source: https://files.pythonhosted.org/packages/source/p/pathlib2/pathlib2-%{version}.tar.gz BuildRequires: %{python_module mock} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} BuildRequires: python-rpm-macros BuildRequires: python3-testsuite Requires: python-six BuildArch: noarch %if %{python3_version_nodots} < 35 BuildRequires: python3-scandir Requires: python3-scandir %endif %ifpython2 BuildRequires: python2-scandir Requires: python2-scandir %endif %python_subpackages %description The goal of pathlib2 is to provide a backport of `standard pathlib `_ module which tracks the standard library module, so all the newest features of the standard pathlib can be used also on older Python versions. %prep %autosetup -n pathlib2-%{version} %build %python_build %install %python_install %check # nothing provides test module in python2 export PYTHONPATH="$PWD" python3 tests/test_pathlib2.py %files %{python_files} %license LICENSE.rst %doc CHANGELOG.rst README.rst %{python_sitelib}/* %changelog * Mon Nov 12 2018 Tomáš Chvátal - Avoid an issue with accidentally still pulling scandir on python3 * Thu Nov 1 2018 Tomáš Chvátal - Scandir is needed only on older than 3.5 python * Tue Aug 7 2018 mimi.vx@gmail.com - cleanup deps * Wed May 30 2018 mimi.vx@gmail.com - update to 2.3.2 - drop pathlib2-2.3.0-fix-tests.patch - fix requires and drop coverage report * Tue May 22 2018 mcepl@suse.com - Clean up SPEC - Switch on tests (add patch pathlib2-2.3.0-fix-tests.patch) * Fri Jan 5 2018 alarrosa@suse.com - Update to version 2.3.0 * Sync with upstream pathlib from CPython 3.6.1 * Thu Aug 24 2017 jmatejek@suse.com - singlespec auto-conversion * Thu Mar 30 2017 toddrme2178@gmail.com - Initial version