Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package azure-cli-telemetry for
openSUSE:Factory checked in at 2022-08-05 19:50:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/azure-cli-telemetry (Old)
and /work/SRC/openSUSE:Factory/.azure-cli-telemetry.new.1521 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "azure-cli-telemetry"
Fri Aug 5 19:50:46 2022 rev:7 rq:992770 version:1.0.7
Changes:
--------
--- /work/SRC/openSUSE:Factory/azure-cli-telemetry/azure-cli-telemetry.changes
2022-06-28 15:21:53.349899117 +0200
+++
/work/SRC/openSUSE:Factory/.azure-cli-telemetry.new.1521/azure-cli-telemetry.changes
2022-08-05 19:51:41.737563283 +0200
@@ -1,0 +2,9 @@
+Thu Aug 4 11:18:35 UTC 2022 - John Paul Adrian Glaubitz
<[email protected]>
+
+- New upstream release
+ + Version 1.0.7
+ + For detailed information about changes see the
+ HISTORY.rst file provided with this package
+- Update Requires from setup.py
+
+-------------------------------------------------------------------
Old:
----
azure-cli-telemetry-1.0.6.tar.gz
New:
----
azure-cli-telemetry-1.0.7.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ azure-cli-telemetry.spec ++++++
--- /var/tmp/diff_new_pack.lAcCJj/_old 2022-08-05 19:51:42.233564563 +0200
+++ /var/tmp/diff_new_pack.lAcCJj/_new 2022-08-05 19:51:42.241564584 +0200
@@ -17,7 +17,7 @@
Name: azure-cli-telemetry
-Version: 1.0.6
+Version: 1.0.7
Release: 0
Summary: Microsoft Azure CLI Telemetry Package
License: MIT
@@ -34,8 +34,8 @@
Requires: python3-applicationinsights < 0.12
Requires: python3-applicationinsights >= 0.11.1
Requires: python3-azure-nspkg >= 3.0.0
-Requires: python3-portalocker < 2.0
-Requires: python3-portalocker >= 1.2
+Requires: python3-portalocker < 3.0
+Requires: python3-portalocker >= 1.6
Conflicts: azure-cli < 2.0.0
BuildArch: noarch
++++++ azure-cli-telemetry-1.0.6.tar.gz -> azure-cli-telemetry-1.0.7.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-cli-telemetry-1.0.6/HISTORY.rst
new/azure-cli-telemetry-1.0.7/HISTORY.rst
--- old/azure-cli-telemetry-1.0.6/HISTORY.rst 2020-08-28 13:32:53.000000000
+0200
+++ new/azure-cli-telemetry-1.0.7/HISTORY.rst 2022-07-29 05:25:38.000000000
+0200
@@ -2,6 +2,10 @@
Release History
===============
+1.0.7
++++++
+* Support specifying `telemetry.push_interval_in_hours` to force push
telemetry cache file
+
1.0.6
+++++
* Add `__version__` in `__init__.py`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-cli-telemetry-1.0.6/LICENSE.txt
new/azure-cli-telemetry-1.0.7/LICENSE.txt
--- old/azure-cli-telemetry-1.0.6/LICENSE.txt 1970-01-01 01:00:00.000000000
+0100
+++ new/azure-cli-telemetry-1.0.7/LICENSE.txt 2022-07-29 05:25:38.000000000
+0200
@@ -0,0 +1,13 @@
+Azure CLI
+
+Copyright (c) Microsoft Corporation
+
+All rights reserved.
+
+MIT License
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the ""Software""), to deal
in the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-cli-telemetry-1.0.6/MANIFEST.in
new/azure-cli-telemetry-1.0.7/MANIFEST.in
--- old/azure-cli-telemetry-1.0.6/MANIFEST.in 2020-08-28 13:32:53.000000000
+0200
+++ new/azure-cli-telemetry-1.0.7/MANIFEST.in 2022-07-29 05:25:38.000000000
+0200
@@ -1,3 +1,4 @@
+include LICENSE.txt
include *.rst
include azure/__init__.py
-include azure/cli/__init__.py
\ No newline at end of file
+include azure/cli/__init__.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-cli-telemetry-1.0.6/PKG-INFO
new/azure-cli-telemetry-1.0.7/PKG-INFO
--- old/azure-cli-telemetry-1.0.6/PKG-INFO 2020-08-28 13:33:13.000000000
+0200
+++ new/azure-cli-telemetry-1.0.7/PKG-INFO 2022-07-29 05:25:53.418673000
+0200
@@ -1,61 +1,66 @@
-Metadata-Version: 1.1
+Metadata-Version: 2.1
Name: azure-cli-telemetry
-Version: 1.0.6
+Version: 1.0.7
Summary: Microsoft Azure CLI Telemetry Package
Home-page: https://github.com/Azure/azure-cli
Author: Microsoft Corporation
Author-email: [email protected]
License: MIT
-Description: Microsoft Azure CLI Telemetry Package
- =====================================
-
- This is the Microsoft Azure CLI Telemetry package. It is not intended
to be installed directly by the end user.
-
- This package includes:
- 1. Support API for Azure CLI to gather telemetry.
- 2. Telemetry upload process.
-
-
-
- .. :changelog:
-
- Release History
- ===============
- 1.0.6
- +++++
- * Add `__version__` in `__init__.py`
-
- 1.0.5
- +++++
- * Support PEP420 namespace package
-
- 1.0.4
- +++++
- * MANIFEST file change to fix wheel install
-
- 1.0.3
- +++++
- * Indicate Python 3.7 support
-
- 1.0.2
- +++++
- * Minor fixes
-
- 1.0.1
- +++++
- * Minor fixes
-
- 1.0.0
- +++++
- * Initialize the azure-cli-telemetry package.
-
-Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
+Classifier: Programming Language :: Python :: 3.9
+Classifier: Programming Language :: Python :: 3.10
Classifier: License :: OSI Approved :: MIT License
+License-File: LICENSE.txt
+
+Microsoft Azure CLI Telemetry Package
+=====================================
+
+This is the Microsoft Azure CLI Telemetry package. It is not intended to be
installed directly by the end user.
+
+This package includes:
+1. Support API for Azure CLI to gather telemetry.
+2. Telemetry upload process.
+
+
+
+.. :changelog:
+
+Release History
+===============
+1.0.7
++++++
+* Support specifying `telemetry.push_interval_in_hours` to force push
telemetry cache file
+
+1.0.6
++++++
+* Add `__version__` in `__init__.py`
+
+1.0.5
++++++
+* Support PEP420 namespace package
+
+1.0.4
++++++
+* MANIFEST file change to fix wheel install
+
+1.0.3
++++++
+* Indicate Python 3.7 support
+
+1.0.2
++++++
+* Minor fixes
+
+1.0.1
++++++
+* Minor fixes
+
+1.0.0
++++++
+* Initialize the azure-cli-telemetry package.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-cli-telemetry-1.0.6/azure/cli/telemetry/components/records_collection.py
new/azure-cli-telemetry-1.0.7/azure/cli/telemetry/components/records_collection.py
---
old/azure-cli-telemetry-1.0.6/azure/cli/telemetry/components/records_collection.py
2020-08-28 13:32:53.000000000 +0200
+++
new/azure-cli-telemetry-1.0.7/azure/cli/telemetry/components/records_collection.py
2022-07-29 05:25:38.000000000 +0200
@@ -8,6 +8,7 @@
import shutil
import stat
import tempfile
+from knack.config import CLIConfig
class RecordsCollection:
@@ -35,8 +36,13 @@
if not os.path.isdir(folder):
return
+ # Collect all cache.x files. If it has been a long time since last
sent, also collect cache file itself.
+ push_interval =
datetime.timedelta(hours=self._get_push_interval_config())
+ include_cache = datetime.datetime.now() - self._last_sent >
push_interval
+ candidates = [(fn, os.stat(os.path.join(folder, fn))) for fn in
os.listdir(folder)
+ if include_cache or fn != 'cache']
+
# sort the cache files base on their last modification time.
- candidates = [(fn, os.stat(os.path.join(folder, fn))) for fn in
os.listdir(folder) if fn != 'cache']
candidates = [(fn, file_stat) for fn, file_stat in candidates if
stat.S_ISREG(file_stat.st_mode)]
candidates.sort(key=lambda pair: pair[1].st_mtime, reverse=True) #
move the newer cache file first
@@ -66,6 +72,12 @@
onerror=lambda _, p, tr: self._logger.error('Fail to
remove file %s', p))
self._logger.info('Remove directory %s', tmp)
+ def _get_push_interval_config(self):
+ config = CLIConfig(config_dir=self._config_dir)
+ threshold = config.getint('telemetry', 'push_interval_in_hours',
fallback=24)
+ # the threshold for push telemetry can't be less than 1 hour, default
value is 24 hours
+ return threshold if threshold >= 1 else 24
+
def _read_file(self, path):
""" Read content of a telemetry cache file and parse them into
records. """
try:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-cli-telemetry-1.0.6/azure/cli/telemetry/components/telemetry_client.py
new/azure-cli-telemetry-1.0.7/azure/cli/telemetry/components/telemetry_client.py
---
old/azure-cli-telemetry-1.0.6/azure/cli/telemetry/components/telemetry_client.py
2020-08-28 13:32:53.000000000 +0200
+++
new/azure-cli-telemetry-1.0.7/azure/cli/telemetry/components/telemetry_client.py
2022-07-29 05:25:38.000000000 +0200
@@ -5,7 +5,6 @@
import json
import datetime
-import six
from applicationinsights import TelemetryClient
from applicationinsights.channel import SynchronousSender, SynchronousQueue,
TelemetryChannel
@@ -49,7 +48,7 @@
properties = {}
measurements = {}
for k, v in raw_properties.items():
- if isinstance(v, six.string_types):
+ if isinstance(v, str):
properties[k] = v
else:
measurements[k] = v
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-cli-telemetry-1.0.6/azure_cli_telemetry.egg-info/PKG-INFO
new/azure-cli-telemetry-1.0.7/azure_cli_telemetry.egg-info/PKG-INFO
--- old/azure-cli-telemetry-1.0.6/azure_cli_telemetry.egg-info/PKG-INFO
2020-08-28 13:33:13.000000000 +0200
+++ new/azure-cli-telemetry-1.0.7/azure_cli_telemetry.egg-info/PKG-INFO
2022-07-29 05:25:53.000000000 +0200
@@ -1,61 +1,66 @@
-Metadata-Version: 1.1
+Metadata-Version: 2.1
Name: azure-cli-telemetry
-Version: 1.0.6
+Version: 1.0.7
Summary: Microsoft Azure CLI Telemetry Package
Home-page: https://github.com/Azure/azure-cli
Author: Microsoft Corporation
Author-email: [email protected]
License: MIT
-Description: Microsoft Azure CLI Telemetry Package
- =====================================
-
- This is the Microsoft Azure CLI Telemetry package. It is not intended
to be installed directly by the end user.
-
- This package includes:
- 1. Support API for Azure CLI to gather telemetry.
- 2. Telemetry upload process.
-
-
-
- .. :changelog:
-
- Release History
- ===============
- 1.0.6
- +++++
- * Add `__version__` in `__init__.py`
-
- 1.0.5
- +++++
- * Support PEP420 namespace package
-
- 1.0.4
- +++++
- * MANIFEST file change to fix wheel install
-
- 1.0.3
- +++++
- * Indicate Python 3.7 support
-
- 1.0.2
- +++++
- * Minor fixes
-
- 1.0.1
- +++++
- * Minor fixes
-
- 1.0.0
- +++++
- * Initialize the azure-cli-telemetry package.
-
-Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
+Classifier: Programming Language :: Python :: 3.9
+Classifier: Programming Language :: Python :: 3.10
Classifier: License :: OSI Approved :: MIT License
+License-File: LICENSE.txt
+
+Microsoft Azure CLI Telemetry Package
+=====================================
+
+This is the Microsoft Azure CLI Telemetry package. It is not intended to be
installed directly by the end user.
+
+This package includes:
+1. Support API for Azure CLI to gather telemetry.
+2. Telemetry upload process.
+
+
+
+.. :changelog:
+
+Release History
+===============
+1.0.7
++++++
+* Support specifying `telemetry.push_interval_in_hours` to force push
telemetry cache file
+
+1.0.6
++++++
+* Add `__version__` in `__init__.py`
+
+1.0.5
++++++
+* Support PEP420 namespace package
+
+1.0.4
++++++
+* MANIFEST file change to fix wheel install
+
+1.0.3
++++++
+* Indicate Python 3.7 support
+
+1.0.2
++++++
+* Minor fixes
+
+1.0.1
++++++
+* Minor fixes
+
+1.0.0
++++++
+* Initialize the azure-cli-telemetry package.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-cli-telemetry-1.0.6/azure_cli_telemetry.egg-info/SOURCES.txt
new/azure-cli-telemetry-1.0.7/azure_cli_telemetry.egg-info/SOURCES.txt
--- old/azure-cli-telemetry-1.0.6/azure_cli_telemetry.egg-info/SOURCES.txt
2020-08-28 13:33:13.000000000 +0200
+++ new/azure-cli-telemetry-1.0.7/azure_cli_telemetry.egg-info/SOURCES.txt
2022-07-29 05:25:53.000000000 +0200
@@ -1,4 +1,5 @@
HISTORY.rst
+LICENSE.txt
MANIFEST.in
README.rst
setup.cfg
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-cli-telemetry-1.0.6/azure_cli_telemetry.egg-info/requires.txt
new/azure-cli-telemetry-1.0.7/azure_cli_telemetry.egg-info/requires.txt
--- old/azure-cli-telemetry-1.0.6/azure_cli_telemetry.egg-info/requires.txt
2020-08-28 13:33:13.000000000 +0200
+++ new/azure-cli-telemetry-1.0.7/azure_cli_telemetry.egg-info/requires.txt
2022-07-29 05:25:53.000000000 +0200
@@ -1,2 +1,2 @@
applicationinsights<0.12,>=0.11.1
-portalocker~=1.2
+portalocker<3,>=1.6
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-cli-telemetry-1.0.6/setup.py
new/azure-cli-telemetry-1.0.7/setup.py
--- old/azure-cli-telemetry-1.0.6/setup.py 2020-08-28 13:32:53.000000000
+0200
+++ new/azure-cli-telemetry-1.0.7/setup.py 2022-07-29 05:25:38.000000000
+0200
@@ -8,7 +8,7 @@
from codecs import open
from setuptools import setup
-VERSION = "1.0.6"
+VERSION = "1.0.7"
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
@@ -16,9 +16,10 @@
'Intended Audience :: System Administrators',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
- 'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
+ 'Programming Language :: Python :: 3.9',
+ 'Programming Language :: Python :: 3.10',
'License :: OSI Approved :: MIT License',
]
@@ -40,13 +41,10 @@
classifiers=CLASSIFIERS,
install_requires=[
'applicationinsights>=0.11.1,<0.12',
- 'portalocker~=1.2',
+ 'portalocker>=1.6,<3',
],
packages=[
'azure.cli.telemetry',
'azure.cli.telemetry.components'
- ],
- test_requires=[
- 'mock'
]
)