14
0

Accepting request 870615 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/870615
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-termstyle?expand=0&rev=7
This commit is contained in:
2021-02-09 20:17:43 +00:00
committed by Git OBS Bridge
2 changed files with 12 additions and 13 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Feb 9 14:49:26 UTC 2021 - Markéta Machová <mmachova@suse.com>
- Get rid of %ifpython3
- Launch some tests
-------------------------------------------------------------------
Fri Oct 18 09:41:48 UTC 2019 - Sebastian Wagner <sebix+novell.com@sebix.at>

View File

@@ -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