14
0
forked from pool/python-yappi

Accepting request 783254 from home:pgajdos:python

- version update to 1.2.3
  * no upstream changelog found

OBS-URL: https://build.opensuse.org/request/show/783254
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yappi?expand=0&rev=3
This commit is contained in:
Tomáš Chvátal
2020-03-10 10:04:41 +00:00
committed by Git OBS Bridge
parent 25b9f19617
commit a9538683c8
4 changed files with 19 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-yappi
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,20 +17,22 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-yappi
Version: 1.0
Version: 1.2.3
Release: 0
Summary: Yet Another Python Profiler
License: MIT
Group: Development/Languages/Python
Url: https://github.com/sumerc/yappi
URL: https://github.com/sumerc/yappi
Source: https://files.pythonhosted.org/packages/source/y/yappi/yappi-%{version}.tar.gz
Requires: python-setuptools
BuildRequires: %{python_module devel}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%python_subpackages
%description
@@ -46,8 +48,11 @@ export CFLAGS="%{optflags}"
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
%python_exec setup.py test
export PYTHONPATH="tests/"
export PATH="$PATH:%{buildroot}/%{_bindir}"
%pytest_arch
%files %{python_files}
%doc README.md