# # spec file for package python-testpath # # Copyright (c) 2017 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 http://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-testpath Version: 0.3 Release: 0 Summary: Test utilities for code working with files and commands License: MIT Group: Development/Languages/Python Url: https://github.com/jupyter/testpath # We have to use this random url until predictable wheel urls are available Source0: https://pypi.python.org/packages/fe/53/301852a341e1f5cc82f9987d28595fb04ef2d9869a4efa2d379d207b2b77/testpath-%{version}-py2.py3-none-any.whl Source1: https://raw.githubusercontent.com/jupyter/testpath/%{version}/LICENSE Source2: https://raw.githubusercontent.com/jupyter/testpath/%{version}/README.rst BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: %{python_module devel} BuildRequires: %{python_module pip} BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages %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 cp %{SOURCE0} . cp %{SOURCE1} . cp %{SOURCE2} . %build # We don't do anything here %install %python_expand pip%{$python_bin_suffix} install --root %{buildroot} testpath-%{version}-py2.py3-none-any.whl %python_expand rm %{buildroot}%{$python_sitelib}/testpath/*.exe %files %{python_files} %defattr(-,root,root,-) %doc README.rst LICENSE %{python_sitelib}/testpath-%{version}.dist-info %{python_sitelib}/testpath/ %changelog