Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP6:Update
python3-tqdm
python3-tqdm.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python3-tqdm.spec of Package python3-tqdm
# # spec file for package python-tqdm # # Copyright (c) 2020 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 oldpython 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: python3-tqdm%{pkg_suffix} Version: 4.45.0 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 # PATCH-FIX-UPSTREAM CVE-2024-34062-CLI-injection.patch bsc#1223880 mcepl@suse.com # Improve eval safety of CLI to avoid the injection attack Patch0: CVE-2024-34062-CLI-injection.patch BuildRequires: %{python_module setuptools} BuildRequires: %{python_module pip} BuildRequires: %{python_module wheel} 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 nose} BuildRequires: %{python_module pytest} BuildRequires: %{python_module numpy} BuildRequires: %{python_module pandas} 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. %prep %autosetup -p1 -n tqdm-%{version} sed -i 's/-W=error//' setup.* %build %pyproject_wheel %install %if !%{with test} %pyproject_install %python_clone -a %{buildroot}%{_bindir}/tqdm %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif %if !%{with test} %post %{python_install_alternative tqdm tqdm.1} %postun %python_uninstall_alternative tqdm %endif %if %{with test} %check rm tqdm/tests/tests_perf.py tqdm/tests/tests_synchronisation.py %pytest tqdm/tests/tests_*.py %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 %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor