forked from pool/python-ara
* Added support for searching plays, tasks and hosts by name
* Added support for searching playbooks by label
* Fixed label representation to be consistent through different calls
* Reversed the default sort order for playbooks, plays, tasks and results
* Validate that settings.yaml (or ARA_SETTINGS) exists before launching (thank you @zswanson!)
* Template the default settings file without objects generated by python-box
* Added a default robots.txt to prevent crawling
* Added support for searching by label
* Improved the display of labels in the playbook list
* Added pagination support when browsing the playbook report list
* Use relative links for pagination (thank you @flowerysong !)
* Bumped included patternfly CSS from 2.21.5 to 2.56.3
* Provide sensible PATH defaults when virtualenvs are not used
* Added support for installing from Fedora packages
* Only run SQL migrations once when necessary
* Allow retries when attempting to run SQL migrations
* Ensure settings.yaml permissions are 0640
* Added "ara_api_secure_logging" variable to control behavior of sensitive tasks with no_log
* Properly default to IPv6 when no IPv4 is available
* Default gunicorn worker count based on number of available CPU cores
* Added support for deploying on EL8
* New Ansible plugins: ara_playbook and ara_api
* Improved consistency of stored task results (thank you @flowerysong!)
* Fix bad logic when determining if labels should be updated
* Added support for not saving files based on patterns (thank you @LaurentDumont!)
* Added support for specifying default playbook labels
* 1.4 introduces a new SQL migration to ensure labels are unique. If upgrading
from a previous version, you will need to run SQL migrations with ``ara-manage migrate``.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ara?expand=0&rev=11
100 lines
2.9 KiB
RPMSpec
100 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package python-ara
|
|
#
|
|
# Copyright (c) 2020 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
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-ara
|
|
Version: 1.4.0
|
|
Release: 0
|
|
Summary: ARA Records Ansible
|
|
License: GPL-3.0-or-later
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/ansible-community/ara
|
|
Source: https://files.pythonhosted.org/packages/source/a/ara/ara-%{version}.tar.gz
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module pbr}
|
|
BuildRequires: %{python_module setuptools}
|
|
%if %{with test}
|
|
BuildRequires: %{python_module Django >= 2.1.5}
|
|
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
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-pbr >= 2.0.0
|
|
Requires: python-requests >= 2.14.2
|
|
Recommends: python-Django >= 2.1.5
|
|
Recommends: python-django-cors-headers
|
|
Recommends: python-django-filter
|
|
Recommends: python-djangorestframework >= 3.9.1
|
|
Recommends: python-dynaconf
|
|
Recommends: python-whitenoise
|
|
BuildArch: noarch
|
|
|
|
%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_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
%endif
|
|
|
|
%check
|
|
%if %{with test}
|
|
ara-manage test ara
|
|
%endif
|
|
|
|
%if !%{with test}
|
|
%files %{python_files}
|
|
%doc README.rst
|
|
%license LICENSE
|
|
%python3_only %{_bindir}/ara-manage
|
|
%{python_sitelib}/*
|
|
%endif
|
|
|
|
%changelog
|