2015-11-18 22:34:06 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-testpath
|
|
|
|
#
|
2023-05-03 16:50:46 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2015-11-18 22:34:06 +01: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.
|
|
|
|
|
2019-04-11 17:07:17 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-11-18 22:34:06 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-10-20 18:26:00 +02:00
|
|
|
%{?!python_module:%define python_module() python3-%{**}}
|
|
|
|
%define skip_python2 1
|
2023-05-03 16:50:46 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2015-11-18 22:34:06 +01:00
|
|
|
Name: python-testpath
|
2022-02-27 06:34:07 +01:00
|
|
|
Version: 0.6.0
|
2015-11-18 22:34:06 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Test utilities for code working with files and commands
|
2021-10-20 18:26:00 +02:00
|
|
|
License: BSD-3-Clause OR LGPL-2.1-or-later
|
2015-11-18 22:34:06 +01:00
|
|
|
Group: Development/Languages/Python
|
2021-10-20 18:26:00 +02:00
|
|
|
URL: https://github.com/jupyter/testpath
|
2018-01-20 11:27:18 +01:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/t/testpath/testpath-%{version}.tar.gz
|
2022-02-27 06:34:54 +01:00
|
|
|
BuildRequires: %{python_module flit-core}
|
2022-02-27 06:34:07 +01:00
|
|
|
BuildRequires: %{python_module pip}
|
2019-04-11 17:07:17 +02:00
|
|
|
BuildRequires: %{python_module pytest}
|
2017-04-28 09:13:14 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2015-11-18 22:34:06 +01:00
|
|
|
BuildArch: noarch
|
2017-04-28 09:13:14 +02:00
|
|
|
%python_subpackages
|
2015-11-18 22:34:06 +01: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 11:27:18 +01:00
|
|
|
%setup -q -n testpath-%{version}
|
2015-11-18 22:34:06 +01:00
|
|
|
|
2019-04-11 17:07:17 +02:00
|
|
|
rm testpath/*.exe
|
|
|
|
|
2015-11-18 22:34:06 +01:00
|
|
|
%build
|
2022-02-27 06:34:07 +01:00
|
|
|
%pyproject_wheel
|
2015-11-18 22:34:06 +01:00
|
|
|
|
|
|
|
%install
|
2022-02-27 06:34:07 +01:00
|
|
|
%pyproject_install
|
2018-01-20 11:27:18 +01:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2015-11-18 22:34:06 +01:00
|
|
|
|
2019-04-11 17:07:17 +02:00
|
|
|
%check
|
2021-10-20 18:26:00 +02:00
|
|
|
%pytest
|
2019-04-11 17:07:17 +02:00
|
|
|
|
2017-04-28 09:13:14 +02:00
|
|
|
%files %{python_files}
|
2018-10-01 08:18:33 +02:00
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|
2017-04-28 09:13:14 +02:00
|
|
|
%{python_sitelib}/testpath/
|
2021-10-20 18:26:00 +02:00
|
|
|
%{python_sitelib}/testpath-%{version}*-info
|
2015-11-18 22:34:06 +01:00
|
|
|
|
|
|
|
%changelog
|