python-tqdm/python-tqdm.spec

85 lines
2.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-tqdm
#
# Copyright (c) 2018 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Accepting request 610151 from home:TheBlackCat:branches:devel:languages:python - update to version 4.23.3 * suppress warning * update .github things - update to version 4.23.2 * minor import syntax fix #496 * re-fix nested overlaps #477 * update documentation and examples * code tidy and abstraction - update to version 4.23.1 * fix AttributeErrors (#546) > pos on initialisation (#323, #510 -> #544) > fp on write() (#383) * fix py34 CI * update documentation - update to version 4.23.0 * Fix disable=True whereiterable has no len() and is not None (#539) * Add ncols to specify tqdm_notebook bar width (#276 -> #292) * allow custom pandas total (#364 -> #535) * Add progress_apply for pandas.(Series|DataFrame).(rolling|expanding) (#530 -> #537) * unit tests, pep8 tidy * postfix non-dict documentation note - update to version 4.22.0 * allow direct non-string assignment to postfix member (lists, dicts, etc) (#382 -> #534) * documentation updates * unit tests - update to version 4.21.0 * fix #532 write() with manual position > more robust free position finding * add TqdmWarning base class * fix GUI __del__() > add TqdmExperimentalWarning * add, tidy & fix unit tests * documentation > wiki release notes > update contributors > fix 7zx example - update to version 4.20.0 * pandas wrapper: remove *args and add better total handling (#244, #299, #322, #366 -> #524) * document windows unicode know issues (#454) * suppress RuntimeError: Set changed size during iteration -> TqdmSynchronisationWarning - update to version 4.19.9: * fix monitor thread termination and update tests - Add support_pandas_23_groupby.patch * Fix for pandas 0.23.0 support * See: https://github.com/tqdm/tqdm/pull/554 OBS-URL: https://build.opensuse.org/request/show/610151 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tqdm?expand=0&rev=21
2018-05-17 19:38:43 +00:00
%define oldpython python
Name: python-tqdm
Version: 4.28.1
Release: 0
Summary: An extensible progress meter
License: MPL-2.0 AND MIT
Group: Development/Languages/Python
URL: https://github.com/tqdm/tqdm
Source: https://files.pythonhosted.org/packages/source/t/tqdm/tqdm-%{version}.tar.gz
BuildRequires: %{python_module rpm-macros}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module jupyter_ipython}
BuildRequires: %{python_module jupyter_ipywidgets}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pandas}
# /SECTION
%python_subpackages
%description
tqdm lets you output a progress meter from within loops by wrapping
any iterable with "tqdm(iterable)".
tqdm's overhead is one order of magnitude less than python-progressbar
and does not require ncurses.
%prep
%setup -q -n tqdm-%{version}
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/tqdm
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%{python_install_alternative tqdm tqdm.1}
%postun
%python_uninstall_alternative tqdm
%check
%{python_expand export PATH="$PATH:%{buildroot}%{_bindir}"
export PYTHONPATH=%{buildroot}%{$python_sitelib}
nosetests-%%{$python_bin_suffix} --ignore-files="tests_perf\.py" --ignore-files="tests_synchronisation\.py" tqdm/
}
%files %{python_files}
Accepting request 610151 from home:TheBlackCat:branches:devel:languages:python - update to version 4.23.3 * suppress warning * update .github things - update to version 4.23.2 * minor import syntax fix #496 * re-fix nested overlaps #477 * update documentation and examples * code tidy and abstraction - update to version 4.23.1 * fix AttributeErrors (#546) > pos on initialisation (#323, #510 -> #544) > fp on write() (#383) * fix py34 CI * update documentation - update to version 4.23.0 * Fix disable=True whereiterable has no len() and is not None (#539) * Add ncols to specify tqdm_notebook bar width (#276 -> #292) * allow custom pandas total (#364 -> #535) * Add progress_apply for pandas.(Series|DataFrame).(rolling|expanding) (#530 -> #537) * unit tests, pep8 tidy * postfix non-dict documentation note - update to version 4.22.0 * allow direct non-string assignment to postfix member (lists, dicts, etc) (#382 -> #534) * documentation updates * unit tests - update to version 4.21.0 * fix #532 write() with manual position > more robust free position finding * add TqdmWarning base class * fix GUI __del__() > add TqdmExperimentalWarning * add, tidy & fix unit tests * documentation > wiki release notes > update contributors > fix 7zx example - update to version 4.20.0 * pandas wrapper: remove *args and add better total handling (#244, #299, #322, #366 -> #524) * document windows unicode know issues (#454) * suppress RuntimeError: Set changed size during iteration -> TqdmSynchronisationWarning - update to version 4.19.9: * fix monitor thread termination and update tests - Add support_pandas_23_groupby.patch * Fix for pandas 0.23.0 support * See: https://github.com/tqdm/tqdm/pull/554 OBS-URL: https://build.opensuse.org/request/show/610151 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tqdm?expand=0&rev=21
2018-05-17 19:38:43 +00:00
%doc README.rst logo.png
%doc examples/
%license LICENCE
%dir %{python_sitelib}/tqdm
%dir %{python_sitelib}/tqdm-%{version}-py%{py_ver}.egg-info
%{python_sitelib}/tqdm/*
%{python_sitelib}/tqdm-%{version}-py%{py_ver}.egg-info/*
%python_alternative %{_bindir}/tqdm
%changelog