forked from pool/python-hcloud
- Update to 1.17.0:
* Add suport for primary IPs - Add patch remove-mock.patch: * Use unittest.mock. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hcloud?expand=0&rev=5
This commit is contained in:
@@ -18,13 +18,14 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-hcloud
|
||||
Version: 1.16.0
|
||||
Version: 1.17.0
|
||||
Release: 0
|
||||
Summary: Hetzner Cloud Python library
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
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 setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -34,7 +35,6 @@ Requires: python-requests >= 2.20
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module future >= 0.17.1}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module python-dateutil >= 2.7.5}
|
||||
BuildRequires: %{python_module requests >= 2.20}
|
||||
@@ -45,7 +45,7 @@ BuildRequires: %{python_module requests >= 2.20}
|
||||
Official Hetzner Cloud Python library.
|
||||
|
||||
%prep
|
||||
%setup -q -n hcloud-%{version}
|
||||
%autosetup -p1 -n hcloud-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -55,8 +55,6 @@ Official Hetzner Cloud Python library.
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
# https://github.com/hetznercloud/hcloud-python/issues/151
|
||||
sed -i 's:import mock:import unittest.mock as mock:' tests/*.py tests/*/*.py
|
||||
export LANG=en_US.UTF-8
|
||||
%pytest tests/unit/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user