Hello community,

here is the log from the commit of package python-gabbi for openSUSE:Factory 
checked in at 2019-07-26 12:45:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-gabbi (Old)
 and      /work/SRC/openSUSE:Factory/.python-gabbi.new.4126 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-gabbi"

Fri Jul 26 12:45:04 2019 rev:7 rq:718785 version:1.48.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-gabbi/python-gabbi.changes        
2019-03-15 10:52:11.636972797 +0100
+++ /work/SRC/openSUSE:Factory/.python-gabbi.new.4126/python-gabbi.changes      
2019-07-26 12:45:06.717814382 +0200
@@ -1,0 +2,7 @@
+Wed Jul 24 13:58:12 UTC 2019 - pgaj...@suse.com
+
+- version update to 1.48.0
+  * Work around issues in urllib3
+  * Enable a -q arg to gabbi-run
+
+-------------------------------------------------------------------

Old:
----
  gabbi-1.45.0.tar.gz

New:
----
  gabbi-1.48.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-gabbi.spec ++++++
--- /var/tmp/diff_new_pack.hq56cU/_old  2019-07-26 12:45:07.633813805 +0200
+++ /var/tmp/diff_new_pack.hq56cU/_new  2019-07-26 12:45:07.641813801 +0200
@@ -18,13 +18,14 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-gabbi
-Version:        1.45.0
+Version:        1.48.0
 Release:        0
 Summary:        Declarative HTTP testing library
 License:        Apache-2.0
 Group:          Development/Languages/Python
 Url:            https://github.com/cdent/gabbi
 Source:         
https://files.pythonhosted.org/packages/source/g/gabbi/gabbi-%{version}.tar.gz
+BuildRequires:  %{python_module certifi}
 BuildRequires:  %{python_module colorama}
 BuildRequires:  %{python_module jsonpath-rw-ext >= 1.0.0}
 BuildRequires:  %{python_module mock}
@@ -32,17 +33,18 @@
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module stestr}
 BuildRequires:  %{python_module urllib3 >= 1.11.0}
-BuildRequires:  %{python_module wsgi_intercept >= 1.2.2}
+BuildRequires:  %{python_module wsgi_intercept >= 1.8.1}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-PyYAML
+Requires:       python-certifi
 Requires:       python-colorama
 Requires:       python-jsonpath-rw-ext >= 1.0.0
 Requires:       python-pytest
 Requires:       python-six
 Requires:       python-testtools
 Requires:       python-urllib3 >= 1.11.0
-Requires:       python-wsgi_intercept >= 1.2.2
+Requires:       python-wsgi_intercept >= 1.8.1
 Requires(post): update-alternatives
 Requires(postun): update-alternatives
 BuildArch:      noarch

++++++ gabbi-1.45.0.tar.gz -> gabbi-1.48.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gabbi-1.45.0/ChangeLog new/gabbi-1.48.0/ChangeLog
--- old/gabbi-1.45.0/ChangeLog  2019-03-05 23:19:34.000000000 +0100
+++ new/gabbi-1.48.0/ChangeLog  2019-07-01 16:27:58.000000000 +0200
@@ -1,6 +1,22 @@
 CHANGES
 =======
 
+1.48.0
+------
+
+* release 1.48.0
+* Allow pytest 5.0.0
+
+1.47.0
+------
+
+* Release 1.47.0
+* Clean up test warning and tox misconfigurations
+* Pin pytest to <5.0.0
+* release 1.46.0
+* Work around issues in urllib3
+* Enable a -q arg to gabbi-run
+
 1.45.0
 ------
 
@@ -981,8 +997,8 @@
 * Initial commit of sphinx infrastructure
 * Automate test and build a bit more
 
-0.1.0
------
+v0.1.0
+------
 
 * Extract classes to their own files
 * Add some docs to GabbiFixture
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gabbi-1.45.0/PKG-INFO new/gabbi-1.48.0/PKG-INFO
--- old/gabbi-1.45.0/PKG-INFO   2019-03-05 23:19:35.000000000 +0100
+++ new/gabbi-1.48.0/PKG-INFO   2019-07-01 16:27:59.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: gabbi
-Version: 1.45.0
+Version: 1.48.0
 Summary: Declarative HTTP testing library
 Home-page: https://github.com/cdent/gabbi
 Author: Chris Dent
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gabbi-1.45.0/docs/source/release.rst 
new/gabbi-1.48.0/docs/source/release.rst
--- old/gabbi-1.45.0/docs/source/release.rst    2019-03-05 22:54:02.000000000 
+0100
+++ new/gabbi-1.48.0/docs/source/release.rst    2019-07-01 16:06:47.000000000 
+0200
@@ -5,6 +5,24 @@
 highlighting major features and changes. For more detail see
 the `commit logs`_ on GitHub.
 
