Sync from SUSE:SLFO:Main python3-gcemetadata revision cb012fb289077123f5243e4839eff7c1

This commit is contained in:
Adrian Schröter 2024-05-03 23:43:26 +02:00
commit 93ba5bc203
4 changed files with 161 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
gcemetadata-1.0.4.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,72 @@
-------------------------------------------------------------------
Mon Jun 22 11:37:33 UTC 2020 - Robert Schweikert <rjschwei@suse.com>
- Update to version 1.0.4 (bsc#1173136)
+ Fix typo, missing "=" for "identity" option in processed command
line options causes mis-identification of instance as missing identity
data access
-------------------------------------------------------------------
Fri Jun 5 18:46:02 UTC 2020 - Robert Schweikert <rjschwei@suse.com>
- Include in SLE 12 (jsc#PM-1900)
-------------------------------------------------------------------
Wed Jun 5 22:01:52 UTC 2019 - Robert Schweikert <rjschwei@suse.com>
- Update to version 1.0.3 (bsc#1134510)
+ Handle the condition where the identity data of the instance may
not be accessible from the metadata server and provide proper
error messaging
- From 1.0.2
+ Avoid traceback when not running in GCE, by testing access to the
metdata server first before performing othre operations
-------------------------------------------------------------------
Sun Jul 29 10:26:18 UTC 2018 - jengelh@inai.de
- Use noun phrase in summary.
-------------------------------------------------------------------
Tue Jun 19 21:14:21 UTC 2018 - rjschwei@suse.com
- Update to version 1.0.1 (bsc#1097505)
+ Support instances with multiple Nics
-------------------------------------------------------------------
Fri Nov 17 14:16:33 UTC 2017 - rjschwei@suse.com
- Update to version 1.0.0
+ Port to Python 3
-------------------------------------------------------------------
Wed Aug 23 23:24:23 UTC 2017 - rjschwei@suse.com
- Update to version 0.3.2 (bsc#1053695, bsc#1053695)
+ Implement new feature to generate license verification token
+ Add man page
- From 0.3.1 (bsc#1053687)
+ The --identity argument must accept a value and the value is required
- From 0.3.0
+ Properly handle overlapping enpoint names
- From 0.2.2
+ Support writing data to a file and as XML snippets
-------------------------------------------------------------------
Tue Aug 15 09:14:31 UTC 2017 - rjschwei@suse.com
- Update to version 0.2.1 (bsc#1045148)
+ Set proper value for dict lookup to avoid traceback
-------------------------------------------------------------------
Fri Mar 13 18:18:11 UTC 2015 - rjschwei@suse.com
- Update to version 0.2.0
+ Implement query functionality for all options
-------------------------------------------------------------------
Tue Feb 17 17:39:40 UTC 2015 - rjschwei@suse.com
- Initial build, include in SLE 12 (FATE#318435)
+ Version 0.0.5

63
python3-gcemetadata.spec Normal file
View File

@ -0,0 +1,63 @@
#
# spec file for package python3-gcemetadata
#
# 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/
#
%define upstream_name gcemetadata
Name: python3-gcemetadata
Version: 1.0.4
Release: 0
Summary: Python module for collecting instance metadata from GCE
License: GPL-3.0-or-later
Group: System/Management
URL: https://github.com/SUSE/Enceladus
Source0: %{upstream_name}-%{version}.tar.bz2
Requires: python3
BuildRequires: python3-setuptools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
# Package renamed in SLE 12, do not remove Provides, Obsolete directives
# until after SLE 12 EOL
Provides: python-gcemetadata = %{version}
Obsoletes: python-gcemetadata < %{version}
%description
A module for collecting instance metadata from Google Compute Engine.
%prep
%setup -q -n %{upstream_name}-%{version}
%build
python3 setup.py build
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
install -d -m 755 %{buildroot}/%{_mandir}/man1
install -m 644 man/man1/gcemetadata.1 %{buildroot}/%{_mandir}/man1
gzip %{buildroot}/%{_mandir}/man1/gcemetadata.1
%files
%defattr(-,root,root,-)
%doc README.md
%license LICENSE
%{_mandir}/man*/*
%dir %{python3_sitelib}/%{upstream_name}
%dir %{python3_sitelib}/%{upstream_name}-%{version}-py%{py3_ver}.egg-info
%{_bindir}/*
%{python3_sitelib}/*
%changelog