forked from pool/python-ara
- Update to 1.7.2
* When recording diffs, properly format and display the "prepared" key
for the modules that use it (apt, git, cli_config and others)
* Sorting task results by duration when browsing playbook results works once again
* Updated bootstrap css from 5.3.0 to 5.3.3
* Catch SIGINT and SIGTERM signals resulting in the interruption of playbooks to
set the status of the playbook to "expired" instead of keeping it running forever
unless expired with `ara playbook expire` from the CLI.
* Add support for UTF-8 encoded usernames and passwords
* Add .readthedocs.yaml to fix broken documentation builds
* Formally include ara as a dependency in order to include --help commands in the docs
* Added an introduction page
* Made dependency on ruamel.yaml explicit rather than implicit
* Update usage of logging.warn to logging.warning for
python 3.13
* Updated versions of Ansible tested in CI to Ansible 10 and ansible-core 2.17
OBS-URL: https://build.opensuse.org/request/show/1226211
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ara?expand=0&rev=34
113 lines
3.2 KiB
RPMSpec
113 lines
3.2 KiB
RPMSpec
#
|
|
# spec file for package python-ara
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
%if "%{flavor}" == "test"
|
|
%define psuffix -test
|
|
%bcond_without test
|
|
%else
|
|
%define psuffix %{nil}
|
|
%bcond_with test
|
|
%endif
|
|
%define skip_python2 1
|
|
# plugin for Ansible package
|
|
%define pythons python3
|
|
Name: python-ara
|
|
Version: 1.7.2
|
|
Release: 0
|
|
Summary: ARA Records Ansible
|
|
License: GPL-3.0-or-later
|
|
URL: https://github.com/ansible-community/ara
|
|
Source: https://files.pythonhosted.org/packages/source/a/ara/ara-%{version}.tar.gz
|
|
BuildRequires: %{python_module devel >= 3.8}
|
|
BuildRequires: %{python_module pbr}
|
|
BuildRequires: %{python_module setuptools_scm}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-cliff
|
|
Requires: python-pbr
|
|
Requires: python-requests >= 2.14.2
|
|
Requires(post): update-alternatives
|
|
Requires(postun): update-alternatives
|
|
Recommends: python-Django >= 3.2
|
|
Recommends: python-django-cors-headers
|
|
Recommends: python-django-filter
|
|
Recommends: python-djangorestframework >= 3.9.1
|
|
Recommends: python-dynaconf
|
|
Recommends: python-whitenoise
|
|
BuildArch: noarch
|
|
%if %{with test}
|
|
BuildRequires: %{python_module Django >= 3.2}
|
|
BuildRequires: %{python_module ara >= %{version}}
|
|
BuildRequires: %{python_module django-cors-headers}
|
|
BuildRequires: %{python_module django-filter}
|
|
BuildRequires: %{python_module django-health-check}
|
|
BuildRequires: %{python_module djangorestframework >= 3.9.1}
|
|
BuildRequires: %{python_module dynaconf}
|
|
BuildRequires: %{python_module factory_boy}
|
|
BuildRequires: %{python_module pyaml}
|
|
BuildRequires: %{python_module pygments}
|
|
BuildRequires: %{python_module tzlocal}
|
|
BuildRequires: %{python_module whitenoise}
|
|
%endif
|
|
%python_subpackages
|
|
|
|
%description
|
|
ARA saves playbook results to a local or remote database by using an
|
|
Ansible callback plugin and provides an API to integrate this data in
|
|
tools and interfaces.
|
|
|
|
%prep
|
|
%setup -q -n ara-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%if !%{with test}
|
|
%python_install
|
|
%python_clone -a %{buildroot}%{_bindir}/ara
|
|
%python_clone -a %{buildroot}%{_bindir}/ara-manage
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
%endif
|
|
|
|
%check
|
|
%if %{with test}
|
|
ara-manage test ara
|
|
%endif
|
|
|
|
%if !%{with test}
|
|
%post
|
|
%python_install_alternative ara
|
|
%python_install_alternative ara-manage
|
|
|
|
%postun
|
|
%python_uninstall_alternative ara
|
|
%python_uninstall_alternative ara-manage
|
|
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE
|
|
%python_alternative %{_bindir}/ara
|
|
%python_alternative %{_bindir}/ara-manage
|
|
%{python_sitelib}/ara-%{version}*-info
|
|
%{python_sitelib}/ara
|
|
%endif
|
|
|
|
%changelog
|