From 7b463e539e526433abf5cfc0c7c75928f550e8fabce3afbc7b9eaff2f408541b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 9 Feb 2021 15:37:23 +0000 Subject: [PATCH] Accepting request 870570 from home:mcalabkova:branches:devel:languages:python - Get rid of %ifpython3 - Launch some tests OBS-URL: https://build.opensuse.org/request/show/870570 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-termstyle?expand=0&rev=18 --- python-termstyle.changes | 6 ++++++ python-termstyle.spec | 19 ++++++------------- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/python-termstyle.changes b/python-termstyle.changes index ac444a6..1b46145 100644 --- a/python-termstyle.changes +++ b/python-termstyle.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Feb 9 14:49:26 UTC 2021 - Markéta Machová + +- Get rid of %ifpython3 +- Launch some tests + ------------------------------------------------------------------- Fri Oct 18 09:41:48 UTC 2019 - Sebastian Wagner diff --git a/python-termstyle.spec b/python-termstyle.spec index 75d64f8..04905a2 100644 --- a/python-termstyle.spec +++ b/python-termstyle.spec @@ -1,7 +1,7 @@ # # spec file for package python-termstyle # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -34,10 +34,8 @@ BuildArch: noarch Obsoletes: %{oldpython}-python-termstyle < %{version} Provides: %{oldpython}-python-termstyle = %{version} %endif -%ifpython3 -Provides: python3-python-termstyle = %{version} -Obsoletes: python3-python-termstyle < %{version} -%endif +Provides: python-python-termstyle = %{version} +Obsoletes: python-python-termstyle < %{version} %python_subpackages %description @@ -56,14 +54,9 @@ sed -i '1s/^#!.*//' termstyle.py %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -#%%check -#export LANG=C.UTF-8 -#%%ifpython2 -#python2 setup.py test -s test2 -#%%endif -#%%ifpython3 -#python3 setup.py test -s test3 -#%%endif +%check +export LANG=C.UTF-8 +PYTHONPATH=. %python_exec -c 'from termstyle import *; print(green("unicod\xe9!"))' %files %{python_files} %doc README.rst