commit speedtest-cli for openSUSE:Factory

2019-10-23 Thread root
Hello community,

here is the log from the commit of package speedtest-cli for openSUSE:Factory 
checked in at 2019-10-23 15:50:59

Comparing /work/SRC/openSUSE:Factory/speedtest-cli (Old)
 and  /work/SRC/openSUSE:Factory/.speedtest-cli.new.2352 (New)


Package is "speedtest-cli"

Wed Oct 23 15:50:59 2019 rev:11 rq:741881 version:2.1.2

Changes:

--- /work/SRC/openSUSE:Factory/speedtest-cli/speedtest-cli.changes  
2019-03-28 22:49:04.915050445 +0100
+++ /work/SRC/openSUSE:Factory/.speedtest-cli.new.2352/speedtest-cli.changes
2019-10-23 15:51:08.782713806 +0200
@@ -1,0 +2,8 @@
+Tue Oct 22 14:07:28 UTC 2019 - Martin Pluskal 
+
+- Update to version 2.1.2:
+  * Prevent warnings on Python3.8
+  * Fix proxy support
+  * Fix --single to ensure threads are not started until a position in the 
queue is available
+
+---

Old:

  speedtest-cli-2.1.1.tar.gz

New:

  speedtest-cli-2.1.2.tar.gz



Other differences:
--
++ speedtest-cli.spec ++
--- /var/tmp/diff_new_pack.Dw5H1E/_old  2019-10-23 15:51:09.714714813 +0200
+++ /var/tmp/diff_new_pack.Dw5H1E/_new  2019-10-23 15:51:09.718714818 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package speedtest-cli
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,18 +12,18 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 %define oname   speedtest_cli
 Name:   speedtest-cli
-Version:2.1.1
+Version:2.1.2
 Release:0
 Summary:Command line interface for testing internet bandwidth
 License:Apache-2.0
 Group:  System/Benchmark
-Url:https://github.com/sivel/speedtest-cli
+URL:https://github.com/sivel/speedtest-cli
 Source0:
https://github.com/sivel/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 BuildRequires:  python-rpm-macros
 BuildRequires:  python3-base
@@ -49,7 +49,8 @@
   %{buildroot}%{_mandir}/man1/speedtest.1
 
 %files
-%doc LICENSE README.rst
+%license LICENSE
+%doc README.rst
 %{_bindir}/speedtest
 %{_bindir}/%{name}
 %{_mandir}/man1/speedtest.1%{ext_man}

++ speedtest-cli-2.1.1.tar.gz -> speedtest-cli-2.1.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/speedtest-cli-2.1.1/.travis.yml 
new/speedtest-cli-2.1.2/.travis.yml
--- old/speedtest-cli-2.1.1/.travis.yml 2019-03-12 17:01:31.0 +0100
+++ new/speedtest-cli-2.1.2/.travis.yml 2019-08-22 16:48:18.0 +0200
@@ -1,4 +1,6 @@
 language: python
+sudo: required
+dist: xenial
 
 addons:
   apt:
@@ -33,8 +35,13 @@
   env: TOXENV=py35
 - python: 3.6
   env: TOXENV=py36
+- python: 3.7
+  env: TOXENV=py37
+- python: 3.8-dev
+  env: TOXENV=py38
 - python: pypy
   env: TOXENV=pypy
+  dist: trusty
 
 before_install:
   - if [[ $(echo "$TOXENV" | egrep -c "py35") != 0 ]]; then pyenv global 
system 3.5; fi;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/speedtest-cli-2.1.1/speedtest.py 
new/speedtest-cli-2.1.2/speedtest.py
--- old/speedtest-cli-2.1.1/speedtest.py2019-03-12 17:01:31.0 
+0100
+++ new/speedtest-cli-2.1.2/speedtest.py2019-08-22 16:48:18.0 
+0200
@@ -36,7 +36,7 @@
 gzip = None
 GZIP_BASE = object
 
-__version__ = '2.1.1'
+__version__ = '2.1.2'
 
 
 class FakeShutdownEvent(object):
@@ -53,6 +53,9 @@
 # Some global variables we use
 DEBUG = False
 _GLOBAL_DEFAULT_TIMEOUT = object()
+PY25PLUS = sys.version_info[:2] >= (2, 5)
+PY26PLUS = sys.version_info[:2] >= (2, 6)
+PY32PLUS = sys.version_info[:2] >= (3, 2)
 
 # Begin import game to handle Python 2 and Python 3
 try:
@@ -64,14 +67,15 @@
 json = None
 
 try:
