From f23b7ef8427fda628a5fe811d83b985519972e93 Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Wed, 8 Dec 2021 01:27:24 +0100 Subject: [PATCH] up to 1.22.21 - drop upperbounds of colorama/docutils as they seem to be kept forever by upstream... ie colorama PR is more than a year old now: https://github.com/aws/aws-cli/pull/5712 --- awscli-relax_deps.patch | 32 ++++++++++++++++++++++++++++++++ awscli.spec | 6 ++++-- 2 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 awscli-relax_deps.patch diff --git a/awscli-relax_deps.patch b/awscli-relax_deps.patch new file mode 100644 index 0000000..9ba2982 --- /dev/null +++ b/awscli-relax_deps.patch @@ -0,0 +1,32 @@ +diff --color -ur awscli-1.22.21.orig/setup.cfg awscli-1.22.21/setup.cfg +--- awscli-1.22.21.orig/setup.cfg 2021-12-06 20:07:59.946503200 +0100 ++++ awscli-1.22.21/setup.cfg 2021-12-08 01:22:38.979947800 +0100 +@@ -4,10 +4,10 @@ + [metadata] + requires_dist = + botocore==1.23.21 +- docutils>=0.10,<0.16 ++ docutils>=0.10 + s3transfer>=0.5.0,<0.6.0 + PyYAML>=3.10,<5.5 +- colorama>=0.2.5,<0.4.4 ++ colorama>=0.2.5 + rsa>=3.1.2,<4.8 + + [check-manifest] +diff --color -ur awscli-1.22.21.orig/setup.py awscli-1.22.21/setup.py +--- awscli-1.22.21.orig/setup.py 2021-12-06 20:07:58.000000000 +0100 ++++ awscli-1.22.21/setup.py 2021-12-08 01:22:34.143310251 +0100 +@@ -25,10 +25,10 @@ + + install_requires = [ + 'botocore==1.23.21', +- 'docutils>=0.10,<0.16', ++ 'docutils>=0.10', + 's3transfer>=0.5.0,<0.6.0', + 'PyYAML>=3.10,<5.5', +- 'colorama>=0.2.5,<0.4.4', ++ 'colorama>=0.2.5', + 'rsa>=3.1.2,<4.8', + ] + diff --git a/awscli.spec b/awscli.spec index e73c039..509c4d2 100644 --- a/awscli.spec +++ b/awscli.spec @@ -3,12 +3,13 @@ %define pypi_name awscli Summary: Universal Command Line Environment for AWS Name: awscli -Version: 1.20.40 +Version: 1.22.21 Release: 1 License: ASL 2.0 and MIT Group: Applications/Networking Source0: https://files.pythonhosted.org/packages/source/a/awscli/%{name}-%{version}.tar.gz -# Source0-md5: e1d0f2843de864d50bf3e59d23062f35 +# Source0-md5: 29cff22b58c2680140395de5c5ba3122 +Patch0: %{name}-relax_deps.patch URL: https://aws.amazon.com/cli/ BuildRequires: rpm-pythonprov BuildRequires: rpmbuild(macros) >= 1.719 @@ -39,6 +40,7 @@ Python 3 package for awscli. %prep %setup -q +%patch0 -p1 rm -r %{name}.egg-info -- 2.43.0