From 169d63c7fcbad4b4b67af38ad3a3eea275405460 Mon Sep 17 00:00:00 2001 From: starlet-dx <15929766099@163.com> Date: Thu, 18 Aug 2022 14:09:39 +0800 Subject: [PATCH] fix install failed with python-requests-toolbelt --- ...ll-failed-with-python-requests-toolbelt.patch | 16 ++++++++++++++++ python-twine.spec | 10 +++++++--- 2 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 fix-install-failed-with-python-requests-toolbelt.patch diff --git a/fix-install-failed-with-python-requests-toolbelt.patch b/fix-install-failed-with-python-requests-toolbelt.patch new file mode 100644 index 0000000..581298b --- /dev/null +++ b/fix-install-failed-with-python-requests-toolbelt.patch @@ -0,0 +1,16 @@ +diff --git a/setup.cfg b/setup.cfg +index 5ae527a..f2b87f0 100644 +--- a/setup.cfg ++++ b/setup.cfg +@@ -37,7 +37,7 @@ install_requires = + pkginfo >= 1.4.2 + readme_renderer >= 21.0 + requests >= 2.20 +- requests-toolbelt >= 0.8.0, != 0.9.0 ++ requests-toolbelt >= 0.8.0 + setuptools >= 0.7.0 + tqdm >= 4.14 + importlib_metadata; python_version < "3.8" +-- +2.30.0 + diff --git a/python-twine.spec b/python-twine.spec index cc8b32b..4d93fb1 100644 --- a/python-twine.spec +++ b/python-twine.spec @@ -1,11 +1,12 @@ %global _empty_manifest_terminate_build 0 Name: python-twine Version: 3.2.0 -Release: 1 +Release: 2 Summary: Collection of utilities for publishing packages on PyPI -License: Apache Software License +License: Apache-2.0 URL: https://twine.readthedocs.io/ Source0: https://files.pythonhosted.org/packages/14/54/2fc5732362649f4b6f4c245c17dc5a526148b1fb2c3a89176a2ef950628a/twine-3.2.0.tar.gz +Patch0: fix-install-failed-with-python-requests-toolbelt.patch BuildArch: noarch Requires: python3-pkginfo @@ -49,7 +50,7 @@ See our documentation for a description of features, installation and usage instructions, and links to additional resources. %prep -%autosetup -n twine-3.2.0 +%autosetup -n twine-3.2.0 -p1 %build %py3_build @@ -89,5 +90,8 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Thu Aug 18 2022 yaoxin - 3.2.0-2 +- fix install failed with python-requests-toolbelt + * Wed Nov 18 2020 maminjie - 3.2.0-1 - package init -- Gitee