2016-02-26 13:56:57 +00:00
|
|
|
#
|
2016-03-29 22:34:31 +00:00
|
|
|
# spec file for package python-python-jenkins
|
2016-02-26 13:56:57 +00:00
|
|
|
#
|
2020-03-20 12:27:12 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2016-02-26 13:56:57 +00:00
|
|
|
# Copyright (c) 2014 Thomas Bechtold <thomasbechtold@jpberlin.de>
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-11 15:09:12 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-02-26 13:56:57 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-09-25 12:39:34 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2016-02-26 13:56:57 +00:00
|
|
|
Name: python-python-jenkins
|
2020-03-20 12:27:12 +00:00
|
|
|
Version: 1.7.0
|
2016-02-26 13:56:57 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Python bindings for the remote Jenkins API
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Development/Languages/Python
|
2020-03-20 12:27:12 +00:00
|
|
|
URL: https://opendev.org/jjb/python-jenkins
|
2018-07-18 11:32:20 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/python-jenkins/python-jenkins-%{version}.tar.gz
|
2019-05-14 18:56:51 +00:00
|
|
|
BuildRequires: %{python_module cmd2}
|
2018-09-04 17:58:39 +00:00
|
|
|
BuildRequires: %{python_module mock}
|
|
|
|
BuildRequires: %{python_module multi_key_dict}
|
2020-03-20 12:27:12 +00:00
|
|
|
BuildRequires: %{python_module pbr >= 0.8.2}
|
2019-05-14 18:56:51 +00:00
|
|
|
BuildRequires: %{python_module requests-mock >= 1.4}
|
2018-09-04 17:58:39 +00:00
|
|
|
BuildRequires: %{python_module requests}
|
2019-05-14 18:56:51 +00:00
|
|
|
BuildRequires: %{python_module stestr >= 2.0}
|
2018-09-04 17:58:39 +00:00
|
|
|
BuildRequires: %{python_module testscenarios}
|
2019-05-14 18:56:51 +00:00
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pkgconfig
|
2018-07-18 11:32:20 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-05-14 18:56:51 +00:00
|
|
|
BuildRequires: pkgconfig(krb5-gssapi)
|
2016-02-26 13:56:57 +00:00
|
|
|
Requires: python-multi_key_dict
|
2018-09-04 17:58:39 +00:00
|
|
|
Requires: python-requests
|
2016-05-17 12:50:35 +00:00
|
|
|
Requires: python-setuptools
|
2016-02-26 13:56:57 +00:00
|
|
|
Requires: python-six >= 1.3.0
|
|
|
|
Provides: python-jenkins = %{version}
|
2019-05-14 18:56:51 +00:00
|
|
|
Obsoletes: python-jenkins < %{version}
|
2018-07-18 11:32:20 +00:00
|
|
|
BuildArch: noarch
|
2017-09-25 12:39:34 +00:00
|
|
|
%python_subpackages
|
2016-02-26 13:56:57 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides Python bindings for the Jenkins Remote
|
2019-05-14 18:56:51 +00:00
|
|
|
API. It currently supports management of:
|
2016-02-26 13:56:57 +00:00
|
|
|
* Project configuration
|
|
|
|
* Build control
|
|
|
|
* Slave node configuration
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n python-jenkins-%{version}
|
|
|
|
|
|
|
|
%build
|
2017-09-25 12:39:34 +00:00
|
|
|
%python_build
|
2016-02-26 13:56:57 +00:00
|
|
|
|
|
|
|
%install
|
2017-09-25 12:39:34 +00:00
|
|
|
%python_install
|
2016-02-26 13:56:57 +00:00
|
|
|
|
2018-09-04 17:58:39 +00:00
|
|
|
%check
|
2019-05-14 18:56:51 +00:00
|
|
|
%python_exec -m stestr.cli run --black-regex 'test_get_view_jobs_raise_HTTPError'
|
2018-09-04 17:58:39 +00:00
|
|
|
|
2017-09-25 12:39:34 +00:00
|
|
|
%files %{python_files}
|
2018-07-18 11:32:20 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc README.rst
|
2016-02-26 13:56:57 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|