2013-10-21 07:53:33 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-jenkinsapi
|
|
|
|
#
|
2020-04-16 18:14:17 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2013-10-21 07:53:33 +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-02-05 05:14:55 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-07-13 13:05:07 +00:00
|
|
|
#
|
2013-10-21 07:53:33 +00:00
|
|
|
|
|
|
|
|
2019-02-05 05:14:55 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2013-10-21 07:53:33 +00:00
|
|
|
Name: python-jenkinsapi
|
2020-04-16 18:14:17 +00:00
|
|
|
Version: 0.3.11
|
2013-10-21 07:53:33 +00:00
|
|
|
Release: 0
|
2019-02-05 13:48:25 +00:00
|
|
|
Summary: A Python API for accessing resources on a Jenkins continuous integration server
|
2014-07-13 13:05:07 +00:00
|
|
|
License: MIT
|
2013-10-21 07:53:33 +00:00
|
|
|
Group: Development/Languages/Python
|
2020-04-16 18:14:17 +00:00
|
|
|
URL: https://github.com/salimfadhley/jenkinsapi
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/j/jenkinsapi/jenkinsapi-%{version}.tar.gz
|
2019-02-05 05:14:55 +00:00
|
|
|
BuildRequires: %{python_module pbr}
|
|
|
|
BuildRequires: %{python_module pytz}
|
|
|
|
BuildRequires: %{python_module requests}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2015-05-07 12:03:41 +00:00
|
|
|
Requires: python-pytz >= 2014.4
|
|
|
|
Requires: python-requests >= 2.3.0
|
2020-04-16 18:14:17 +00:00
|
|
|
Requires: python-six >= 1.10.0
|
2013-10-21 07:53:33 +00:00
|
|
|
BuildArch: noarch
|
2020-04-16 18:14:17 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module astroid >= 1.4.8}
|
|
|
|
BuildRequires: %{python_module mock}
|
|
|
|
BuildRequires: %{python_module pytest-mock}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module requests-kerberos}
|
|
|
|
# /SECTION
|
2019-02-05 05:14:55 +00:00
|
|
|
%python_subpackages
|
2013-10-21 07:53:33 +00:00
|
|
|
|
|
|
|
%description
|
2019-02-05 13:48:25 +00:00
|
|
|
Jenkins is a continuous integration system.
|
2013-10-21 07:53:33 +00:00
|
|
|
|
2019-02-05 13:48:25 +00:00
|
|
|
Jenkins (and its predecessor Hudson) are projects for automating
|
|
|
|
common development tasks (e.g. unit testing, production batches), but
|
|
|
|
they are somewhat Java-centric. The designers have provided a REST
|
|
|
|
interface. This library wraps up that interface as more conventional
|
|
|
|
Python objects.
|
2013-10-21 07:53:33 +00:00
|
|
|
|
2019-02-05 13:48:25 +00:00
|
|
|
This library can help to:
|
2013-10-21 07:53:33 +00:00
|
|
|
|
|
|
|
* Query the test-results of a completed build
|
|
|
|
* Get a objects representing the latest builds of a job
|
|
|
|
* Search for artefacts by simple criteria
|
|
|
|
* Block until jobs are complete
|
|
|
|
* Install artefacts to custom-specified directory structures
|
2019-02-05 13:48:25 +00:00
|
|
|
|
|
|
|
and has
|
|
|
|
|
2013-10-21 07:53:33 +00:00
|
|
|
* username/password auth support for jenkins instances with auth turned on
|
|
|
|
* Ability to search for builds by subversion revision
|
|
|
|
* Ability to add/remove/query Jenkins slaves
|
|
|
|
* Ability to add/remove/modify Jenkins views
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n jenkinsapi-%{version}
|
|
|
|
|
|
|
|
%build
|
2019-02-05 05:14:55 +00:00
|
|
|
%python_build
|
2013-10-21 07:53:33 +00:00
|
|
|
|
|
|
|
%install
|
2019-02-05 05:14:55 +00:00
|
|
|
%python_install
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/jenkins_invoke
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/jenkinsapi_version
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2013-10-21 07:53:33 +00:00
|
|
|
|
2019-02-05 05:14:55 +00:00
|
|
|
%post
|
|
|
|
%{python_install_alternative jenkins_invoke jenkinsapi_version}
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative jenkins_invoke
|
|
|
|
|
2020-04-16 18:14:17 +00:00
|
|
|
%check
|
2020-04-17 06:55:06 +00:00
|
|
|
# jenkinsapi_tests/unittests/test_view.py
|
2020-04-16 18:14:17 +00:00
|
|
|
# E fixture '_view_poll' not found
|
2020-04-17 06:55:06 +00:00
|
|
|
# jddenkinsapi_tests/unittests/test_plugins.py
|
2020-04-16 18:14:17 +00:00
|
|
|
# E ConnectionError: HTTPSConnectionPool(host='updates.jenkins.io...
|
2020-04-17 06:55:06 +00:00
|
|
|
%pytest jenkinsapi_tests/unittests jenkinsapi_tests/test_utils -k 'not (test_view or test_plugins)'
|
2020-04-16 18:14:17 +00:00
|
|
|
|
2019-02-05 05:14:55 +00:00
|
|
|
%files %{python_files}
|
2013-10-21 07:53:33 +00:00
|
|
|
%doc README.rst
|
2019-02-05 05:14:55 +00:00
|
|
|
%license license.txt
|
|
|
|
%python_alternative %{_bindir}/jenkins_invoke
|
|
|
|
%python_alternative %{_bindir}/jenkinsapi_version
|
2013-10-21 07:53:33 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|