Markéta Machová
5915d45baf
- Update to version 4.55.2. * update tests * make pre-commit pytest quicker * switch pre-commit from make to python * update contributing guidelines * fix formatting * test dependencies * update .gitignore * fix (auto & manual) formatting * fix minor detected bugs - Updates for 4.55.1. * fix (Rolling|Expanding).progress_apply() on pandas==1.2.0 * minor documentation updates - Updates for 4.55.0. * fix ASCII notebook export * fix notebook gui-mode extra spaces * better ETA for early iterations * better ETA for wildly varying iteration rates * update submodule inheritance * tqdm.gui * tqdm.notebook * tqdm.contrib.telegram * tqdm.contrib.discord * documentation updates * misc code optimisations * add tests * misc code linting/formatting - Updates for 4.54.1. * drop py3.4 (no longer tested) - Updates for 4.54.0. * get rid of get_new - Updates for 4.53.0. * provide get_new() helper for mixed subclasses in nested mode * fix nested asyncio (#1074) * document async break hazard * add tests * drop py2.6/3.2/3.3 and distutils (no longer tested) * drop py2.6 * drop distutils in favour of setuptools/setup.cfg * use setuptools_scm * fix & update tests * fix & upgrade snap build * update CONTRIBUTING docs - Remove python-tqdm-remove-nose.patch, fixed. OBS-URL: https://build.opensuse.org/request/show/862153 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tqdm?expand=0&rev=88
127 lines
3.8 KiB
RPMSpec
127 lines
3.8 KiB
RPMSpec
#
|
|
# spec file for package python-tqdm
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
#
|
|
# 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-%{**}}
|
|
%define allpython python
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
%if "%{flavor}" == "test"
|
|
%define test 1
|
|
%define pkg_suffix -test
|
|
%bcond_without test
|
|
%else
|
|
%define pkg_suffix %{nil}
|
|
%bcond_with test
|
|
%endif
|
|
Name: python-tqdm%{pkg_suffix}
|
|
Version: 4.55.2
|
|
Release: 0
|
|
Summary: An extensible progress meter
|
|
License: MPL-2.0 AND MIT
|
|
URL: https://github.com/tqdm/tqdm
|
|
Source: https://files.pythonhosted.org/packages/source/t/tqdm/tqdm-%{version}.tar.gz
|
|
BuildRequires: %{python_module setuptools_scm}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module toml}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires(post): update-alternatives
|
|
Requires(postun): update-alternatives
|
|
BuildArch: noarch
|
|
%if %{with test}
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module numpy}
|
|
BuildRequires: %{python_module pandas}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module tqdm}
|
|
BuildRequires: python3-ipython
|
|
BuildRequires: python3-ipywidgets
|
|
# /SECTION
|
|
%endif
|
|
%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.
|
|
|
|
%package -n %allpython-tqdm-bash-completion
|
|
Summary: Bash completion for python-tqdm
|
|
Requires: bash-completion
|
|
Supplements: ((%{lua: print(string.sub(rpm.expand("%{python_module tqdm or}"),0,-4))}) and bash)
|
|
|
|
%description -n %allpython-tqdm-bash-completion
|
|
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.
|
|
|
|
This package provides the completion file for bash
|
|
|
|
|
|
%prep
|
|
%setup -q -n tqdm-%{version}
|
|
# remove bash shebang for completion script
|
|
sed -i '1 s/^#!.*/# bash completion for tqdm -*- shell-script -*-/' tqdm/completion.sh
|
|
chmod a-x tqdm/completion.sh
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%if !%{with test}
|
|
%python_install
|
|
%python_clone -a %{buildroot}%{_bindir}/tqdm
|
|
install -m 644 -D tqdm/completion.sh %{buildroot}%{_datadir}/bash-completion/completions/tqdm
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
%endif
|
|
|
|
%if !%{with test}
|
|
%post
|
|
%python_install_alternative tqdm
|
|
|
|
%postun
|
|
%python_uninstall_alternative tqdm
|
|
%endif
|
|
|
|
%if %{with test}
|
|
%check
|
|
# test_perf: flaky
|
|
# test_synchronisation: hangs
|
|
# test_main: todo upstream, TypeError: a bytes-like object is required, not 'str'
|
|
# also disabled in https://github.com/tqdm/tqdm/pull/1052
|
|
# and left upstream to solve
|
|
%pytest -k "not (tests_perf or tests_synchronisation or test_main)" tqdm/
|
|
%endif
|
|
|
|
%if !%{with test}
|
|
%files %{python_files}
|
|
%doc README.rst logo.png
|
|
%doc examples/
|
|
%license LICENCE
|
|
%{python_sitelib}/tqdm/
|
|
%{python_sitelib}/tqdm-%{version}*-info
|
|
%python_alternative %{_bindir}/tqdm
|
|
|
|
%files -n %allpython-tqdm-bash-completion
|
|
%license LICENCE
|
|
%{_datadir}/bash-completion/completions/tqdm
|
|
%endif
|
|
|
|
%changelog
|