forked from pool/python-hcloud
- update to 2.4.0 * server public ipv4 and ipv6 properties are nullable (#455) * drop support for python 3.8 (#458) * add equality checks to domains (#481) * support python 3.13 (#451) (4a514c7) * retry requests when the api gateway errors (#430) (f63ac8b) * retry requests when the api returns a conflict error (#430) (f63ac8b) * retry requests when the network timed outs (#430) (f63ac8b) * retry requests when the rate limit was reached (#430) (f63ac8b) * add exponential and constant backoff function (#416) (fe7ddf6) * deprecate ServerType included_traffic property (#423) (3d56ac5) * use exponential backoff when retrying requests (#417) (f306073) * add exponential and constant backoff function (#416) (fe7ddf6) * deprecate ServerType included_traffic property (#423) (3d56ac5) * use exponential backoff when retrying requests (#417) (f306073) * add `trace_id` to API exceptions ([#404](#404)) ([8375261](8375261)) * allow using a custom poll_interval function ([#403](#403)) ([93eb56b](93eb56b)) * make `Client.poll_interval` a private property ([#398](#398)) ([d5f24db](d5f24db)) * make `Client.request` `tries` a private argument ([#399](#399)) ([428ea7e](428ea7e)) * move `hcloud.__version__.VERSION` to `hcloud.__version__` ([#397](#397)) ([4e3f638](4e3f638)), closes [#234](#234) * remove deprecated `hcloud.hcloud` module ([#401](#401)) ([db37e63](db37e63)) * remove deprecated `include_wildcard_architecture` argument in `IsosClient.get_list` and `IsosClient.get_all` ([#402](#402)) ([6b977e2](6b977e2)) * return empty dict on empty responses in `Client.request` ([#400](#400)) ([9f46adb](9f46adb)) * return full rebuild response in `Client.servers.rebuild` ([#406](#406)) ([1970d84](1970d84)) OBS-URL: https://build.opensuse.org/request/show/1270267 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hcloud?expand=0&rev=17
66 lines
1.9 KiB
RPMSpec
66 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package python-hcloud
|
|
#
|
|
# Copyright (c) 2025 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/
|
|
#
|
|
|
|
|
|
Name: python-hcloud
|
|
Version: 2.4.0
|
|
Release: 0
|
|
Summary: Hetzner Cloud Python library
|
|
License: MIT
|
|
URL: https://github.com/hetznercloud/hcloud-python
|
|
Source: https://files.pythonhosted.org/packages/source/h/hcloud/hcloud-%{version}.tar.gz
|
|
BuildRequires: %{python_module base >= 3.8}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-python-dateutil >= 2.7.5
|
|
Requires: python-requests >= 2.20
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module python-dateutil >= 2.7.5}
|
|
BuildRequires: %{python_module requests >= 2.20}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
Official Hetzner Cloud Python library.
|
|
|
|
%prep
|
|
%autosetup -p1 -n hcloud-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
export LANG=en_US.UTF-8
|
|
%pytest tests/unit/
|
|
|
|
%files %{python_files}
|
|
%doc CHANGELOG.md README.md
|
|
%license LICENSE
|
|
%{python_sitelib}/hcloud
|
|
%{python_sitelib}/hcloud-%{version}.dist-info
|
|
|
|
%changelog
|