forked from pool/azure-cli-core
Accepting request 838784 from Cloud:Tools
- New upstream release + Version 2.12.1 + For detailed information about changes see the HISTORY.rst file provided with this package - Add patch to disable automatic check for updates (boo#1175289) + acc_disable-update-check.patch (forwarded request 838781 from glaubitz) OBS-URL: https://build.opensuse.org/request/show/838784 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/azure-cli-core?expand=0&rev=18
This commit is contained in:
commit
b698688e3f
42
acc_disable-update-check.patch
Normal file
42
acc_disable-update-check.patch
Normal file
@ -0,0 +1,42 @@
|
||||
diff -Nru azure-cli-core-2.12.1.orig/azure/cli/core/util.py azure-cli-core-2.12.1/azure/cli/core/util.py
|
||||
--- azure-cli-core-2.12.1.orig/azure/cli/core/util.py 2020-09-28 10:37:30.000000000 +0200
|
||||
+++ azure-cli-core-2.12.1/azure/cli/core/util.py 2020-09-30 14:51:49.700308773 +0200
|
||||
@@ -331,37 +331,7 @@
|
||||
|
||||
|
||||
def show_updates_available(new_line_before=False, new_line_after=False):
|
||||
- from azure.cli.core._session import VERSIONS
|
||||
- import datetime
|
||||
-
|
||||
- if VERSIONS[_VERSION_CHECK_TIME]:
|
||||
- version_check_time = datetime.datetime.strptime(VERSIONS[_VERSION_CHECK_TIME], '%Y-%m-%d %H:%M:%S.%f')
|
||||
- if datetime.datetime.now() < version_check_time + datetime.timedelta(days=7):
|
||||
- return
|
||||
-
|
||||
- _, updates_available_components = get_az_version_string(use_cache=True)
|
||||
- if updates_available_components:
|
||||
- if new_line_before:
|
||||
- logger.warning("")
|
||||
- show_updates(updates_available_components)
|
||||
- if new_line_after:
|
||||
- logger.warning("")
|
||||
- VERSIONS[_VERSION_CHECK_TIME] = str(datetime.datetime.now())
|
||||
-
|
||||
-
|
||||
-def show_updates(updates_available_components):
|
||||
- if updates_available_components is None:
|
||||
- logger.warning('Unable to check if your CLI is up-to-date. Check your internet connection.')
|
||||
- elif updates_available_components: # pylint: disable=too-many-nested-blocks
|
||||
- if in_cloud_console():
|
||||
- warning_msg = 'You have %i updates available. They will be updated with the next build of Cloud Shell.'
|
||||
- else:
|
||||
- warning_msg = "You have %i updates available."
|
||||
- if CLI_PACKAGE_NAME in updates_available_components:
|
||||
- warning_msg = "{} Consider updating your CLI installation with 'az upgrade'".format(warning_msg)
|
||||
- logger.warning(warning_msg, len(updates_available_components))
|
||||
- else:
|
||||
- print('Your CLI is up-to-date.')
|
||||
+ return
|
||||
|
||||
|
||||
def get_json_object(json_string):
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c81fc3fe245b183f7fb249f9dc46f1c3269d1621387c34a628c200d05c6593e2
|
||||
size 136889
|
3
azure-cli-core-2.12.1.tar.gz
Normal file
3
azure-cli-core-2.12.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b2282e6ae3d366c8d0728dc38c13cd958df053a0e554b8b2c883b809dc664e6a
|
||||
size 146622
|
@ -1,10 +1,38 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 30 12:53:01 UTC 2020 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- New upstream release
|
||||
+ Version 2.12.1
|
||||
+ For detailed information about changes see the
|
||||
HISTORY.rst file provided with this package
|
||||
- Add patch to disable automatic check for updates (boo#1175289)
|
||||
+ acc_disable-update-check.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 22 10:47:00 UTC 2020 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- New upstream release (bsc#1176784, bsc#1176785)
|
||||
+ Version 2.12.0
|
||||
+ For detailed information about changes see the
|
||||
HISTORY.rst file provided with this package
|
||||
- Update Requires from setup.py
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 31 12:10:04 UTC 2020 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- New upstream release
|
||||
+ Version 2.11.1
|
||||
+ For detailed information about changes see the
|
||||
HISTORY.rst file provided with this package
|
||||
- Update Requires from setup.py
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 18 21:25:40 UTC 2020 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- New upstream release (boo#1175289)
|
||||
+ Version 2.10.1
|
||||
+ For detailed information about changes see the
|
||||
HISTORY.txt file provided with this package
|
||||
HISTORY.rst file provided with this package
|
||||
- Update Requires from setup.py
|
||||
|
||||
-------------------------------------------------------------------
|
||||
@ -13,7 +41,7 @@ Mon Jul 20 14:42:00 UTC 2020 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.c
|
||||
- New upstream release
|
||||
+ Version 2.9.1
|
||||
+ For detailed information about changes see the
|
||||
HISTORY.txt file provided with this package
|
||||
HISTORY.rst file provided with this package
|
||||
- Update Requires from setup.py
|
||||
|
||||
-------------------------------------------------------------------
|
||||
@ -22,7 +50,7 @@ Wed Jun 17 16:19:20 UTC 2020 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.c
|
||||
- New upstream release
|
||||
+ Version 2.7.0
|
||||
+ For detailed information about changes see the
|
||||
HISTORY.txt file provided with this package
|
||||
HISTORY.rst file provided with this package
|
||||
- Update Requires from setup.py
|
||||
|
||||
-------------------------------------------------------------------
|
||||
@ -31,7 +59,7 @@ Thu May 7 07:46:57 UTC 2020 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.c
|
||||
- New upstream release
|
||||
+ Version 2.5.1
|
||||
+ For detailed information about changes see the
|
||||
HISTORY.txt file provided with this package
|
||||
HISTORY.rst file provided with this package
|
||||
- Update Requires from setup.py
|
||||
|
||||
-------------------------------------------------------------------
|
||||
@ -40,7 +68,7 @@ Thu Apr 2 09:32:24 UTC 2020 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.c
|
||||
- New upstream release
|
||||
+ Version 2.3.1
|
||||
+ For detailed information about changes see the
|
||||
HISTORY.txt file provided with this package
|
||||
HISTORY.rst file provided with this package
|
||||
- Update BuildRequires and Requires from setup.py
|
||||
|
||||
-------------------------------------------------------------------
|
||||
@ -49,7 +77,7 @@ Tue Mar 10 12:47:29 UTC 2020 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.c
|
||||
- New upstream release
|
||||
+ Version 2.2.0
|
||||
+ For detailed information about changes see the
|
||||
HISTORY.txt file provided with this package
|
||||
HISTORY.rst file provided with this package
|
||||
- Update Requires from setup.py
|
||||
|
||||
-------------------------------------------------------------------
|
||||
@ -58,7 +86,7 @@ Mon Feb 24 15:13:14 UTC 2020 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.c
|
||||
- New upstream release
|
||||
+ Version 2.1.0
|
||||
+ For detailed information about changes see the
|
||||
HISTORY.txt file provided with this package
|
||||
HISTORY.rst file provided with this package
|
||||
- Relax version dependency for python-humanfriendly in Requires
|
||||
- Update Requires from setup.py
|
||||
|
||||
@ -68,7 +96,7 @@ Thu Jan 16 14:33:52 UTC 2020 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.c
|
||||
- New upstream release
|
||||
+ Version 2.0.80
|
||||
+ For detailed information about changes see the
|
||||
HISTORY.txt file provided with this package
|
||||
HISTORY.rst file provided with this package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 7 10:52:54 UTC 2020 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
@ -76,7 +104,7 @@ Tue Jan 7 10:52:54 UTC 2020 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.c
|
||||
- New upstream release
|
||||
+ Version 2.0.79
|
||||
+ For detailed information about changes see the
|
||||
HISTORY.txt file provided with this package
|
||||
HISTORY.rst file provided with this package
|
||||
- Update Requires from setup.py
|
||||
|
||||
-------------------------------------------------------------------
|
||||
@ -85,7 +113,7 @@ Mon Jan 6 13:30:05 UTC 2020 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.c
|
||||
- New upstream release
|
||||
+ Version 2.0.78
|
||||
+ For detailed information about changes see the
|
||||
HISTORY.txt file provided with this package
|
||||
HISTORY.rst file provided with this package
|
||||
- Update Requires from setup.py
|
||||
|
||||
-------------------------------------------------------------------
|
||||
@ -94,7 +122,7 @@ Thu Nov 28 14:47:20 UTC 2019 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.c
|
||||
- New upstream release
|
||||
+ Version 2.0.77
|
||||
+ For detailed information about changes see the
|
||||
HISTORY.txt file provided with this package
|
||||
HISTORY.rst file provided with this package
|
||||
- Update Requires from setup.py
|
||||
|
||||
-------------------------------------------------------------------
|
||||
@ -103,7 +131,7 @@ Thu Oct 24 12:09:45 UTC 2019 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.c
|
||||
- New upstream release
|
||||
+ Version 2.0.75
|
||||
+ For detailed information about changes see the
|
||||
HISTORY.txt file provided with this package
|
||||
HISTORY.rst file provided with this package
|
||||
- Drop patch to support older versions of setuptools as
|
||||
SLE-12 is now shipping with a recent enough version
|
||||
+ acc_drop-compatible-releases-operator.patch
|
||||
@ -124,7 +152,7 @@ Tue May 21 09:47:09 UTC 2019 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.c
|
||||
- New upstream release
|
||||
+ Version 2.0.64
|
||||
+ For detailed information about changes see the
|
||||
HISTORY.txt file provided with this package
|
||||
HISTORY.rst file provided with this package
|
||||
- Add patch to drop compatible releases operator from setup.py,
|
||||
required for SLES12 as the setuptools version is too old
|
||||
+ acc_drop-compatible-releases-operator.patch
|
||||
@ -138,7 +166,7 @@ Tue Apr 16 14:08:23 UTC 2019 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.c
|
||||
- New upstream release
|
||||
+ Version 2.0.58
|
||||
+ For detailed information about changes see the
|
||||
HISTORY.txt file provided with this package
|
||||
HISTORY.rst file provided with this package
|
||||
- Bump minimum version for Python Azure SDK namespace
|
||||
packages to 3.0.0 in BuildRequires and Requires
|
||||
- Relax upper version for python-tabulate build dependency (boo#1125671)
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: azure-cli-core
|
||||
Version: 2.10.1
|
||||
Version: 2.12.1
|
||||
Release: 0
|
||||
Summary: Microsoft Azure CLI Core Module
|
||||
License: MIT
|
||||
@ -25,6 +25,7 @@ Group: System/Management
|
||||
URL: https://github.com/Azure/azure-cli
|
||||
Source: https://files.pythonhosted.org/packages/source/a/azure-cli-core/azure-cli-core-%{version}.tar.gz
|
||||
Source1: LICENSE.txt
|
||||
Patch0: acc_disable-update-check.patch
|
||||
BuildRequires: azure-cli-nspkg
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@ -32,7 +33,7 @@ BuildRequires: python3-azure-nspkg >= 3.0.0
|
||||
BuildRequires: python3-mock
|
||||
BuildRequires: python3-setuptools
|
||||
Requires: azure-cli-nspkg
|
||||
Requires: azure-cli-telemetry
|
||||
Requires: azure-cli-telemetry >= 1.0.6
|
||||
Requires: python3-PyJWT
|
||||
Requires: python3-PyYAML < 6.0
|
||||
Requires: python3-PyYAML >= 5.2
|
||||
@ -41,9 +42,9 @@ Requires: python3-adal >= 1.2.3
|
||||
Requires: python3-argcomplete < 2.0
|
||||
Requires: python3-argcomplete >= 1.8
|
||||
Requires: python3-azure-mgmt-core < 2.0.0
|
||||
Requires: python3-azure-mgmt-core >= 1.0.0
|
||||
Requires: python3-azure-mgmt-core >= 1.2.0
|
||||
Requires: python3-azure-mgmt-resource < 11.0.0
|
||||
Requires: python3-azure-mgmt-resource >= 10.1.0
|
||||
Requires: python3-azure-mgmt-resource >= 10.2.0
|
||||
Requires: python3-azure-nspkg >= 3.0.0
|
||||
Requires: python3-colorama >= 0.4.1
|
||||
Requires: python3-humanfriendly < 9.0
|
||||
@ -79,6 +80,7 @@ Microsoft Azure CLI Core Module
|
||||
|
||||
%prep
|
||||
%setup -q -n azure-cli-core-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
install -m 644 %{SOURCE1} %{_builddir}/azure-cli-core-%{version}
|
||||
|
Loading…
Reference in New Issue
Block a user