+1.48.0
+------
+
+* Support ``pytest 5.0.0`` in Python ``>=3.5``. For earlier versions of Python,
+  ``pytest<5.0.0`` will be used; the pytest project is dropping support for
+  older versions of Python.
+
+1.47.0
+------
+
+* Use ``pytest<5.0.0`` until gabbi has solutions for the changes in ``5.0.0``.
+
+1.46.0
+------
+
+* A ``-q`` argument is added to :doc:`gabbi-run <runner>` to suppress output
+  from the test runner.
+
 1.45.0
 ------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gabbi-1.45.0/docs/source/runner.rst 
new/gabbi-1.48.0/docs/source/runner.rst
--- old/gabbi-1.45.0/docs/source/runner.rst     2018-06-28 15:18:51.000000000 
+0200
+++ new/gabbi-1.48.0/docs/source/runner.rst     2019-06-18 10:08:50.000000000 
+0200
@@ -58,3 +58,5 @@
 
 Use ``-v`` or ``--verbose`` with a value of ``all``, ``headers`` or ``body``
 to turn on :ref:`verbosity <metadata>` for all tests being run.
+
+Use ``-q`` or ``--quiet`` to silence test runner output.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gabbi-1.45.0/gabbi/__init__.py 
new/gabbi-1.48.0/gabbi/__init__.py
--- old/gabbi-1.45.0/gabbi/__init__.py  2019-03-05 22:53:05.000000000 +0100
+++ new/gabbi-1.48.0/gabbi/__init__.py  2019-07-01 16:06:51.000000000 +0200
@@ -12,4 +12,4 @@
 # under the License.
 """See gabbi.driver and gabbbi.case."""
 
-__version__ = '1.45.0'
+__version__ = '1.48.0'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gabbi-1.45.0/gabbi/driver.py 
new/gabbi-1.48.0/gabbi/driver.py
--- old/gabbi-1.45.0/gabbi/driver.py    2018-06-28 15:18:51.000000000 +0200
+++ new/gabbi-1.48.0/gabbi/driver.py    2019-07-01 16:04:18.000000000 +0200
@@ -159,8 +159,12 @@
     a way that pytest can handle.
     """
 
-    import pytest
-    pluginmanager = pytest.config.pluginmanager
+    if metafunc:
+        pluginmanager = metafunc.config.pluginmanager
+    else:
+        import pytest
+        pluginmanager = pytest.config.pluginmanager
+
     pluginmanager.import_plugin('gabbi.pytester')
 
     loader = unittest.TestLoader()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gabbi-1.45.0/gabbi/httpclient.py 
new/gabbi-1.48.0/gabbi/httpclient.py
--- old/gabbi-1.45.0/gabbi/httpclient.py        2018-06-28 15:18:51.000000000 
+0200
+++ new/gabbi-1.48.0/gabbi/httpclient.py        2019-06-18 10:08:50.000000000 
+0200
@@ -16,6 +16,7 @@
 import os
 import sys
 
+import certifi
 import urllib3
 
 from gabbi.handlers import jsonhandler
@@ -172,9 +173,10 @@
 def get_http(verbose=False, caption=''):
     """Return an ``Http`` class for making requests."""
     if not verbose:
-        return Http(strict=True)
+        return Http(strict=True, ca_certs=certifi.where())
 
     headers = False if verbose == 'body' else True
     body = False if verbose == 'headers' else True
     return VerboseHttp(headers=headers, body=body, stream=sys.stdout,
-                       caption=caption, colorize=True, strict=True)
+                       caption=caption, colorize=True, strict=True,
+                       ca_certs=certifi.where())
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gabbi-1.45.0/gabbi/runner.py 
new/gabbi-1.48.0/gabbi/runner.py
--- old/gabbi-1.45.0/gabbi/runner.py    2018-06-28 15:18:51.000000000 +0200
+++ new/gabbi-1.48.0/gabbi/runner.py    2019-06-18 10:08:50.000000000 +0200
@@ -68,7 +68,8 @@
 
         gabbi-run http://example.com -- /path/to/x.yaml /path/to/y.yaml
 
-    Output is formatted as unittest summary information.
+    Output is formatted as unittest summary information. Use `-q` or
+    `--quiet` to silence that output.
     """
     parser = _make_argparser()
 
@@ -80,6 +81,7 @@
 
     handler_objects = initialize_handlers(args.response_handlers)
 
+    quiet = args.quiet
     verbosity = args.verbosity
     failfast = args.failfast
     failure = False
