From 47f6592fe546fac5da486681a597f4d607d4a9d27b139def8896f170c739354b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 18 Oct 2018 09:16:57 +0000 Subject: [PATCH] - Respect the package requirements specified in setup.py * Adds many flask dep/requires - Run the tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-acitoolkit?expand=0&rev=2 --- python-acitoolkit.changes | 7 +++++++ python-acitoolkit.spec | 28 ++++++++++++++++++++++------ 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/python-acitoolkit.changes b/python-acitoolkit.changes index 0c389c7..4074473 100644 --- a/python-acitoolkit.changes +++ b/python-acitoolkit.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Oct 18 08:10:43 UTC 2018 - Tomáš Chvátal + +- Respect the package requirements specified in setup.py + * Adds many flask dep/requires +- Run the tests + ------------------------------------------------------------------- Tue Oct 16 15:43:21 UTC 2018 - sma@suse.com diff --git a/python-acitoolkit.spec b/python-acitoolkit.spec index 97c458f..946520e 100644 --- a/python-acitoolkit.spec +++ b/python-acitoolkit.spec @@ -25,13 +25,28 @@ Summary: Python library for programming ACI License: Apache-2.0 URL: http://github.com/datacenter/acitoolkit Source: https://github.com/datacenter/acitoolkit/archive/v%{version}.tar.gz -BuildRequires: fdupes +BuildRequires: %{python_module Flask-Bootstrap} +BuildRequires: %{python_module Flask-SQLAlchemy} +Requires: python-Flask-Bootstrap +BuildRequires: %{python_module Flask-WTF} +BuildRequires: %{python_module Flask} +BuildRequires: %{python_module GitPython} +BuildRequires: %{python_module PyMySQL} BuildRequires: %{python_module pbr} +BuildRequires: %{python_module requests} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module tabulate} +BuildRequires: %{python_module websocket-client} +BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-SQLAlchemy -Requires: python-click >= 3.3 -Requires: python-oslo.config >= 1.4.0 +Requires: python-Flask +Requires: python-Flask-SQLAlchemy +Requires: python-Flask-WTF +Requires: python-GitPython +Requires: python-PyMySQL +Requires: python-requests +Requires: python-tabulate +Requires: python-websocket-client BuildArch: noarch %python_subpackages @@ -40,7 +55,6 @@ Python Library for configuring APIC Controller. %prep %setup -q -n acitoolkit-%{version} -rm -f requirements.txt %build %python_build @@ -49,8 +63,10 @@ rm -f requirements.txt %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +%python_exec setup.py test + %files %{python_files} -%defattr(0644, root, root, -) %doc README.md %license LICENSE %{python_sitelib}/acitoolkit