14
0
forked from pool/python-zhon

Accepting request 862858 from home:pgajdos:python

- use %pytest macro

OBS-URL: https://build.opensuse.org/request/show/862858
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zhon?expand=0&rev=5
This commit is contained in:
2021-01-13 13:19:43 +00:00
committed by Git OBS Bridge
parent 2c36b7a968
commit bd60843cbb
2 changed files with 10 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 13 11:01:50 UTC 2021 - pgajdos@suse.com
- use %pytest macro
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Aug 29 14:58:47 UTC 2019 - Jan Engelhardt <jengelh@inai.de> Thu Aug 29 14:58:47 UTC 2019 - Jan Engelhardt <jengelh@inai.de>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-zhon # spec file for package python-zhon
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -23,13 +23,13 @@ Release: 0
Summary: Constants used in Chinese text processing Summary: Constants used in Chinese text processing
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://github.com/tsroten/zhon URL: https://github.com/tsroten/zhon
Source: https://github.com/tsroten/zhon/archive/v%{version}.tar.gz#/zhon-%{version}.tar.gz Source: https://github.com/tsroten/zhon/archive/v%{version}.tar.gz#/zhon-%{version}.tar.gz
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
%description %description
@@ -46,7 +46,8 @@ Zhon provides constants used in Chinese text processing.
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%python_exec setup.py test printf "[pytest]\npython_files = test-*.py\n" > pytest.ini
%pytest
%files %{python_files} %files %{python_files}
%doc AUTHORS.rst CHANGES.rst README.rst %doc AUTHORS.rst CHANGES.rst README.rst