python-futures/python-futures.spec
zhang-liang-pengkun 4f86cc0d52 Specify python_requires to prevent installation on Python 3
Signed-off-by: zhang-liang-pengkun <zhangliangpengkun@xfusion.com>
2023-11-06 15:40:01 +08:00

52 lines
1.8 KiB
RPMSpec

Name: python-futures
Version: 3.1.1
Release: 7
Summary: Backport of the concurrent.futures standard library module to Python 3.2
License: Python
URL: https://github.com/agronholm/pythonfutures
Source0: https://files.pythonhosted.org/packages/source/f/futures/futures-%{version}.tar.gz
Patch01: 0001-Backport-thread_name_prefix-from-upstream-64.patch
Patch02: 0002-Specify-python_requires-to-prevent-installation-on-P.patch
BuildRequires: python2-devel
BuildArch: noarch
%description
Provides a high-level interface for asynchronously executing callables.The asynchronous
execution can be performed with threads, using ThreadPoolExecutor, or separate processes,
using ProcessPoolExecutor. Both implement the same interface, which is defined by the
abstract Executor class.
%package -n python2-futures
Summary: Backport of the concurrent.futures standard library module to Python 3.2
%{?python_provide:%python_provide python2-futures}
Provides: python-futures = %{version}-%{release}
Obsoletes: python-futures < %{version}-%{release}
%description -n python2-futures
The concurrent.futures module provides a high-level interface for asynchronously executing callables.
%prep
%autosetup -n futures-%{version} -p1
%build
%{py2_build}
%install
%{py2_install}
%files -n python2-futures
%license LICENSE
%doc CHANGES
%{python2_sitelib}/concurrent
%{python2_sitelib}/futures-*.egg-info*
%changelog
* Thu Nov 02 2023 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 3.1.1-7
- Specify python_requires to prevent installation on Python 3
* Fri Oct 13 2023 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 3.1.1-6
- fix Backport `thread_name_prefix` from upstream (#64)
* Mon Oct 14 2019 Lijin Yang <yanglijin@huawei.com> - 3.1.1-5
- Package init