15
0

Accepting request 708168 from devel:languages:python

- Switch to multibuild to avoid build cycle

- run the testsuite

OBS-URL: https://build.opensuse.org/request/show/708168
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-incremental?expand=0&rev=3
This commit is contained in:
2019-06-18 12:47:43 +00:00
committed by Git OBS Bridge
3 changed files with 39 additions and 3 deletions

3
_multibuild Normal file
View File

@@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu Jun 6 15:38:34 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Switch to multibuild to avoid build cycle
-------------------------------------------------------------------
Wed Jun 5 06:14:13 UTC 2019 - pgajdos@suse.com
- run the testsuite
-------------------------------------------------------------------
Tue Dec 4 12:49:17 UTC 2018 - Matej Cepl <mcepl@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-incremental
#
# 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
@@ -17,7 +17,15 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-incremental
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
Name: python-incremental%{psuffix}
Version: 17.5.0
Release: 0
Summary: Library that versions your Python projects
@@ -26,10 +34,16 @@ Group: Development/Languages/Python
URL: https://github.com/twisted/incremental
Source: https://files.pythonhosted.org/packages/source/i/incremental/incremental-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Suggests: %{python_module Twisted >= 16.4.0}
Suggests: %{python_module click >= 6.0}
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module Twisted >= 16.4.0}
BuildRequires: %{python_module click >= 6.0}
BuildRequires: %{python_module pytest}
%endif
%python_subpackages
%description
@@ -39,15 +53,24 @@ Incremental is a small library that versions your Python projects.
%setup -q -n incremental-%{version}
%build
%python_build
%install
%if !%{with test}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if %{with test}
%check
%pytest
%endif
%if !%{with test}
%files %{python_files}
%license LICENSE
%doc NEWS.rst README.rst
%{python_sitelib}/*
%endif
%changelog