Sync from SUSE:SLFO:Main python-azuremetadata revision 1143ee3365d91dc21d3c87499d067499

This commit is contained in:
Adrian Schröter 2024-10-03 15:14:53 +02:00
commit ac9d3f133a
4 changed files with 172 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

BIN
azuremetadata-5.1.5.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,67 @@
-------------------------------------------------------------------
Thu May 30 17:37:05 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Replace python3-azuremetadata with universal packaging
(https://trello.com/c/fupyiTVo/168-python3-packages-in-factory).
- Rename to python-azuremetadata.
-------------------------------------------------------------------
Thu Jan 13 21:50:24 UTC 2022 - Robert Schweikert <rjschwei@suse.com>
- Version 5.1.5 (bsc#1194663)
+ Handle lsblk output format change. The json data now contains
"mountpoints" instead of "mountpoint"
-------------------------------------------------------------------
Wed Apr 21 17:20:35 UTC 2021 - Jesús Bermúdez Velázquez <jesusbv@suse.com>
- Version 5.1.4 (bsc#1184720, bsc#1172581)
+ Use versions endpoint to list the available versions
+ Add bypass proxy
+ Update way to check classic vms
-------------------------------------------------------------------
Fri Aug 21 13:45:31 UTC 2020 - Robert Schweikert <rjschwei@suse.com>
- Fix provides directive (bsc#1175609, bsc#1175610)
+ The provides directive must set a version or update does not work
as expected
-------------------------------------------------------------------
Fri Aug 21 13:45:31 UTC 2020 - Robert Schweikert <rjschwei@suse.com>
- Fix provides directive (bsc#1175609, bsc#1175610)
+ The provides directive must set a version or update does not work
as expected
-------------------------------------------------------------------
Mon Aug 3 20:44:15 UTC 2020 - Robert Schweikert <rjschwei@suse.com>
- Update to version 5.1.2 (bsc#1173357, bsc#1174847)
+ Detect when the VM is running in ASM (Azure Classic) and handle the
condition to generate the data we are interested in without requiring
access to the full IMDS available only in ARM instances.
- From version 5.1.1 (bsc#1173238, bsc#1173240)
+ Add --listapis and --api latest support
-------------------------------------------------------------------
Mon Apr 27 14:51:02 UTC 2020 - Ivan Kapelyukhin <ikapelyukhin@suse.com>
- Version 5.1.0
- Produce well-formed JSON and XML output when multiple filters
are specified (bsc#1170598, bsc#1170599)
-------------------------------------------------------------------
Tue Apr 21 04:24:27 UTC 2020 - Ivan Kapelyukhin <ikapelyukhin@suse.com>
- Version 5.0.1
- Use lsblk for root device detection (bsc#1169921)
-------------------------------------------------------------------
Tue Mar 31 10:45:22 UTC 2020 - Ivan Kapelyukhin <ikapelyukhin@suse.com>
- Version 5.0.0
- Support new Azure metadata API (bsc#1164818, bsc#1164819)
- Automatically detect root device (bsc#1158698, bsc#1158707)

79
python-azuremetadata.spec Normal file
View File

@ -0,0 +1,79 @@
#
# spec file for package python-azuremetadata
#
# 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}
%define upstream_name azuremetadata
Name: python-azuremetadata
Version: 5.1.5
Release: 0
Summary: Python module for collecting instance metadata from Azure
License: GPL-3.0-or-later
Group: System/Management
URL: https://github.com/SUSE-Enceladus/azuremetadata
Source0: %{upstream_name}-%{version}.tar.bz2
Requires: python
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Recommends: util-linux
Conflicts: regionServiceClientConfigAzure <= 0.0.4
Conflicts: regionServiceClientConfigSAPAzure <= 1.0.1
# Packaged renamed in SLE15
Provides: azuremetadata = %{version}
Obsoletes: azuremetadata < 5.0.0
Provides: python-azuremetadata = %{version}
Obsoletes: python3-azuremetadata < %{version}
BuildArch: noarch
Requires(post): update-alternatives
Requires(postun): update-alternatives
%python_subpackages
%description
A module for collecting instance metadata from Microsoft Azure.
%prep
%autosetup -p1 -n python3-%{upstream_name}-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
install -d -m 755 %{buildroot}/%{_mandir}/man1
install -m 644 man/man1/azuremetadata.1 %{buildroot}/%{_mandir}/man1
%python_clone -a %{buildroot}%{_bindir}/%{upstream_name}
%python_clone -a %{buildroot}%{_mandir}/man1/azuremetadata.1
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative azuremetadata azuremetadata.1%{?ext_man}
%postun
%python_uninstall_alternative azuremetadata
%files %{python_files}
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/%{upstream_name}
%{python_sitelib}/%{upstream_name}
%{python_sitelib}/%{upstream_name}-%{version}*-info
%python_alternative %{_mandir}/man1/%{upstream_name}.1%{?ext_man}
%changelog