Accepting request 672997 from home:mcepl:branches:devel:languages:python
- Switch to multibuild (with separate test) to avoid large dependencies on the main package. OBS-URL: https://build.opensuse.org/request/show/672997 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tqdm?expand=0&rev=37
This commit is contained in:
parent
794fe7d556
commit
bc9ff588ac
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Feb 9 13:37:08 CET 2019 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Switch to multibuild (with separate test) to avoid large
|
||||||
|
dependencies on the main package.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Dec 31 14:21:07 UTC 2018 - Thomas Bechtold <tbechtold@suse.com>
|
Mon Dec 31 14:21:07 UTC 2018 - Thomas Bechtold <tbechtold@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-tqdm
|
# spec file for package python-tqdm
|
||||||
#
|
#
|
||||||
# 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
|
# 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
|
||||||
@ -18,7 +18,18 @@
|
|||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define oldpython python
|
%define oldpython python
|
||||||
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
%if "%{flavor}" == "test"
|
||||||
|
%define test 1
|
||||||
|
%bcond_without test
|
||||||
|
%else
|
||||||
|
%bcond_with test
|
||||||
|
%endif
|
||||||
|
%if %{with test}
|
||||||
|
Name: python-tqdm-%{flavor}
|
||||||
|
%else
|
||||||
Name: python-tqdm
|
Name: python-tqdm
|
||||||
|
%endif
|
||||||
Version: 4.28.1
|
Version: 4.28.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: An extensible progress meter
|
Summary: An extensible progress meter
|
||||||
@ -33,6 +44,7 @@ BuildRequires: python-rpm-macros
|
|||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%if %{with test}
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module jupyter_ipython}
|
BuildRequires: %{python_module jupyter_ipython}
|
||||||
BuildRequires: %{python_module jupyter_ipywidgets}
|
BuildRequires: %{python_module jupyter_ipywidgets}
|
||||||
@ -40,6 +52,7 @@ BuildRequires: %{python_module nose}
|
|||||||
BuildRequires: %{python_module numpy}
|
BuildRequires: %{python_module numpy}
|
||||||
BuildRequires: %{python_module pandas}
|
BuildRequires: %{python_module pandas}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -66,11 +79,14 @@ and does not require ncurses.
|
|||||||
%python_uninstall_alternative tqdm
|
%python_uninstall_alternative tqdm
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if %{with test}
|
||||||
%{python_expand export PATH="$PATH:%{buildroot}%{_bindir}"
|
%{python_expand export PATH="$PATH:%{buildroot}%{_bindir}"
|
||||||
export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
||||||
nosetests-%%{$python_bin_suffix} --ignore-files="tests_perf\.py" --ignore-files="tests_synchronisation\.py" tqdm/
|
nosetests-%%{$python_bin_suffix} --ignore-files="tests_perf\.py" --ignore-files="tests_synchronisation\.py" tqdm/
|
||||||
}
|
}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if ! %{with test}
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst logo.png
|
%doc README.rst logo.png
|
||||||
%doc examples/
|
%doc examples/
|
||||||
@ -80,5 +96,6 @@ nosetests-%%{$python_bin_suffix} --ignore-files="tests_perf\.py" --ignore-files=
|
|||||||
%{python_sitelib}/tqdm/*
|
%{python_sitelib}/tqdm/*
|
||||||
%{python_sitelib}/tqdm-%{version}-py%{py_ver}.egg-info/*
|
%{python_sitelib}/tqdm-%{version}-py%{py_ver}.egg-info/*
|
||||||
%python_alternative %{_bindir}/tqdm
|
%python_alternative %{_bindir}/tqdm
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user