From 4f86cc0d5263a30879a23381b4041d81f4246dc4 Mon Sep 17 00:00:00 2001 From: zhang-liang-pengkun Date: Mon, 6 Nov 2023 15:40:01 +0800 Subject: [PATCH] Specify python_requires to prevent installation on Python 3 Signed-off-by: zhang-liang-pengkun --- ...equires-to-prevent-installation-on-P.patch | 25 +++++++++++++++++++ python-futures.spec | 6 ++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 0002-Specify-python_requires-to-prevent-installation-on-P.patch 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 0000000..f4bdbb0 --- /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 51f2434..b760fdc 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) -- Gitee