2018-07-27 14:49:45 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-resultsdb_api
|
|
|
|
#
|
2022-11-07 08:33:12 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2018-07-27 14:49:45 +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.
|
|
|
|
|
2020-03-16 08:53:08 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-07-27 14:49:45 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
Name: python-resultsdb_api
|
2022-11-07 08:33:12 +00:00
|
|
|
Version: 2.1.5
|
2018-07-27 14:49:45 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Library for simplifying the communication with ResultsDB
|
2018-07-27 14:52:15 +00:00
|
|
|
License: GPL-2.0-or-later
|
2020-03-16 12:57:05 +00:00
|
|
|
URL: https://pagure.io/taskotron/resultsdb_api
|
2020-03-16 08:53:08 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/r/resultsdb_api/resultsdb_api-%{version}.tar.gz
|
2018-07-27 14:49:45 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2020-03-16 12:57:05 +00:00
|
|
|
Requires: python-requests >= 2.2.1
|
|
|
|
Requires: python-simplejson >= 3.5.3
|
2018-07-27 14:49:45 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
# SECTION test requirements
|
2020-03-16 12:57:05 +00:00
|
|
|
BuildRequires: %{python_module pytest >= 2.4.2}
|
|
|
|
BuildRequires: %{python_module requests >= 2.2.1}
|
|
|
|
BuildRequires: %{python_module simplejson >= 3.5.3}
|
2018-07-27 14:49:45 +00:00
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2018-07-27 14:52:15 +00:00
|
|
|
The ResultsDB API module provides a Python API for using ResultsDB's
|
|
|
|
JSON/REST interface in a more pythonic way. It has functions which match
|
|
|
|
the JSON/REST methods, but allow the common goodies as named parameters,
|
|
|
|
and parameters skipping.
|
|
|
|
|
2018-07-27 14:49:45 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n resultsdb_api-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
2020-03-16 12:57:05 +00:00
|
|
|
%check
|
2022-11-07 08:33:12 +00:00
|
|
|
%pytest --functional testing/
|
2020-03-16 12:57:05 +00:00
|
|
|
|
2018-07-27 14:49:45 +00:00
|
|
|
%files %{python_files}
|
2020-03-16 12:57:05 +00:00
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
2022-11-07 08:33:12 +00:00
|
|
|
%{python_sitelib}/resultsdb_api*
|
|
|
|
%pycache_only %{python_sitelib}/__pycache__/
|
2018-07-27 14:49:45 +00:00
|
|
|
|
|
|
|
%changelog
|