2013-03-15 14:32:50 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-testresources
|
|
|
|
#
|
2024-05-08 06:37:44 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2013-03-15 14:32:50 +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.
|
|
|
|
|
2019-10-14 14:45:29 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-04-03 09:15:22 +00:00
|
|
|
#
|
2013-03-15 14:32:50 +00:00
|
|
|
|
|
|
|
|
2023-04-21 13:25:44 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2013-03-15 14:32:50 +00:00
|
|
|
Name: python-testresources
|
2016-11-14 14:15:39 +00:00
|
|
|
Version: 2.0.1
|
2013-03-15 14:32:50 +00:00
|
|
|
Release: 0
|
2018-08-08 12:31:22 +00:00
|
|
|
Summary: A pyunit extension for managing expensive test resources
|
2018-08-07 10:26:44 +00:00
|
|
|
License: (Apache-2.0 OR BSD-3-Clause) AND GPL-2.0-or-later
|
|
|
|
URL: https://github.com/testing-cabal/testresources
|
2017-04-16 08:45:32 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/t/testresources/testresources-%{version}.tar.gz
|
2018-08-07 10:33:41 +00:00
|
|
|
Patch0: testresources-flaky-tests.patch
|
2023-08-16 02:47:48 +00:00
|
|
|
# PATCH-FIX-UPSTREAM gh#testing-cabal/testresources#15
|
|
|
|
Patch1: use-correct-assertions.patch
|
2017-04-16 08:45:32 +00:00
|
|
|
BuildRequires: %{python_module fixtures}
|
|
|
|
BuildRequires: %{python_module pbr}
|
2023-08-16 02:47:48 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2017-04-16 08:45:32 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module testtools}
|
2023-08-16 02:47:48 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2017-04-16 08:45:32 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-pbr
|
2013-03-15 14:32:50 +00:00
|
|
|
BuildArch: noarch
|
2017-04-16 08:45:32 +00:00
|
|
|
%python_subpackages
|
2013-03-15 14:32:50 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
testresources: extensions to python unittest to allow declarative use
|
|
|
|
of resources by test cases.
|
|
|
|
|
|
|
|
%prep
|
2023-08-16 02:47:48 +00:00
|
|
|
%autosetup -p1 -n testresources-%{version}
|
2013-03-15 14:32:50 +00:00
|
|
|
|
|
|
|
%build
|
2023-08-16 02:47:48 +00:00
|
|
|
%pyproject_wheel
|
2013-03-15 14:32:50 +00:00
|
|
|
|
|
|
|
%install
|
2023-08-16 02:47:48 +00:00
|
|
|
%pyproject_install
|
2019-10-14 14:45:29 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2013-03-15 14:32:50 +00:00
|
|
|
|
|
|
|
%check
|
2024-05-08 06:37:44 +00:00
|
|
|
%pyunittest
|
2013-03-15 14:32:50 +00:00
|
|
|
|
2017-04-16 08:45:32 +00:00
|
|
|
%files %{python_files}
|
2018-08-07 10:26:44 +00:00
|
|
|
%license BSD Apache-2.0 COPYING
|
2016-11-14 14:15:39 +00:00
|
|
|
%doc README.rst
|
2017-04-16 08:45:32 +00:00
|
|
|
%{python_sitelib}/testresources
|
2023-08-16 02:47:48 +00:00
|
|
|
%{python_sitelib}/testresources-%{version}.dist-info
|
2013-03-15 14:32:50 +00:00
|
|
|
|
|
|
|
%changelog
|