From: @lb1107039128 Reviewed-by: @Charlie_li Signed-off-by: @Charlie_li
This commit is contained in:
commit
d4c6798025
38
0001-Add-python_requires-to-help-pip-34.patch
Normal file
38
0001-Add-python_requires-to-help-pip-34.patch
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
From 5b253c7cbef0249aca9532e5c2c1048302657e0c Mon Sep 17 00:00:00 2001
|
||||||
|
From: Hugo <hugovk@users.noreply.github.com>
|
||||||
|
Date: Wed, 5 Sep 2018 00:28:33 +0300
|
||||||
|
Subject: [PATCH] Add python_requires to help pip (#34)
|
||||||
|
|
||||||
|
---
|
||||||
|
README.rst | 2 +-
|
||||||
|
setup.py | 1 +
|
||||||
|
2 files changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/README.rst b/README.rst
|
||||||
|
index 0874db2..7a115bd 100644
|
||||||
|
--- a/README.rst
|
||||||
|
+++ b/README.rst
|
||||||
|
@@ -18,7 +18,7 @@ Use **pip**:
|
||||||
|
|
||||||
|
$ pip install python-mimeparse
|
||||||
|
|
||||||
|
-It supports Python 2.7 - 3.5 and PyPy.
|
||||||
|
+It supports Python 2.7, 3.4+ and PyPy.
|
||||||
|
|
||||||
|
Functions
|
||||||
|
---------
|
||||||
|
diff --git a/setup.py b/setup.py
|
||||||
|
index 50a8aa8..d15529a 100755
|
||||||
|
--- a/setup.py
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -39,6 +39,7 @@ setup(
|
||||||
|
download_url=("https://github.com/dbtsai/python-mimeparse/tarball/" +
|
||||||
|
version),
|
||||||
|
keywords=["mime-type"],
|
||||||
|
+ python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
|
||||||
|
classifiers=[
|
||||||
|
"Programming Language :: Python",
|
||||||
|
"Programming Language :: Python :: 3",
|
||||||
|
--
|
||||||
|
2.42.0.windows.2
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: python-mimeparse
|
Name: python-mimeparse
|
||||||
Version: 1.6.0
|
Version: 1.6.0
|
||||||
Release: 9
|
Release: 10
|
||||||
Summary: Python module for handling mime-types.
|
Summary: Python module for handling mime-types.
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/dbtsai/python-mimeparse
|
URL: https://github.com/dbtsai/python-mimeparse
|
||||||
@ -8,6 +8,7 @@ Source0: https://files.pythonhosted.org/packages/source/p/python-mimepars
|
|||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
Patch0001: 0001-Add-license-to-the-setup.py-35.patch
|
Patch0001: 0001-Add-license-to-the-setup.py-35.patch
|
||||||
|
Patch0002: 0001-Add-python_requires-to-help-pip-34.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This module provides basic functions for handling mime-types.
|
This module provides basic functions for handling mime-types.
|
||||||
@ -58,6 +59,9 @@ It can handle matching mime-types against a list of media-ranges.
|
|||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Dec 26 2023 liubo <liubo1@xfusion.com> - 1.6.0-10
|
||||||
|
- Add python_requires to help pip (#34)
|
||||||
|
|
||||||
* Mon Nov 27 2023 liubo <liubo1@xfusion.com> - 1.6.0-9
|
* Mon Nov 27 2023 liubo <liubo1@xfusion.com> - 1.6.0-9
|
||||||
- Add license to the setup.py
|
- Add license to the setup.py
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user