Johannes Kastl 2024-10-02 05:55:45 +00:00 committed by Git OBS Bridge
commit 6aaafed0c5
8 changed files with 195 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

4
_service Normal file
View File

@ -0,0 +1,4 @@
<services>
<service name="download_files" mode="manual">
</service>
</services>

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:263b5bc2fbe2ec0ab214558786cd2166e7b4126775b71b5a32e587f7d237e17c
size 376990

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a2fe258a09c7ba5f676157acd3d1b4c7c662951aa3a3b245b5e747e17b1fb71f
size 409203

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b827368d78191a4c54e9a3c389395dcbcc2ae138bd5cb721fe3b942dd5b83bad
size 407823

60
ansible-variables.changes Normal file
View File

@ -0,0 +1,60 @@
-------------------------------------------------------------------
Wed Oct 2 05:50:05 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- update to 0.8.0:
* ansible-core 2.18 (#97) (1ab8f5e)
-------------------------------------------------------------------
Sat Sep 21 18:09:41 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- update to 0.7.3:
* usage of uv for development and packaging(#81) (eca13a3)
- update to 0.7.2:
* migrate to release please v4 (#78) (e14c7b3)
- update to 0.7.1:
* deps: bump pypa/gh-action-pypi-publish from 1.8.14 to 1.10.1 (#75) (7f3c4ee)
-------------------------------------------------------------------
Fri May 31 13:11:07 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- update to 0.7.0:
Features
* support for ansible-core 2.17
-------------------------------------------------------------------
Fri Mar 15 22:02:24 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- update to 0.6.1:
* dependency updates
-------------------------------------------------------------------
Thu Nov 23 06:46:06 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
- update to 0.6.0:
Features:
* support for Python 3.12 and Ansible 2.16
-------------------------------------------------------------------
Fri Sep 8 04:40:19 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
- update to 0.5.1:
Bug Fixes
* passing undefined variable to --var will lead to Exception
([#30](https://github.com/hille721/ansible-variables/issues/30))
-------------------------------------------------------------------
Wed May 24 16:42:22 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
- Use noun phrase for descriptions; update descriptions altogether
to point out this is a tool (not a library or something else).
-------------------------------------------------------------------
Mon May 22 11:15:44 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
- remove python_subpackages macro
-------------------------------------------------------------------
Mon May 22 10:23:58 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
- new package ansible-variables: Keep track of Ansible host context
variables

98
ansible-variables.spec Normal file
View File

@ -0,0 +1,98 @@
#
# spec file for package ansible-variables
#
# 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/
#
%{?sle15_python_module_pythons}
%if 0%{?suse_version} < 1550
# Leap15, SLES15
%if %pythons == "python310"
%define ansible_python python310
%define ansible_python_executable python3.10
%define ansible_python_sitelib %python310_sitelib
%endif
%if %pythons == "python311"
%define ansible_python python311
%define ansible_python_executable python3.11
%define ansible_python_sitelib %python311_sitelib
%endif
%else
# Tumbleweed
%define pythons python3
%define ansible_python python3
%define ansible_python_executable python3
%define ansible_python_sitelib %python3_sitelib
%endif
Name: ansible-variables
Version: 0.8.0
Release: 0
Summary: Tool to show origin of Ansible host context variables
License: GPL-3.0-or-later
URL: https://github.com/hille721/ansible-variables
# the PyPI tarball does not contain all files required for the tests
Source: https://github.com/hille721/ansible-variables/archive/v%{version}/ansible-variables-%{version}.tar.gz#/ansible-variables-%{version}.tar.gz
BuildRequires: %{ansible_python}-pip
BuildRequires: %{ansible_python}-setuptools
BuildRequires: %{ansible_python}-wheel
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: ansible-core >= 2.12.0
BuildRequires: %{ansible_python}-pytest
BuildRequires: %{ansible_python}-rich
# /SECTION
BuildRequires: fdupes
Requires: %{ansible_python}-rich
Requires: ansible-core >= 2.12.0
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%description
The Ansible inventory is a framework for declaring variables in a
hierarchical manner. There a lot of different places where a variable
can be defined. ansible-variables displays where host context
variables originate from.
%prep
%autosetup -p1 -n ansible-variables-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/ansible-variables
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export PATH="%{buildroot}%{_bindir}:$PATH"
%pytest
%post
%python_install_alternative ansible-variables
%postun
%python_uninstall_alternative ansible-variables
%files
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/ansible-variables
%{ansible_python_sitelib}/ansible_variables
%{ansible_python_sitelib}/ansible_variables-%{version}.dist-info
%changelog