Compare commits

2 Commits
1.1 ... main

4 changed files with 34 additions and 10 deletions

Binary file not shown.

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

Binary file not shown.

View File

@@ -1,3 +1,20 @@
-------------------------------------------------------------------
Fri May 23 12:08:31 UTC 2025 - Jesús Bermúdez Velázquez <jesus.bv@suse.com>
- Update to version 1.0.1
+ Fix infinite loop (bsc#1242064)
+ Fix bug in update infrastructure request (bsc#1242064)
-------------------------------------------------------------------
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> Fri Jan 31 16:18:33 UTC 2025 - Robert Schweikert <rjschwei@suse.com>
@@ -6,7 +23,7 @@ Fri Jan 31 16:18:33 UTC 2025 - Robert Schweikert <rjschwei@suse.com>
IP version for access the update servers IP version for access the update servers
+ Improve reliability of flavor detection. Try an update server multiple + Improve reliability of flavor detection. Try an update server multiple
times to get an answer, if we hit timeouts return the value flavor 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> 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/ # 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 Summary: Cloud Billing Flavour Check
Name: python-instance-billing-flavor-check Name: python-instance-billing-flavor-check
Version: 0.1.2 Version: 1.0.1
Release: 0 Release: 0
License: GPL-3.0 License: GPL-3.0
Group: Productivity/Networking/Web/Utilities Group: Productivity/Networking/Web/Utilities
URL: https://github.com/SUSE-Enceladus/instance-billing-flavor-check URL: https://github.com/SUSE-Enceladus/instance-billing-flavor-check
Source0: %{name}-%{version}.tar.gz Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: python3 Requires: %{pythons}
Requires: python3-lxml Requires: %{pythons}-lxml
Requires: python3-requests Requires: %{pythons}-requests
BuildRequires: python3-setuptools Requires: cloud-regionsrv-client >= 10.2.0
BuildRequires: %{pythons}-setuptools
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
%description %description