Pass python_requires argument to setuptools
Signed-off-by: zhang-liang-pengkun <zhangliangpengkun@xfusion.com>
This commit is contained in:
parent
93d96cb022
commit
2a07055558
40
0002-Pass-python_requires-argument-to-setuptools-1208.patch
Normal file
40
0002-Pass-python_requires-argument-to-setuptools-1208.patch
Normal file
@ -0,0 +1,40 @@
|
||||
From f7171c45d7cfc1ce68baa7cd0afdaa94e28305a5 Mon Sep 17 00:00:00 2001
|
||||
From: Jon Dufresne <jon.dufresne@gmail.com>
|
||||
Date: Thu, 11 Jan 2018 12:34:18 -0800
|
||||
Subject: [PATCH] Pass python_requires argument to setuptools (#1208)
|
||||
|
||||
Helps pip decide what version of the library to install.
|
||||
|
||||
https://packaging.python.org/tutorials/distributing-packages/#python-requires
|
||||
|
||||
> If your project only runs on certain Python versions, setting the
|
||||
> python_requires argument to the appropriate PEP 440 version specifier
|
||||
> string will prevent pip from installing the project on other Python
|
||||
> versions.
|
||||
|
||||
https://setuptools.readthedocs.io/en/latest/setuptools.html#new-and-changed-setup-keywords
|
||||
|
||||
> python_requires
|
||||
>
|
||||
> A string corresponding to a version specifier (as defined in PEP 440)
|
||||
> for the Python version, used to specify the Requires-Python defined in
|
||||
> PEP 345.
|
||||
---
|
||||
setup.py | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 1625a3eb..d8db694e 100755
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -338,6 +338,7 @@ def main():
|
||||
)
|
||||
if setuptools is not None:
|
||||
kwargs.update(
|
||||
+ python_requires=">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
|
||||
test_suite="psutil.tests.get_suite",
|
||||
tests_require=tests_require,
|
||||
extras_require=extras_require,
|
||||
--
|
||||
2.39.0.windows.2
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
Name: python-psutil
|
||||
Version: 5.4.3
|
||||
Release: 10
|
||||
Release: 11
|
||||
Summary: A library for retrieving information on running processes and system utilization in Python
|
||||
License: BSD
|
||||
URL: https://github.com/giampaolo/psutil
|
||||
@ -9,6 +9,7 @@ Source0: https://github.com/giampaolo/psutil/archive/release-%{version}.t
|
||||
Patch0001: CVE-2019-18874-1.patch
|
||||
Patch0002: CVE-2019-18874-2.patch
|
||||
Patch0003: 0001-Fix-1354-Linux-disk_io_counters-fails-on-Linux-kerne.patch
|
||||
Patch0004: 0002-Pass-python_requires-argument-to-setuptools-1208.patch
|
||||
|
||||
BuildRequires: gcc python2-devel python3-devel procps-ng python2-mock python3-mock python2-ipaddress
|
||||
|
||||
@ -72,6 +73,9 @@ done
|
||||
%{python3_sitearch}/*.egg-info
|
||||
|
||||
%changelog
|
||||
* Thu Dec 21 2023 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 5.4.3-11
|
||||
- Pass python_requires argument to setuptools (#1208)
|
||||
|
||||
* Wed Oct 18 2023 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 5.4.3-10
|
||||
- Fix Linuxdisk io counters fails on Linux kernel
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user