@@ -90,7 +92,7 @@
         success = run_suite(sys.stdin, handler_objects, host, port,
                             prefix, force_ssl, failfast,
                             verbosity=verbosity,
-                            safe_yaml=args.safe_yaml)
+                            safe_yaml=args.safe_yaml, quiet=quiet)
         failure = not success
     else:
         for input_file in input_files:
@@ -101,7 +103,8 @@
                                     prefix, force_ssl, failfast,
                                     data_dir=data_dir,
                                     verbosity=verbosity, name=name,
-                                    safe_yaml=args.safe_yaml)
+                                    safe_yaml=args.safe_yaml,
+                                    quiet=quiet)
             if not success:
                 failures.append(input_file)
             if not failure:  # once failed, this is considered immutable
@@ -117,7 +120,7 @@
 
 def run_suite(handle, handler_objects, host, port, prefix, force_ssl=False,
               failfast=False, data_dir='.', verbosity=False, name='input',
-              safe_yaml=True):
+              safe_yaml=True, quiet=False):
     """Run the tests from the YAML in handle."""
     data = utils.load_yaml(handle, safe=safe_yaml)
     if force_ssl:
@@ -136,8 +139,14 @@
         loader, name, data, data_dir, host, port, None, None, prefix=prefix,
         handlers=handler_objects, test_loader_name='gabbi-runner')
 
+    # The default runner stream is stderr.
+    stream = sys.stderr
+    if quiet:
+        # We want to swallow the output that the runner is
+        # producing.
+        stream = open(os.devnull, 'w')
     result = ConciseTestRunner(
-        verbosity=2, failfast=failfast).run(test_suite)
+        stream=stream, verbosity=2, failfast=failfast).run(test_suite)
     return result.wasSuccessful()
 
 
