2015-11-18 21:34:06 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-testpath
|
|
|
|
#
|
2018-01-20 10:27:18 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-11-18 21:34:06 +00:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-04-28 07:13:14 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2015-11-18 21:34:06 +00:00
|
|
|
Name: python-testpath
|
2018-10-11 16:31:59 +00:00
|
|
|
Version: 0.4.2
|
2015-11-18 21:34:06 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Test utilities for code working with files and commands
|
2018-10-11 16:31:59 +00:00
|
|
|
License: LGPL-2.1-or-later OR BSD-3-Clause
|
2015-11-18 21:34:06 +00:00
|
|
|
Group: Development/Languages/Python
|
|
|
|
Url: https://github.com/jupyter/testpath
|
2018-01-20 10:27:18 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/t/testpath/testpath-%{version}.tar.gz
|
2018-10-01 06:18:33 +00:00
|
|
|
BuildRequires: %{python_module base}
|
2017-04-28 07:13:14 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2015-11-18 21:34:06 +00:00
|
|
|
BuildArch: noarch
|
2017-04-28 07:13:14 +00:00
|
|
|
%python_subpackages
|
2015-11-18 21:34:06 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Testpath is a collection of utilities for Python code working with
|
|
|
|
files and commands.
|
|
|
|
|
|
|
|
It contains functions to check things on the filesystem, and tools
|
|
|
|
for mocking system commands and recording calls to those.
|
|
|
|
|
|
|
|
%prep
|
2018-01-20 10:27:18 +00:00
|
|
|
%setup -q -n testpath-%{version}
|
2015-11-18 21:34:06 +00:00
|
|
|
|
|
|
|
%build
|
2018-01-20 10:27:18 +00:00
|
|
|
%python_build
|
2015-11-18 21:34:06 +00:00
|
|
|
|
|
|
|
%install
|
2018-01-20 10:27:18 +00:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2015-11-18 21:34:06 +00:00
|
|
|
|
2017-04-28 07:13:14 +00:00
|
|
|
%files %{python_files}
|
2018-10-01 06:18:33 +00:00
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|
2017-04-28 07:13:14 +00:00
|
|
|
%{python_sitelib}/testpath/
|
2018-01-20 10:27:18 +00:00
|
|
|
%{python_sitelib}/testpath-%{version}-py*.egg-info
|
2015-11-18 21:34:06 +00:00
|
|
|
|
|
|
|
%changelog
|