Hello community,

here is the log from the commit of package python-rednose for openSUSE:Factory 
checked in at 2019-05-17 23:39:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-rednose (Old)
 and      /work/SRC/openSUSE:Factory/.python-rednose.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-rednose"

Fri May 17 23:39:07 2019 rev:4 rq:702924 version:1.3.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-rednose/python-rednose.changes    
2018-12-24 11:43:06.449360864 +0100
+++ /work/SRC/openSUSE:Factory/.python-rednose.new.5148/python-rednose.changes  
2019-05-17 23:39:09.534044783 +0200
@@ -1,0 +2,9 @@
+Tue May 14 17:32:34 UTC 2019 - John Jolly <[email protected]>
+
+- Update to version 1.3.0
+  + Add `NOSE_REDNOSE_HIDE_SKIPS` environment variable.
+  + Fix `NOSE_REDNOSE` environment variable.
+  + Added LICENCE file
+  + Allow using rednose with multiprocess.
+
+-------------------------------------------------------------------

Old:
----
  rednose-1.2.3.tar.gz

New:
----
  rednose-1.3.0.tar.gz

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

Other differences:
------------------
++++++ python-rednose.spec ++++++
--- /var/tmp/diff_new_pack.ZQ5UcQ/_old  2019-05-17 23:39:10.046044502 +0200
+++ /var/tmp/diff_new_pack.ZQ5UcQ/_new  2019-05-17 23:39:10.046044502 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-rednose
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2012 Weberhofer GmbH, Austria
 #
 # All modifications and additions to the file contributed by third parties
@@ -19,10 +19,10 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-rednose
-Version:        1.2.3
+Version:        1.3.0
 Release:        0
 Summary:        Pretty output formatter for python-nosetests
-License:        BSD-3-Clause
+License:        MIT
 Group:          Development/Languages/Python
 Url:            https://pypi.python.org/pypi/rednose/
 Source0:        
https://files.pythonhosted.org/packages/source/r/rednose/rednose-%{version}.tar.gz

++++++ rednose-1.2.3.tar.gz -> rednose-1.3.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rednose-1.2.3/LICENCE new/rednose-1.3.0/LICENCE
--- old/rednose-1.2.3/LICENCE   1970-01-01 01:00:00.000000000 +0100
+++ new/rednose-1.3.0/LICENCE   2018-02-11 19:07:53.000000000 +0100
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2018 Joseph Kahn
+
+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/rednose-1.2.3/MANIFEST.in 
new/rednose-1.3.0/MANIFEST.in
--- old/rednose-1.2.3/MANIFEST.in       1970-01-01 01:00:00.000000000 +0100
+++ new/rednose-1.3.0/MANIFEST.in       2018-02-11 19:07:53.000000000 +0100
@@ -0,0 +1,2 @@
+include *.rst
+include LICENCE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rednose-1.2.3/PKG-INFO new/rednose-1.3.0/PKG-INFO
--- old/rednose-1.2.3/PKG-INFO  2017-11-05 18:55:39.000000000 +0100
+++ new/rednose-1.3.0/PKG-INFO  2018-02-11 19:07:58.000000000 +0100
@@ -1,11 +1,11 @@
 Metadata-Version: 1.1
 Name: rednose
-Version: 1.2.3
+Version: 1.3.0
 Summary: coloured output for nosetests
 Home-page: https://github.com/JBKahn/rednose
 Author: UNKNOWN
 Author-email: UNKNOWN
-License: BSD
+License: MIT
 Description-Content-Type: UNKNOWN
 Description: =========
         rednose
@@ -70,7 +70,7 @@
         
 Keywords: test nosetests nose nosetest output colour console
 Platform: UNKNOWN
-Classifier: License :: OSI Approved :: BSD License
+Classifier: License :: OSI Approved :: MIT License
 Classifier: Programming Language :: Python
 Classifier: Programming Language :: Python :: 3
 Classifier: Development Status :: 4 - Beta
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rednose-1.2.3/readme.rst new/rednose-1.3.0/readme.rst
--- old/rednose-1.2.3/readme.rst        1970-01-01 01:00:00.000000000 +0100
+++ new/rednose-1.3.0/readme.rst        2018-02-11 18:24:23.000000000 +0100
@@ -0,0 +1,60 @@
+=========
+rednose
+=========
+
+rednose is a `nosetests`_
+plugin for adding colour (and readability) to nosetest console results.
+
+.. image:: rednose_example.png
+       :scale: 50 %
+       :align: center
+
+Installation:
+-------------
+::
+
+       pip install rednose
+       
+or from the source::
+
+       python setup.py install
+
+Rednose officially supports Python 2.7, 3.4, and 3.5.
+
+Usage:
+------
+::
+
+       nosetests --rednose
+
+or::
+
+       export NOSE_REDNOSE=1
+       nosetests
+
+Rednose by default uses auto-colouring, which will only use
+colour if you're running it on a terminal (i.e not piping it
+to a file). To control colouring, use one of::
+
+       nosetests --rednose --force-color
+       nosetests --no-color
+
+(you can also control this by setting the environment variable 
NOSE_REDNOSE_COLOR to 'force' or 'no')
+
+Rednose by default prints file paths relative to the working
+directory. If you want the full path in the traceback then
+use::
+
+       nosetests --rednose --full-file-path
+
+Rednose by default prints error style formating for skipped tests,
+to supress this use::
+
+       nosetests --rednose --hide-skips
+
+Rednose supports printing the test results mid run as well as at
+the end, to enable it use::
+
+       nosetests --rednose --immediate
+
+.. _nosetests: http://somethingaboutorange.com/mrl/projects/nose/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rednose-1.2.3/rednose.egg-info/PKG-INFO 
new/rednose-1.3.0/rednose.egg-info/PKG-INFO
--- old/rednose-1.2.3/rednose.egg-info/PKG-INFO 2017-11-05 18:55:39.000000000 
+0100
+++ new/rednose-1.3.0/rednose.egg-info/PKG-INFO 2018-02-11 19:07:58.000000000 
+0100
@@ -1,11 +1,11 @@
 Metadata-Version: 1.1
 Name: rednose
