Specify python_requires to prevent installation on Python 3

Signed-off-by: zhang-liang-pengkun <zhangliangpengkun@xfusion.com>
This commit is contained in:
zhang-liang-pengkun 2023-11-06 15:40:01 +08:00
parent 32e4116844
commit 4f86cc0d52
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From d0393ad626d25622927bb0ed47d35ddb2f6cd321 Mon Sep 17 00:00:00 2001
From: Eli Schwartz <eschwartz93@gmail.com>
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

View File

@ -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<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)