File python-click-threading.spec of Package python-click-threading
#
# spec file for package python-click-threading
#
# Copyright (c) 2025 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/
#
Name: python-click-threading
Version: 0.5.0
Release: 0
Summary: Multithreaded Click apps made easy
License: MIT
URL: https://github.com/click-contrib/click-threading
Source: https://files.pythonhosted.org/packages/source/c/click-threading/click-threading-%{version}.tar.gz
BuildRequires: %{python_module click >= 5.0}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-click >= 5.0
BuildArch: noarch
%if %{with python2}
BuildRequires: python-futures
%endif
%ifpython2
Requires: python-futures
%endif
%python_subpackages
%description
Utilities for multithreading in click <http://click.pocoo.org/>.
*This is rather experimental. See tests for usage for now.*
%prep
%setup -q -n click-threading-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG=en_US.UTF-8
%pytest tests
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/click[-_]threading
%{python_sitelib}/click[-_]threading-%{version}*-info
%changelog