From 6f10a137b21054a7af77d4349030660f5d78f7e964f6db3c85bf98d7338a1b9e Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 30 Apr 2022 09:26:48 +0000 Subject: [PATCH] - Enable tests - Clean up the spec file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-keycloak?expand=0&rev=2 --- python-python-keycloak.changes | 6 ++++++ python-python-keycloak.spec | 18 +++++++++++++----- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/python-python-keycloak.changes b/python-python-keycloak.changes index 0289d6c..d8924d0 100644 --- a/python-python-keycloak.changes +++ b/python-python-keycloak.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Apr 30 09:26:19 UTC 2022 - Matej Cepl + +- Enable tests +- Clean up the spec file + ------------------------------------------------------------------- Thu Apr 21 12:50:55 UTC 2022 - Michael Ströder diff --git a/python-python-keycloak.spec b/python-python-keycloak.spec index 7d7d8c3..45be6cd 100644 --- a/python-python-keycloak.spec +++ b/python-python-keycloak.spec @@ -1,5 +1,5 @@ # -# spec file for package python-python-keycloak +# spec file # # Copyright (c) 2022 SUSE LLC # @@ -28,7 +28,11 @@ Group: Development/Languages/Python URL: https://github.com/marcospereirampj/python-keycloak Source: https://files.pythonhosted.org/packages/source/p/python-keycloak/%{modname}-%{version}.tar.gz BuildRequires: %{python_module base} +BuildRequires: %{python_module httmock} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module python-jose} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-python-jose >= 1.4.0 @@ -41,18 +45,22 @@ BuildArch: noarch Python package providing access to the Keycloak API %prep -%setup -q -n %{modname}-%{version} +%autosetup -p1 -n %{modname}-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %fdupes %{buildroot} +%check +%pyunittest discover -v + %files %{python_files} %doc README.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/keycloak +%{python_sitelib}/python_keycloak-%{version}*-info %changelog