15
0
forked from pool/python-hcloud

- 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
This commit is contained in:
2023-09-01 01:44:36 +00:00
committed by Git OBS Bridge
parent 415ba4f7ff
commit cdce1061af
5 changed files with 45 additions and 251 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-hcloud
#
# Copyright (c) 2022 SUSE LLC
# 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
@@ -16,25 +16,23 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-hcloud
Version: 1.17.0
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
# PATCH-FIX-UPSTREAM gh#hetznercloud/hcloud-python#162
Patch0: remove-mock.patch
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-future >= 0.17.1
Requires: python-python-dateutil >= 2.7.5
Requires: python-requests >= 2.20
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module future >= 0.17.1}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-dateutil >= 2.7.5}
BuildRequires: %{python_module requests >= 2.20}
@@ -48,10 +46,10 @@ Official Hetzner Cloud Python library.
%autosetup -p1 -n hcloud-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -59,8 +57,9 @@ export LANG=en_US.UTF-8
%pytest tests/unit/
%files %{python_files}
%doc CHANGELOG.rst README.rst
%doc CHANGELOG.md README.md
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/hcloud
%{python_sitelib}/hcloud-%{version}.dist-info
%changelog