Sync from SUSE:SLFO:1.1 python-instance-billing-flavor-check revision db812bbe2099bcb4ea187f38ad9d40f6

This commit is contained in:
Adrian Schröter 2025-03-10 03:14:16 +01:00
parent 2042d2f4ca
commit 774189410e
4 changed files with 27 additions and 10 deletions

Binary file not shown.

BIN
python-instance-billing-flavor-check-1.0.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Sat Feb 22 13:34:18 UTC 2025 - Robert Schweikert <rjschwei@suse.com>
- Update to version 1.0.0 (jsc#PCT-531)
+ API incompatibility: The check_payg_byos function no longer exits, it now
returns a tuple of (flavor, exit_code). This makes the function reusable.
+ Update the build setup to work with the system interpreter of
upcoming SLE releases. SLE 12 stays with the Python 3.4 interpreter
and SLE 15 with the Python 3.6 interpreter.
-------------------------------------------------------------------
Fri Jan 31 16:18:33 UTC 2025 - Robert Schweikert <rjschwei@suse.com>
@ -6,7 +16,7 @@ Fri Jan 31 16:18:33 UTC 2025 - Robert Schweikert <rjschwei@suse.com>
IP version for access the update servers
+ Improve reliability of flavor detection. Try an update server multiple
times to get an answer, if we hit timeouts return the value flavor
value from a cahce file.
value from a cache file.
-------------------------------------------------------------------
Tue Jan 21 14:17:27 UTC 2025 - Robert Schweikert <rjschwei@suse.com>

View File

@ -14,21 +14,28 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define skip_python2 1
%if 0%{?suse_version} >= 1600
%define pythons %{primary_python}
%else
%define pythons python3
%endif
%global _sitelibdir %{%{pythons}_sitelib}
Summary: Cloud Billing Flavour Check
Name: python-instance-billing-flavor-check
Version: 0.1.2
Version: 1.0.0
Release: 0
License: GPL-3.0
Group: Productivity/Networking/Web/Utilities
URL: https://github.com/SUSE-Enceladus/instance-billing-flavor-check
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: python3
Requires: python3-lxml
Requires: python3-requests
BuildRequires: python3-setuptools
Requires: %{pythons}
Requires: %{pythons}-lxml
Requires: %{pythons}-requests
Requires: cloud-regionsrv-client >= 10.2.0
BuildRequires: %{pythons}-setuptools
BuildRequires: python-rpm-macros
%description