@@ -214,6 +223,11 @@
         help='Exit on first failure'
     )
     parser.add_argument(
+        '-q', '--quiet',
+        action='store_true',
+        help='Produce no test runner output'
+    )
+    parser.add_argument(
         '-r', '--response-handler',
         nargs='?', default=None,
         dest='response_handlers',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gabbi-1.45.0/gabbi/tests/test_handlers.py 
new/gabbi-1.48.0/gabbi/tests/test_handlers.py
--- old/gabbi-1.45.0/gabbi/tests/test_handlers.py       2018-08-31 
13:30:23.000000000 +0200
+++ new/gabbi-1.48.0/gabbi/tests/test_handlers.py       2019-07-01 
13:15:49.000000000 +0200
@@ -247,7 +247,7 @@
         handler = jsonhandler.JSONHandler()
         self.test.content_type = "application/json"
         self.test.test_data = {'response_json_paths': {
-            '$.objects[0].name': '/\d+/',
+            '$.objects[0].name': r'/\d+/',
         }}
         self.test.response_data = {
             'objects': [{'name': 99,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gabbi-1.45.0/gabbi/tests/test_history.py 
new/gabbi-1.48.0/gabbi/tests/test_history.py
--- old/gabbi-1.45.0/gabbi/tests/test_history.py        2018-12-06 
19:50:45.000000000 +0100
+++ new/gabbi-1.48.0/gabbi/tests/test_history.py        2019-07-01 
13:15:49.000000000 +0200
@@ -122,9 +122,9 @@
         cookie = self.test('test_request').replace_template(
             self.test.test_data, escape_regex=True)
         if sys.version_info[:2] >= (3, 7):
-            self.assertEqual('/test=cookie\?/', cookie)
+            self.assertEqual(r'/test=cookie\?/', cookie)
         else:
-            self.assertEqual('/test\=cookie\?/', cookie)
+            self.assertEqual(r'/test\=cookie\?/', cookie)
 
     def test_cookie_replace_history(self):
         self.test.test_data = '$HISTORY["mytest"].$COOKIE'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gabbi-1.45.0/gabbi/tests/test_runner.py 
new/gabbi-1.48.0/gabbi/tests/test_runner.py
--- old/gabbi-1.45.0/gabbi/tests/test_runner.py 2018-06-29 11:08:46.000000000 
+0200
+++ new/gabbi-1.48.0/gabbi/tests/test_runner.py 2019-06-18 10:08:50.000000000 
+0200
@@ -352,6 +352,31 @@
         self.assertIn('{\n  "cat": "poppy"\n}', output)
         self.assertIn('application/json', output)
 
+    def test_quiet_is_quiet(self):
+        """Confirm -q shuts down output."""
+        sys.argv = [
+            'gabbi-run', '-q', 'http://%s:%s/foo' % (self.host, self.port)]
+
+        sys.stdin = StringIO("""
+        tests:
+        - name: expected success
+          GET: /baz
+          status: 200
+          response_headers:
+            x-gabbi-url: http://%s:%s/foo/baz
+        """ % (self.host, self.port))
+        with self.server():
+            try:
+                runner.run()
+            except SystemExit as err:
+                self.assertSuccess(err)
+        sys.stdout.seek(0)
+        sys.stderr.seek(0)
+        stdoutput = sys.stdout.read()
+        stderror = sys.stderr.read()
+        self.assertEqual('', stdoutput)
+        self.assertEqual('', stderror)
+
     def assertSuccess(self, exitError):
         errors = exitError.args[0]
         if errors:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gabbi-1.45.0/gabbi.egg-info/PKG-INFO 
new/gabbi-1.48.0/gabbi.egg-info/PKG-INFO
--- old/gabbi-1.45.0/gabbi.egg-info/PKG-INFO    2019-03-05 23:19:34.000000000 
+0100
+++ new/gabbi-1.48.0/gabbi.egg-info/PKG-INFO    2019-07-01 16:27:58.000000000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: gabbi
-Version: 1.45.0
+Version: 1.48.0
 Summary: Declarative HTTP testing library
 Home-page: https://github.com/cdent/gabbi
 Author: Chris Dent
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gabbi-1.45.0/gabbi.egg-info/pbr.json 
new/gabbi-1.48.0/gabbi.egg-info/pbr.json
--- old/gabbi-1.45.0/gabbi.egg-info/pbr.json    2019-03-05 23:19:34.000000000 
+0100
+++ new/gabbi-1.48.0/gabbi.egg-info/pbr.json    2019-07-01 16:27:58.000000000 
+0200
@@ -1 +1 @@
-{"git_version": "e46c096", "is_release": true}
\ No newline at end of file
+{"git_version": "c8244db", "is_release": true}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gabbi-1.45.0/gabbi.egg-info/requires.txt 
new/gabbi-1.48.0/gabbi.egg-info/requires.txt
--- old/gabbi-1.45.0/gabbi.egg-info/requires.txt        2019-03-05 
23:19:34.000000000 +0100
+++ new/gabbi-1.48.0/gabbi.egg-info/requires.txt        2019-07-01 
16:27:58.000000000 +0200
@@ -3,7 +3,8 @@
 six
 PyYAML
 urllib3>=1.11.0
+certifi
 jsonpath-rw-ext>=1.0.0
-wsgi-intercept>=1.2.2
+wsgi-intercept>=1.8.1
 colorama
 testtools
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gabbi-1.45.0/requirements.txt 
new/gabbi-1.48.0/requirements.txt
--- old/gabbi-1.45.0/requirements.txt   2019-03-05 22:51:44.000000000 +0100
+++ new/gabbi-1.48.0/requirements.txt   2019-07-01 16:04:18.000000000 +0200
@@ -3,7 +3,8 @@
 six
 PyYAML
 urllib3>=1.11.0
+certifi
 jsonpath-rw-ext>=1.0.0
-wsgi-intercept>=1.2.2
+wsgi-intercept>=1.8.1
 colorama
 testtools
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gabbi-1.45.0/tox.ini new/gabbi-1.48.0/tox.ini
--- old/gabbi-1.45.0/tox.ini    2018-12-07 11:33:14.000000000 +0100
+++ new/gabbi-1.48.0/tox.ini    2019-07-01 13:15:49.000000000 +0200
@@ -7,9 +7,8 @@
 deps = -r{toxinidir}/requirements.txt
        -r{toxinidir}/test-requirements.txt
 whitelist_externals = rm
-install_command = pip install -U {opts} {packages}
+install_command = pip install --no-cache -U {opts} {packages}
 commands =
-    rm -f .testrepository/times.dbm
     stestr run {posargs}
 setenv = GABBI_PREFIX=
 passenv = GABBI_* HOME
@@ -28,7 +27,10 @@
 [testenv:py36-pytest]
 commands = py.test gabbi
 
-[testenv:py36-prefix]
+[testenv:py37-pytest]
+commands = py.test gabbi
+
+[testenv:py37-prefix]
 setenv = GABBI_PREFIX=/snoopy
 
 [testenv:pep8]
@@ -43,10 +45,10 @@
 [testenv:failskip]
 commands = {toxinidir}/test-failskip.sh
 
-[testenv:py36-limit]
+[testenv:py37-limit]
 commands = {toxinidir}/test-limit.sh
 
-[testenv:py36-failskip]
+[testenv:py37-failskip]
 commands = {toxinidir}/test-failskip.sh
 
 [testenv:cover]


Reply via email to