-import xml.etree.cElementTree as ET
-except ImportError:
+import xml.etree.ElementTree as ET
 try:
-import xml.etree.ElementTree as ET
+from xml.etree.ElementTree import _Element as ET_Element
 except ImportError:
-from xml.dom import minidom as DOM
-from xml.parsers.expat import ExpatError
-ET = None
+pass
+except ImportError:
+from xml.dom import minidom as DOM
+from xml.parsers.expat import ExpatError
+ET = None
 
 try:
 from urllib2 import (urlopen, Request, HTTPError, URLErro

commit speedtest-cli for openSUSE:Factory

2019-03-28 Thread root
Hello community,

here is the log from the commit of package speedtest-cli for openSUSE:Factory 
checked in at 2019-03-28 22:49:04

Comparing /work/SRC/openSUSE:Factory/speedtest-cli (Old)
 and  /work/SRC/openSUSE:Factory/.speedtest-cli.new.25356 (New)


Package is "speedtest-cli"

Thu Mar 28 22:49:04 2019 rev:10 rq:689271 version:2.1.1

Changes:

--- /work/SRC/openSUSE:Factory/speedtest-cli/speedtest-cli.changes  
2019-03-06 15:52:12.696426079 +0100
+++ /work/SRC/openSUSE:Factory/.speedtest-cli.new.25356/speedtest-cli.changes   
2019-03-28 22:49:04.915050445 +0100
@@ -1,0 +2,16 @@
+Tue Mar 26 17:14:55 UTC 2019 - Michal Svec 
+
+- Update to version 2.1.1:
+  * Fix SSL support on Python2.4 and Python2.5
+- Update to version 2.1.0:
+  * Automatically resolve .best property
+  * Pass Content-Length header with POST requests
+  * Fix install instructions with git clone
+  * Add functionality for single threaded testing
+  * Add debug support to show if a URL request resulted in a redirect
+  * Add the python version to the version output
+  * Switch from platform.system to platform.platform when building the 
User-Agent header
+  * Don't pass server_hostname to ssl.wrap_socket
+  * ensure ERROR doesn't print an empty string
+
+---

Old:

  speedtest-cli-2.0.2.tar.gz

New:

  speedtest-cli-2.1.1.tar.gz



Other differences:
--
++ speedtest-cli.spec ++
--- /var/tmp/diff_new_pack.JMMlGc/_old  2019-03-28 22:49:05.307050374 +0100
+++ /var/tmp/diff_new_pack.JMMlGc/_new  2019-03-28 22:49:05.307050374 +0100
@@ -18,7 +18,7 @@
 
 %define oname   speedtest_cli
 Name:   speedtest-cli
-Version:2.0.2
+Version:2.1.1
 Release:0
 Summary:Command line interface for testing internet bandwidth
 License:Apache-2.0

++ speedtest-cli-2.0.2.tar.gz -> speedtest-cli-2.1.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/speedtest-cli-2.0.2/README.rst 
new/speedtest-cli-2.1.1/README.rst
--- old/speedtest-cli-2.0.2/README.rst  2018-05-24 18:06:29.0 +0200
+++ new/speedtest-cli-2.1.1/README.rst  2019-03-12 17:01:31.0 +0100
@@ -51,7 +51,8 @@
 ::
 
 git clone https://github.com/sivel/speedtest-cli.git
-python speedtest-cli/setup.py install
+cd speedtest-cli
+python setup.py install
 
 Just download (Like the way it used to be)
 ~~
@@ -74,21 +75,23 @@
 ::
 
 $ speedtest-cli -h
-usage: speedtest-cli [-h] [--no-download] [--no-upload] [--bytes] [--share]
- [--simple] [--csv] [--csv-delimiter CSV_DELIMITER]
- [--csv-header] [--json] [--list] [--server SERVER]
- [--exclude EXCLUDE] [--mini MINI] [--source SOURCE]
- [--timeout TIMEOUT] [--secure] [--no-pre-allocate]
- [--version]
-
+usage: speedtest-cli [-h] [--no-download] [--no-upload] [--single] 
[--bytes]
+ [--share] [--simple] [--csv]
+ [--csv-delimiter CSV_DELIMITER] [--csv-header] 
[--json]
+ [--list] [--server SERVER] [--exclude EXCLUDE]
+ [--mini MINI] [--source SOURCE] [--timeout TIMEOUT]
+ [--secure] [--no-pre-allocate] [--version]
+
 Command line interface for testing internet bandwidth using speedtest.net.
 --
 https://github.com/sivel/speedtest-cli
-
+
 optional arguments:
   -h, --helpshow this help message and exit
   --no-download Do not perform download test
   --no-upload   Do not perform upload test
+  --single  Only use a single connection instead of multiple. 
This
+simulates a typical file transfer.
   --bytes   Display values in bytes instead of bits. Does not
 affect the image generated by --share, nor output 
from
 --json or --csv
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/speedtest-cli-2.0.2/setup.py 
new/speedtest-cli-2.1.1/setup.py
--- old/speedtest-cli-2.0.2/setup.py2018-05-24 18:06:29.0 +0200
+++ new/speedtest-cli-2.1.1/setup.py2019-03-12 17:01:31.0 +0100
@@ -1,6 +1,6 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
-# Copyright 2012-2018 Matt Martz
+# Copyright 2012 Matt Martz
 # All Rights Reserved.
 #
 #Licensed under the Apache License, Version 2.0 (the "License"); you may
diff -urN '--ex

commit speedtest-cli for openSUSE:Factory

2019-03-06 Thread root
Hello community,

here is the log from the commit of package speedtest-cli for openSUSE:Factory 
checked in at 2019-03-06 15:52:00

Comparing /work/SRC/openSUSE:Factory/speedtest-cli (Old)
 and  /work/SRC/openSUSE:Factory/.speedtest-cli.new.28833 (New)


Package is "speedtest-cli"

Wed Mar  6 15:52:00 2019 rev:9 rq:682121 version:2.0.2

Changes:

--- /work/SRC/openSUSE:Factory/speedtest-cli/speedtest-cli.changes  
2017-11-27 22:17:59.735539629 +0100
+++ /work/SRC/openSUSE:Factory/.speedtest-cli.new.28833/speedtest-cli.changes   
2019-03-06 15:52:12.696426079 +0100
@@ -1,0 +2,17 @@
+Wed Mar  6 09:22:05 UTC 2019 - Michal Svec 
+
+- Update to version 2.0.2:
+  * Ensure we are utilizing the context created by HTTPSConnection, or falling 
back to ssl
+- Changes for version 2.0.1:
+  * Handle malformed XML responses
+  * Ensure --share works with --csv
+  * Fix SSL communication during latency tests on python 2.6 and older
+  * Handle error where latitude and longitude from config are invalid
+- Changes for version 2.0.0:
+  * Redesigned Python API
+  * Add option to exclude servers, and allow --server and --exclude to be 
specified multiple times
+  * Address Exception issues
+  * Print errors to stderr
+  * Remove deprecated speedtest_cli.py
+
+---

Old:

  speedtest-cli-1.0.7.tar.gz

New:

  speedtest-cli-2.0.2.tar.gz



Other differences:
--
++ speedtest-cli.spec ++
--- /var/tmp/diff_new_pack.oOuaDI/_old  2019-03-06 15:52:13.944425828 +0100
+++ /var/tmp/diff_new_pack.oOuaDI/_new  2019-03-06 15:52:13.948425827 +0100
@@ -18,7 +18,7 @@
 
 %define oname   speedtest_cli
 Name:   speedtest-cli
-Version:1.0.7
+Version:2.0.2
 Release:0
 Summary:Command line interface for testing internet bandwidth
 License:Apache-2.0

++ speedtest-cli-1.0.7.tar.gz -> speedtest-cli-2.0.2.tar.gz ++
 1719 lines of diff (skipped)




commit speedtest-cli for openSUSE:Factory

2017-11-27 Thread root
Hello community,

here is the log from the commit of package speedtest-cli for openSUSE:Factory 
checked in at 2017-11-27 22:17:56

Comparing /work/SRC/openSUSE:Factory/speedtest-cli (Old)
 and  /work/SRC/openSUSE:Factory/.speedtest-cli.new (New)


Package is "speedtest-cli"

Mon Nov 27 22:17:56 2017 rev:8 rq:545762 version:1.0.7

Changes:

--- /work/SRC/openSUSE:Factory/speedtest-cli/speedtest-cli.changes  
2017-10-07 17:51:04.214236570 +0200
+++ /work/SRC/openSUSE:Factory/.speedtest-cli.new/speedtest-cli.changes 
2017-11-27 22:17:59.735539629 +0100
@@ -1,0 +2,6 @@
+Sun Nov 26 21:18:49 UTC 2017 - mplus...@suse.com
+
+- Update to version 1.0.7:
+  * Support using --csv-delimiter with --csv-header
+
+---

Old:

  speedtest-cli-1.0.6.tar.gz

New:

  speedtest-cli-1.0.7.tar.gz



Other differences:
--
++ speedtest-cli.spec ++
--- /var/tmp/diff_new_pack.Gnsy3Q/_old  2017-11-27 22:18:00.263520465 +0100
+++ /var/tmp/diff_new_pack.Gnsy3Q/_new  2017-11-27 22:18:00.267520320 +0100
@@ -18,14 +18,15 @@
 
 %define oname   speedtest_cli
 Name:   speedtest-cli
-Version:1.0.6
+Version:1.0.7
 Release:0
 Summary:Command line interface for testing internet bandwidth
 License:Apache-2.0
 Group:  System/Benchmark
 Url:https://github.com/sivel/speedtest-cli
 Source0:
https://github.com/sivel/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
-BuildRequires:  python3-devel
+BuildRequires:  python-rpm-macros
+BuildRequires:  python3-base
 BuildRequires:  python3-setuptools
 Requires:   python3-setuptools
 BuildArch:  noarch
@@ -38,12 +39,14 @@
 %setup -q
 
 %build
-python3 setup.py build
+%python3_build
 
 %install
-python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
-install -D -m 0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
-ln -s %{_mandir}/man1/%{name}.1 %{buildroot}%{_mandir}/man1/speedtest.1
+%python3_install
+install -Dpm 0644 %{name}.1 \
+  %{buildroot}%{_mandir}/man1/%{name}.1
+ln -s %{_mandir}/man1/%{name}.1 \
+  %{buildroot}%{_mandir}/man1/speedtest.1
 
 %files
 %doc LICENSE README.rst
@@ -51,10 +54,6 @@
 %{_bindir}/%{name}
 %{_mandir}/man1/speedtest.1%{ext_man}
 %{_mandir}/man1/%{name}.1%{ext_man}
-%{python3_sitelib}/%{oname}.py
-%{python3_sitelib}/speedtest.py
-%{python3_sitelib}/__pycache__/%{oname}.cpython-*.pyc
-%{python3_sitelib}/__pycache__/speedtest.cpython-*.pyc
-%{python3_sitelib}/%{oname}-%{version}-py%{py3_ver}.egg-info
+%{python3_sitelib}/*
 
 %changelog

++ speedtest-cli-1.0.6.tar.gz -> speedtest-cli-1.0.7.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/speedtest-cli-1.0.6/speedtest.py 
new/speedtest-cli-1.0.7/speedtest.py
--- old/speedtest-cli-1.0.6/speedtest.py2017-04-25 18:49:26.0 
+0200
+++ new/speedtest-cli-1.0.7/speedtest.py2017-10-16 16:28:35.0 
+0200
@@ -36,7 +36,7 @@
 gzip = None
 GZIP_BASE = object
 
-__version__ = '1.0.6'
+__version__ = '1.0.7'
 
 
 class FakeShutdownEvent(object):
@@ -1212,11 +1212,15 @@
 sys.exit(0)
 
 
-def csv_header():
+def csv_header(delimiter=','):
 """Print the CSV Headers"""
 
-print_('Server ID,Sponsor,Server Name,Timestamp,Distance,Ping,Download,'
-   'Upload')
+row = ['Server ID', 'Sponsor', 'Server Name', 'Timestamp', 'Distance',
+   'Ping', 'Download', 'Upload']
+out = StringIO()
+writer = csv.writer(out, delimiter=delimiter, lineterminator='')
+writer.writerow([to_utf8(v) for v in row])
+print_(out.getvalue())
 sys.exit(0)
 
 
@@ -1349,12 +1353,12 @@
 raise SpeedtestCLIError('Cannot supply both --no-download and '
 '--no-upload')
 
-if args.csv_header:
-csv_header()
-
 if len(args.csv_delimiter) != 1:
 raise SpeedtestCLIError('--csv-delimiter must be a single character')
 
+if args.csv_header:
+csv_header(args.csv_delimiter)
+
 validate_optional_args(args)
 
 socket.setdefaulttimeout(args.timeout)




commit speedtest-cli for openSUSE:Factory

2017-10-07 Thread root
Hello community,

here is the log from the commit of package speedtest-cli for openSUSE:Factory 
checked in at 2017-10-07 17:51:02

Comparing /work/SRC/openSUSE:Factory/speedtest-cli (Old)
 and  /work/SRC/openSUSE:Factory/.speedtest-cli.new (New)


Package is "speedtest-cli"

Sat Oct  7 17:51:02 2017 rev:7 rq:532150 version:1.0.6

Changes:

--- /work/SRC/openSUSE:Factory/speedtest-cli/speedtest-cli.changes  
2017-03-31 15:09:59.968041567 +0200
+++ /work/SRC/openSUSE:Factory/.speedtest-cli.new/speedtest-cli.changes 
2017-10-07 17:51:04.214236570 +0200
@@ -1,0 +2,11 @@
+Fri Oct  6 09:55:32 UTC 2017 - mplus...@suse.com
+
+- Update to version 1.0.6:
+  * Ensure the UTC ISO8601 date includes a Z offset
+  * Fix calculation of uploads to perform per size
+  * Pre-allocate upload data, but allow to disable pre-allocation,
+for memory limited devices
+- Changes for version 1.0.5:
+  * Fixes for UTF-8 encoding of CSV output
+
+---

Old:

  speedtest-cli-1.0.2.tar.gz

New:

  speedtest-cli-1.0.6.tar.gz



Other differences:
--
++ speedtest-cli.spec ++
--- /var/tmp/diff_new_pack.OoSZln/_old  2017-10-07 17:51:04.818210019 +0200
+++ /var/tmp/diff_new_pack.OoSZln/_new  2017-10-07 17:51:04.822209843 +0200
@@ -18,7 +18,7 @@
 
 %define oname   speedtest_cli
 Name:   speedtest-cli
-Version:1.0.2
+Version:1.0.6
 Release:0
 Summary:Command line interface for testing internet bandwidth
 License:Apache-2.0
@@ -46,7 +46,6 @@
 ln -s %{_mandir}/man1/%{name}.1 %{buildroot}%{_mandir}/man1/speedtest.1
 
 %files
-%defattr(-,root,root,-)
 %doc LICENSE README.rst
 %{_bindir}/speedtest
 %{_bindir}/%{name}

++ speedtest-cli-1.0.2.tar.gz -> speedtest-cli-1.0.6.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/speedtest-cli-1.0.2/README.rst 
new/speedtest-cli-1.0.6/README.rst
--- old/speedtest-cli-1.0.2/README.rst  2017-01-18 21:10:02.0 +0100
+++ new/speedtest-cli-1.0.6/README.rst  2017-04-25 18:49:26.0 +0200
@@ -74,10 +74,11 @@
 ::
 
 $ speedtest-cli -h
-usage: speedtest-cli [-h] [--bytes] [--share] [--simple] [--csv]
- [--csv-delimiter CSV_DELIMITER] [--csv-header] 
[--json]
- [--list] [--server SERVER] [--mini MINI] [--source 
SOURCE]
- [--timeout TIMEOUT] [--secure] [--version]
+usage: speedtest-cli [-h] [--no-download] [--no-upload] [--bytes] [--share]
+ [--simple] [--csv] [--csv-delimiter CSV_DELIMITER]
+ [--csv-header] [--json] [--list] [--server SERVER]
+ [--mini MINI] [--source SOURCE] [--timeout TIMEOUT]
+ [--secure] [--no-pre-allocate] [--version]
 
 Command line interface for testing internet bandwidth using speedtest.net.
 --
@@ -85,11 +86,13 @@
 
 optional arguments:
   -h, --helpshow this help message and exit
+  --no-download Do not perform download test
+  --no-upload   Do not perform upload test
   --bytes   Display values in bytes instead of bits. Does not
 affect the image generated by --share, nor output 
from
 --json or --csv
   --share   Generate and provide a URL to the speedtest.net 
share
-results image
+results image, not displayed with --csv
   --simple  Suppress verbose output, only show basic 
information
   --csv Suppress verbose output, only show basic 
information
 in CSV format. Speeds listed in bit/s and not 
affected
@@ -109,8 +112,19 @@
   --timeout TIMEOUT HTTP timeout in seconds. Default 10
   --secure  Use HTTPS instead of HTTP when communicating with
 speedtest.net operated servers
+  --no-pre-allocate Do not pre allocate upload data. Pre allocation is
+enabled by default to improve upload performance. 
To
+support systems with insufficient memory, use this
+option to avoid a MemoryError
   --version Show the version number and exit
 
+
+Python API
+--
+
+See the `wiki `_.
+
+
 Inconsistency
 -
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/speedtest-cli-1.0.2/speedtest.py 
new/sp

commit speedtest-cli for openSUSE:Factory

2017-03-31 Thread root
Hello community,

here is the log from the commit of package speedtest-cli for openSUSE:Factory 
checked in at 2017-03-31 15:09:22

Comparing /work/SRC/openSUSE:Factory/speedtest-cli (Old)
 and  /work/SRC/openSUSE:Factory/.speedtest-cli.new (New)


Package is "speedtest-cli"

Fri Mar 31 15:09:22 2017 rev:6 rq:482594 version:1.0.2

Changes:

--- /work/SRC/openSUSE:Factory/speedtest-cli/speedtest-cli.changes  
2016-11-24 21:25:20.0 +0100
+++ /work/SRC/openSUSE:Factory/.speedtest-cli.new/speedtest-cli.changes 
2017-03-31 15:09:59.968041567 +0200
@@ -1,0 +2,6 @@
+Fri Mar 24 18:42:45 UTC 2017 - mplus...@suse.com
+
+- Update to version 1.0.2:
+  * No upstream changelog available
+
+---

Old:

  speedtest-cli-1.0.0.tar.gz

New:

  speedtest-cli-1.0.2.tar.gz



Other differences:
--
++ speedtest-cli.spec ++
--- /var/tmp/diff_new_pack.em3onn/_old  2017-03-31 15:10:00.579955054 +0200
+++ /var/tmp/diff_new_pack.em3onn/_new  2017-03-31 15:10:00.583954489 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package speedtest-cli
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %define oname   speedtest_cli
 Name:   speedtest-cli
-Version:1.0.0
+Version:1.0.2
 Release:0
 Summary:Command line interface for testing internet bandwidth
 License:Apache-2.0

++ speedtest-cli-1.0.0.tar.gz -> speedtest-cli-1.0.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/speedtest-cli-1.0.0/speedtest.py 
new/speedtest-cli-1.0.2/speedtest.py
--- old/speedtest-cli-1.0.0/speedtest.py2016-11-17 18:20:19.0 
+0100
+++ new/speedtest-cli-1.0.2/speedtest.py2017-01-18 21:10:02.0 
+0100
@@ -36,7 +36,7 @@
 gzip = None
 GZIP_BASE = object
 
-__version__ = '1.0.0'
+__version__ = '1.0.2'
 
 
 class FakeShutdownEvent(object):
@@ -225,6 +225,10 @@
 """Base exception for this module"""
 
 
+class SpeedtestCLIError(SpeedtestException):
+"""Generic exception for raising errors during CLI operation"""
+
+
 class SpeedtestHTTPError(SpeedtestException):
 """Base HTTP exception for this module"""
 
@@ -293,7 +297,13 @@
 raise SpeedtestHTTPError('HTTP response body is gzip encoded, '
  'but gzip support is not available')
 IO = BytesIO or StringIO
-self.io = IO(response.read())
+self.io = IO()
+while 1:
+chunk = response.read(1024)
+if len(chunk) == 0:
+break
+self.io.write(chunk)
+self.io.seek(0)
 gzip.GzipFile.__init__(self, mode='rb', fileobj=self.io)
 
 def close(self):
@@ -303,6 +313,13 @@
 self.io.close()
 
 
+def get_exception():
+"""Helper function to work with py2.4-py3 for getting the current
+exception in a try/except block
+"""
+return sys.exc_info()[1]
+
+
 def bound_socket(*args, **kwargs):
 """Bind socket to a specified source IP address"""
 
@@ -398,7 +415,7 @@
 uh = urlopen(request)
 return uh, False
 except HTTP_ERRORS:
-e = sys.exc_info()[1]
+e = get_exception()
 return None, e
 
 
@@ -710,7 +727,7 @@
 stream = get_response_stream(uh)
 
 while 1:
-configxml.append(stream.read(10240))
+configxml.append(stream.read(1024))
 if len(configxml[-1]) == 0:
 break
 stream.close()
@@ -822,7 +839,7 @@
 
 serversxml = []
 while 1:
-serversxml.append(stream.read(10240))
+serversxml.append(stream.read(1024))
 if len(serversxml[-1]) == 0:
 break
 
@@ -982,7 +999,7 @@
 r = h.getresponse()
 total = (timeit.default_timer() - start)
 except HTTP_ERRORS:
-e = sys.exc_info()[1]
+e = get_exception()
 printer('%r' % e, debug=True)
 cum.append(3600)
 continue
@@ -1082,11 +1099,13 @@
 for i, size in enumerate(sizes):
 # We set ``0`` for ``start`` and handle setting the actual
 # ``start`` in ``HTTPUploader`` to get better measurements
-data = HTTPUploaderData(size, 0, self.config['length']['upload'])
-data._create_data()

commit speedtest-cli for openSUSE:Factory

2016-11-24 Thread h_root
Hello community,

here is the log from the commit of package speedtest-cli for openSUSE:Factory 
checked in at 2016-11-24 21:25:19

Comparing /work/SRC/openSUSE:Factory/speedtest-cli (Old)
 and  /work/SRC/openSUSE:Factory/.speedtest-cli.new (New)


Package is "speedtest-cli"

Changes:

--- /work/SRC/openSUSE:Factory/speedtest-cli/speedtest-cli.changes  
2016-02-17 12:24:59.0 +0100
+++ /work/SRC/openSUSE:Factory/.speedtest-cli.new/speedtest-cli.changes 
2016-11-24 21:25:20.0 +0100
@@ -1,0 +2,6 @@
+Wed Nov 23 12:01:00 UTC 2016 - mplus...@suse.com
+
+- Update to version 1.0.0:
+  * No upstream changelog available
+
+---

Old:

  speedtest-cli-0.3.2.tar.gz

New:

  speedtest-cli-1.0.0.tar.gz



Other differences:
--
++ speedtest-cli.spec ++
--- /var/tmp/diff_new_pack.gkiaRG/_old  2016-11-24 21:25:21.0 +0100
+++ /var/tmp/diff_new_pack.gkiaRG/_new  2016-11-24 21:25:21.0 +0100
@@ -18,7 +18,7 @@
 
 %define oname   speedtest_cli
 Name:   speedtest-cli
-Version:0.3.2
+Version:1.0.0
 Release:0
 Summary:Command line interface for testing internet bandwidth
 License:Apache-2.0
@@ -53,7 +53,9 @@
 %{_mandir}/man1/speedtest.1%{ext_man}
 %{_mandir}/man1/%{name}.1%{ext_man}
 %{python3_sitelib}/%{oname}.py
+%{python3_sitelib}/speedtest.py
 %{python3_sitelib}/__pycache__/%{oname}.cpython-*.pyc
+%{python3_sitelib}/__pycache__/speedtest.cpython-*.pyc
 %{python3_sitelib}/%{oname}-%{version}-py%{py3_ver}.egg-info
 
 %changelog

++ speedtest-cli-0.3.2.tar.gz -> speedtest-cli-1.0.0.tar.gz ++
 2472 lines of diff (skipped)




commit speedtest-cli for openSUSE:Factory

2016-02-17 Thread h_root
Hello community,

here is the log from the commit of package speedtest-cli for openSUSE:Factory 
checked in at 2016-02-17 10:26:33

Comparing /work/SRC/openSUSE:Factory/speedtest-cli (Old)
 and  /work/SRC/openSUSE:Factory/.speedtest-cli.new (New)


Package is "speedtest-cli"

Changes:

--- /work/SRC/openSUSE:Factory/speedtest-cli/speedtest-cli.changes  
2015-12-23 08:50:18.0 +0100
+++ /work/SRC/openSUSE:Factory/.speedtest-cli.new/speedtest-cli.changes 
2016-02-17 12:24:59.0 +0100
@@ -1,0 +2,5 @@
+Tue Feb 16 08:33:41 UTC 2016 - mplus...@suse.com
+
+- Switch to python3
+
+---



Other differences:
--
++ speedtest-cli.spec ++
--- /var/tmp/diff_new_pack.VyrqKh/_old  2016-02-17 12:25:00.0 +0100
+++ /var/tmp/diff_new_pack.VyrqKh/_new  2016-02-17 12:25:00.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package speedtest-cli
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,11 +25,10 @@
 Group:  System/Benchmark
 Url:https://github.com/sivel/speedtest-cli
 Source0:
https://github.com/sivel/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
-Requires:   python-setuptools
+BuildRequires:  python3-devel
+BuildRequires:  python3-setuptools
+Requires:   python3-setuptools
 BuildArch:  noarch
-%py_requires
 
 %description
 Command line interface for testing internet bandwidth using
@@ -39,10 +38,10 @@
 %setup -q
 
 %build
-python setup.py build
+python3 setup.py build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
 install -D -m 0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
 ln -s %{_mandir}/man1/%{name}.1 %{buildroot}%{_mandir}/man1/speedtest.1
 
@@ -53,8 +52,8 @@
 %{_bindir}/%{name}
 %{_mandir}/man1/speedtest.1%{ext_man}
 %{_mandir}/man1/%{name}.1%{ext_man}
-%{python_sitelib}/%{oname}.py
-%{python_sitelib}/%{oname}.pyc
-%{python_sitelib}/%{oname}-%{version}-py%{py_ver}.egg-info
+%{python3_sitelib}/%{oname}.py
+%{python3_sitelib}/__pycache__/%{oname}.cpython-*.pyc
+%{python3_sitelib}/%{oname}-%{version}-py%{py3_ver}.egg-info
 
 %changelog




commit speedtest-cli for openSUSE:Factory

2015-12-22 Thread h_root
Hello community,

here is the log from the commit of package speedtest-cli for openSUSE:Factory 
checked in at 2015-12-23 08:50:17

Comparing /work/SRC/openSUSE:Factory/speedtest-cli (Old)
 and  /work/SRC/openSUSE:Factory/.speedtest-cli.new (New)


Package is "speedtest-cli"

Changes:

--- /work/SRC/openSUSE:Factory/speedtest-cli/speedtest-cli.changes  
2015-08-11 08:26:56.0 +0200
+++ /work/SRC/openSUSE:Factory/.speedtest-cli.new/speedtest-cli.changes 
2015-12-23 08:50:18.0 +0100
@@ -1,0 +2,5 @@
+Mon Dec 21 08:38:29 UTC 2015 - mplus...@suse.com
+
+- Update dependencies - boo#959814
+
+---



Other differences:
--
++ speedtest-cli.spec ++
--- /var/tmp/diff_new_pack.50I6Jd/_old  2015-12-23 08:50:18.0 +0100
+++ /var/tmp/diff_new_pack.50I6Jd/_new  2015-12-23 08:50:18.0 +0100
@@ -27,6 +27,7 @@
 Source0:
https://github.com/sivel/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
+Requires:   python-setuptools
 BuildArch:  noarch
 %py_requires
 




commit speedtest-cli for openSUSE:Factory

2015-08-10 Thread h_root
Hello community,

here is the log from the commit of package speedtest-cli for openSUSE:Factory 
checked in at 2015-08-11 08:26:54

Comparing /work/SRC/openSUSE:Factory/speedtest-cli (Old)
 and  /work/SRC/openSUSE:Factory/.speedtest-cli.new (New)


Package is "speedtest-cli"

Changes:

--- /work/SRC/openSUSE:Factory/speedtest-cli/speedtest-cli.changes  
2015-07-05 18:02:34.0 +0200
+++ /work/SRC/openSUSE:Factory/.speedtest-cli.new/speedtest-cli.changes 
2015-08-11 08:26:56.0 +0200
@@ -1,0 +2,6 @@
+Sat Aug  8 12:58:09 UTC 2015 - mplus...@suse.com
+
+- Follow python packaging guidelines
+- Use setuptools for installation
+
+---



Other differences:
--
++ speedtest-cli.spec ++
--- /var/tmp/diff_new_pack.lodkUa/_old  2015-08-11 08:26:56.0 +0200
+++ /var/tmp/diff_new_pack.lodkUa/_new  2015-08-11 08:26:56.0 +0200
@@ -17,7 +17,6 @@
 
 
 %define oname   speedtest_cli
-
 Name:   speedtest-cli
 Version:0.3.2
 Release:0
@@ -26,8 +25,10 @@
 Group:  System/Benchmark
 Url:https://github.com/sivel/speedtest-cli
 Source0:
https://github.com/sivel/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
-Requires:   python
+BuildRequires:  python-devel
+BuildRequires:  python-setuptools
 BuildArch:  noarch
+%py_requires
 
 %description
 Command line interface for testing internet bandwidth using
@@ -37,18 +38,22 @@
 %setup -q
 
 %build
+python setup.py build
 
 %install
-# install executable
-install -Dm 0755 %{oname}.py %{buildroot}%{_bindir}/%{name}
-
-# install man
-install -Dm 0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
+python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+install -D -m 0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
+ln -s %{_mandir}/man1/%{name}.1 %{buildroot}%{_mandir}/man1/speedtest.1
 
 %files
 %defattr(-,root,root,-)
 %doc LICENSE README.rst
-%{_mandir}/man1/%{name}.1%{ext_man}
+%{_bindir}/speedtest
 %{_bindir}/%{name}
+%{_mandir}/man1/speedtest.1%{ext_man}
+%{_mandir}/man1/%{name}.1%{ext_man}
+%{python_sitelib}/%{oname}.py
+%{python_sitelib}/%{oname}.pyc
+%{python_sitelib}/%{oname}-%{version}-py%{py_ver}.egg-info
 
 %changelog