15
0

Accepting request 806916 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/806916
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-transip?expand=0&rev=14
This commit is contained in:
Tomáš Chvátal
2020-05-18 13:01:45 +00:00
committed by Git OBS Bridge
parent 5883465eef
commit 818b76ca1e
2 changed files with 15 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 18 09:10:35 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Fri Apr 17 11:00:06 UTC 2020 - pgajdos@suse.com

View File

@@ -37,6 +37,8 @@ Requires: python-cryptography
Requires: python-requests
Requires: python-setuptools
Requires: python-suds-jurko
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
@@ -51,15 +53,22 @@ This library implements part of the TransIP API in Python.
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/transip-api
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# testConstructor needs network connection
%pytest -k 'not (test_constructor or testConstructor)'
%post
%python_install_alternative transip-api
%postun
%python_uninstall_alternative transip-api
%files %{python_files}
%license LICENSE
%{python_sitelib}/*
%python3_only %{_bindir}/transip-api
%python_alternative %{_bindir}/transip-api
%changelog