14
0
forked from pool/python-partd

Accepting request 707127 from home:pgajdos

- version update to 0.3.10
  * no upstream changelog
- use %pytest macro

OBS-URL: https://build.opensuse.org/request/show/707127
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-partd?expand=0&rev=8
This commit is contained in:
Tomáš Chvátal
2019-06-03 10:52:09 +00:00
committed by Git OBS Bridge
parent c6970738cc
commit 6b8fa6eeb7
4 changed files with 15 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-partd
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,11 +16,9 @@
#
%bcond_without tests
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-partd
Version: 0.3.8
Version: 0.3.10
Release: 0
Summary: Appendable key-value storage
License: BSD-3-Clause
@@ -32,9 +30,9 @@ BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module toolz}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with tests}
# SECTION test requirements
BuildRequires: %{python_module pytest}
%endif
# /SECTION
Requires: python-locket
Requires: python-toolz
Recommends: python-blosc
@@ -65,14 +63,8 @@ Partd excels at shuffling operations.
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with tests}
%check
pushd partd/tests
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
py.test-%{$python_bin_suffix}
}
popd
%endif
%pytest
%files %{python_files}
%defattr(-,root,root,-)