From dfb26a60aafe9ed60567f1f30eb69d4b207e479b64c7e3904bcb8bc40fa863a3 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 27 Oct 2020 10:44:11 +0000 Subject: [PATCH] Accepting request 844176 from home:bnavigator:branches:devel:languages:python - Kill dephell dependency OBS-URL: https://build.opensuse.org/request/show/844176 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gvm-tools?expand=0&rev=6 --- python-gvm-tools.changes | 5 +++++ python-gvm-tools.spec | 16 +++++++--------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/python-gvm-tools.changes b/python-gvm-tools.changes index 04cfa1f..90ed41b 100644 --- a/python-gvm-tools.changes +++ b/python-gvm-tools.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Oct 26 23:17:55 UTC 2020 - Benjamin Greiner + +- Kill dephell dependency + ------------------------------------------------------------------- Sun Oct 25 16:20:59 UTC 2020 - Martin Hauke diff --git a/python-gvm-tools.spec b/python-gvm-tools.spec index ec35480..5254e61 100644 --- a/python-gvm-tools.spec +++ b/python-gvm-tools.spec @@ -28,9 +28,9 @@ URL: https://github.com/greenbone/gvm-tools/ Source: https://github.com/greenbone/gvm-tools/archive/v%{version}.tar.gz#/gvm-tools-%{version}.tar.gz #Source98: https://github.com/greenbone/gvm-tools/releases/download/v%%{version}/v%%{version}.tar.gz.asc#/gvm-tools-%%{version}.tar.gz.sig #Source99: https://www.greenbone.net/GBCommunitySigningKey.asc#/gvm-tools.keyring -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry} BuildRequires: fdupes -BuildRequires: python-dephell-rpm-macros BuildRequires: python-rpm-macros Requires: python-python-gvm >= 1.4.0 BuildArch: noarch @@ -54,25 +54,22 @@ without programming in Python. %prep %setup -q -n gvm-tools-%{version} -%dephell_gensetup %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/gvm-cli %python_clone -a %{buildroot}%{_bindir}/gvm-pyshell %python_clone -a %{buildroot}%{_bindir}/gvm-script -# Remove tests from sitelib -%python_expand rm -rf %{buildroot}%{$python_sitelib}/tests %python_expand %fdupes %{buildroot}%{$python_sitelib} %post %python_install_alternative gvm-cli gvm-pyshell gvm-script %postun -%python_uninstall_alternative gvm-cli gvm-pyshell gvm-script +%python_uninstall_alternative gvm-cli %check %pytest @@ -83,6 +80,7 @@ without programming in Python. %python_alternative %{_bindir}/gvm-cli %python_alternative %{_bindir}/gvm-pyshell %python_alternative %{_bindir}/gvm-script -%{python_sitelib}/* +%{python_sitelib}/gvmtools +%{python_sitelib}/gvm_tools-%{version}*-info %changelog