-Version: 1.2.3
+Version: 1.3.0
 Summary: coloured output for nosetests
 Home-page: https://github.com/JBKahn/rednose
 Author: UNKNOWN
 Author-email: UNKNOWN
-License: BSD
+License: MIT
 Description-Content-Type: UNKNOWN
 Description: =========
         rednose
@@ -70,7 +70,7 @@
         
 Keywords: test nosetests nose nosetest output colour console
 Platform: UNKNOWN
-Classifier: License :: OSI Approved :: BSD License
+Classifier: License :: OSI Approved :: MIT License
 Classifier: Programming Language :: Python
 Classifier: Programming Language :: Python :: 3
 Classifier: Development Status :: 4 - Beta
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rednose-1.2.3/rednose.egg-info/SOURCES.txt 
new/rednose-1.3.0/rednose.egg-info/SOURCES.txt
--- old/rednose-1.2.3/rednose.egg-info/SOURCES.txt      2017-11-05 
18:55:39.000000000 +0100
+++ new/rednose-1.3.0/rednose.egg-info/SOURCES.txt      2018-02-11 
19:07:58.000000000 +0100
@@ -1,3 +1,6 @@
+LICENCE
+MANIFEST.in
+readme.rst
 rednose.py
 setup.py
 rednose.egg-info/PKG-INFO
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rednose-1.2.3/rednose.py new/rednose-1.3.0/rednose.py
--- old/rednose-1.2.3/rednose.py        2017-11-05 18:55:20.000000000 +0100
+++ new/rednose-1.3.0/rednose.py        2018-02-11 19:07:53.000000000 +0100
@@ -63,15 +63,22 @@
 
 
 class RedNose(nose.plugins.Plugin):
+    # In order to color multiprocess output it has to have a higher score.
+    score = 1001
     env_opt = 'NOSE_REDNOSE'
     env_opt_color = 'NOSE_REDNOSE_COLOR'
+    env_opt_hide_skips = 'NOSE_REDNOSE_HIDE_SKIPS'
 
     def __init__(self, *args):
         super(RedNose, self).__init__(*args)
         self.enabled = False
 
     def options(self, parser, env=os.environ):
-        rednose_on = bool(env.get(self.env_opt, False))
+        rednose_on_env_value = env.get(self.env_opt, False)
+        rednose_hide_skips_env_value = env.get(self.env_opt_hide_skips, False)
+
+        rednose_on = bool(rednose_on_env_value) if rednose_on_env_value not in 
['false', '0'] else False
+        rednose_hide_skips = bool(rednose_hide_skips_env_value) if 
rednose_hide_skips_env_value not in ['false', '0'] else False
         rednose_color = env.get(self.env_opt_color, 'auto')
 
         parser.add_option(
@@ -110,7 +117,7 @@
         parser.add_option(
             "--hide-skips",
             action="store_true",
-            default=False,
+            default=rednose_hide_skips,
             help="Hide the error printing for skip cases (default is to show 
them)"
         )
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rednose-1.2.3/setup.py new/rednose-1.3.0/setup.py
--- old/rednose-1.2.3/setup.py  2017-11-05 18:55:20.000000000 +0100
+++ new/rednose-1.3.0/setup.py  2018-02-11 19:07:53.000000000 +0100
@@ -18,9 +18,9 @@
     name='rednose',
     py_modules=['rednose'],
     url='https://github.com/JBKahn/rednose',
-    version='1.2.3',
+    version='1.3.0',
     classifiers=[
-        "License :: OSI Approved :: BSD License",
+        "License :: OSI Approved :: MIT License",
         "Programming Language :: Python",
         "Programming Language :: Python :: 3",
         "Development Status :: 4 - Beta",
@@ -29,6 +29,6 @@
         "Topic :: Software Development :: Testing",
     ],
     keywords='test nosetests nose nosetest output colour console',
-    license='BSD',
+    license='MIT',
     test_suite='test_files.new_tests',
 )


Reply via email to