diff --git a/0002-Specify-python_requires-to-prevent-installation-on-P.patch b/0002-Specify-python_requires-to-prevent-installation-on-P.patch new file mode 100644 index 0000000000000000000000000000000000000000..f4bdbb0e82820ca7c6f66d3ea2813a4c099d7a23 --- /dev/null +++ b/0002-Specify-python_requires-to-prevent-installation-on-P.patch @@ -0,0 +1,25 @@ +From d0393ad626d25622927bb0ed47d35ddb2f6cd321 Mon Sep 17 00:00:00 2001 +From: Eli Schwartz +Date: Fri, 27 Oct 2017 18:07:12 -0400 +Subject: [PATCH] Specify python_requires to prevent installation on Python 3 + (#67) + +--- + setup.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/setup.py b/setup.py +index ea0c022..eb43091 100755 +--- a/setup.py ++++ b/setup.py +@@ -23,6 +23,7 @@ setup(name='futures', + maintainer_email='alex.gronholm+pypi@nextday.fi', + url='https://github.com/agronholm/pythonfutures', + packages=['concurrent', 'concurrent.futures'], ++ python_requires='>=2.6, <3', + license='PSF', + classifiers=['License :: OSI Approved :: Python Software Foundation License', + 'Development Status :: 5 - Production/Stable', +-- +2.39.0.windows.2 + diff --git a/python-futures.spec b/python-futures.spec index 51f24348e17a1b4399e592dcab2f8c88eb583f74..b760fdc611173ff85fa789d3c91bed42dc9d7d8f 100644 --- a/python-futures.spec +++ b/python-futures.spec @@ -1,11 +1,12 @@ Name: python-futures Version: 3.1.1 -Release: 6 +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 @@ -40,6 +41,9 @@ The concurrent.futures module provides a high-level interface for asynchronously %{python2_sitelib}/futures-*.egg-info* %changelog +* Thu Nov 02 2023 zhangliangpengkun - 3.1.1-7 +- Specify python_requires to prevent installation on Python 3 + * Fri Oct 13 2023 zhangliangpengkun - 3.1.1-6 - fix Backport `thread_name_prefix` from upstream (#64)