diff --git a/python-instance-billing-flavor-check-0.1.2.tar.gz b/python-instance-billing-flavor-check-0.1.2.tar.gz deleted file mode 100644 index 41b9451..0000000 --- a/python-instance-billing-flavor-check-0.1.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a5d99bd135cd7c40548b638008a3410b9e8f2155a10e6a519b60c6c044cdc322 -size 16101 diff --git a/python-instance-billing-flavor-check-1.0.0.tar.gz b/python-instance-billing-flavor-check-1.0.0.tar.gz new file mode 100644 index 0000000..3f32f08 --- /dev/null +++ b/python-instance-billing-flavor-check-1.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6beef9a9f22ec16855075fed116ba1300662f900d7fb58f224336130576abce2 +size 16180 diff --git a/python-instance-billing-flavor-check.changes b/python-instance-billing-flavor-check.changes index 1afd7e5..28c13c1 100644 --- a/python-instance-billing-flavor-check.changes +++ b/python-instance-billing-flavor-check.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Sat Feb 22 13:34:18 UTC 2025 - Robert Schweikert + +- 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 @@ -6,7 +16,7 @@ Fri Jan 31 16:18:33 UTC 2025 - Robert Schweikert 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 diff --git a/python-instance-billing-flavor-check.spec b/python-instance-billing-flavor-check.spec index 1625ee9..c4756dd 100644 --- a/python-instance-billing-flavor-check.spec +++ b/python-instance-billing-flavor-check.spec @@ -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