python-hcloud/python-hcloud.spec
Steve Kowalik cdce1061af - Update to 1.28.0:
* add load balancer target health status field
  * implement resource actions clients
  * missing long_description content_type in setup.py
  * add global request timeout option
  * reexport references in parent ressources modules
  * the package is now typed
  * allow omitting datacenter when creating a primary ip
  * invalid attribute in placement group
  * add repr method to domains
  * drop support for python 3.7
  * add details to raise exceptions
  * move hcloud.hcloud module to hcloud._client
  * revert remove python-dateutil dependency
  * handle Z timezone in ISO8601 datetime format
  * isos: invalid name for include_wildcard_architecture argument
  * network: add field expose_routes_to_vswitch
  * setup exception hierarchy
  * add deprecation field to ServerType
  * adjust label validation for max length of 63 characters
  * server_type: add field for included traffic
  * feat: add support for ARM APIs by @apricote
  * fix: remove unused future dependency by @apricote
  * Remove use of external mock module by @s-t-e-v-e-n-k
  * Add validation helper for Label Values/Keys by @LKaemmerling
- Switch to pyproject macros.
- Drop patch remove-mock.patch, included upstream.
- Stop using greedy globs in %files.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hcloud?expand=0&rev=7
2023-09-01 01:44:36 +00:00

66 lines
1.9 KiB
RPMSpec

#
# spec file for package python-hcloud
#
# Copyright (c) 2023 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: 1.28.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