Hello community,

here is the log from the commit of package python-nosexcover for 
openSUSE:Factory checked in at 2015-05-15 07:43:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-nosexcover (Old)
 and      /work/SRC/openSUSE:Factory/.python-nosexcover.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-nosexcover"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-nosexcover/python-nosexcover.changes      
2013-10-25 11:24:18.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-nosexcover.new/python-nosexcover.changes 
2015-05-15 07:44:18.000000000 +0200
@@ -1,0 +2,6 @@
+Thu May  7 18:20:23 UTC 2015 - benoit.mo...@gmx.fr
+
+- update to version 1.0.10:
+  * no changelog available
+
+-------------------------------------------------------------------

Old:
----
  nosexcover-1.0.8.tar.gz

New:
----
  nosexcover-1.0.10.tar.gz

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

Other differences:
------------------
++++++ python-nosexcover.spec ++++++
--- /var/tmp/diff_new_pack.VFUpgo/_old  2015-05-15 07:44:18.000000000 +0200
+++ /var/tmp/diff_new_pack.VFUpgo/_new  2015-05-15 07:44:18.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-nosexcover
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 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
@@ -17,7 +17,7 @@
 
 
 Name:           python-nosexcover
-Version:        1.0.8
+Version:        1.0.10
 Release:        0
 Summary:        Extends nose.pluginscover to add Cobertura-style XML reports
 License:        BSD-3-Clause

++++++ nosexcover-1.0.8.tar.gz -> nosexcover-1.0.10.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nosexcover-1.0.8/PKG-INFO 
new/nosexcover-1.0.10/PKG-INFO
--- old/nosexcover-1.0.8/PKG-INFO       2013-03-10 16:48:47.000000000 +0100
+++ new/nosexcover-1.0.10/PKG-INFO      2014-03-26 00:30:43.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: nosexcover
-Version: 1.0.8
+Version: 1.0.10
 Summary: Extends nose.plugins.cover to add Cobertura-style XML reports
 Home-page: http://github.com/cmheisel/nose-xcover/
 Author: Chris Heisel
@@ -33,4 +33,10 @@
 Classifier: License :: OSI Approved :: BSD License
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 2
+Classifier: Programming Language :: Python :: 2.6
+Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.2
+Classifier: Programming Language :: Python :: 3.3
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nosexcover-1.0.8/nosexcover/__init__.py 
new/nosexcover-1.0.10/nosexcover/__init__.py
--- old/nosexcover-1.0.8/nosexcover/__init__.py 2013-03-10 16:43:02.000000000 
+0100
+++ new/nosexcover-1.0.10/nosexcover/__init__.py        2014-03-26 
00:26:10.000000000 +0100
@@ -1 +1 @@
-from nosexcover import *
\ No newline at end of file
+from .nosexcover import XCoverage
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nosexcover-1.0.8/nosexcover/nosexcover.py 
new/nosexcover-1.0.10/nosexcover/nosexcover.py
--- old/nosexcover-1.0.8/nosexcover/nosexcover.py       2013-03-10 
16:43:02.000000000 +0100
+++ new/nosexcover-1.0.10/nosexcover/nosexcover.py      2014-03-26 
00:26:10.000000000 +0100
@@ -4,6 +4,13 @@
 
 import logging
 import sys
+try:
+    # Python 2
+    import StringIO
+except ImportError:
+    # Python 3
+    from io import StringIO
+
 from nose.plugins import cover, Plugin
 log = logging.getLogger('nose.plugins.xcover')
 
@@ -26,7 +33,13 @@
                           help='Path to xml coverage report.'
                           'Default is coverage.xml in the working directory. '
                           '[NOSE_XCOVERAGE_FILE]')
-
+        parser.add_option('--xcoverage-to-stdout', action='store',
+                          default=env.get('NOSE_XCOVER_TO_STDOUT', True),
+                          dest='xcoverage_to_stdout',
+                          help='Print coverage information to stdout.'
+                          'Default is True (output coverage information to 
stdout). '
+                          '[NOSE_XCOVER_TO_STDOUT]')
+        
     def configure(self, options, config):
         coverage_on = options.enable_plugin_coverage
         xcoverage_on = options.enable_plugin_xcoverage
@@ -35,13 +48,24 @@
                 """You can not use both --with-xcover and --with-coverage. 
Using --with-xcover implies --with-coverage""")
             raise TypeError
 
+        cover.old_log = cover.log
+        cover.log = log
         super(XCoverage, self).configure(options, config)
+        cover.log = cover.old_log
+
         self.xcoverageFile = options.xcoverage_file
+        
+        to_stdout = str(options.xcoverage_to_stdout)
+        self.xcoverageToStdout = False if '0' in to_stdout or 'false' in 
to_stdout.lower() else True
 
     def report(self, stream):
         """
         Output code coverage report.
         """
+        if not self.xcoverageToStdout:
+            # This will create a false stream where output will be ignored
+            stream = StringIO.StringIO()
+            
         super(XCoverage, self).report(stream)
         if not hasattr(self, 'coverInstance'):
             # nose coverage plugin 1.0 and earlier
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nosexcover-1.0.8/nosexcover/tests.py 
new/nosexcover-1.0.10/nosexcover/tests.py
--- old/nosexcover-1.0.8/nosexcover/tests.py    2013-03-10 16:43:02.000000000 
+0100
+++ new/nosexcover-1.0.10/nosexcover/tests.py   2014-03-26 00:26:10.000000000 
+0100
@@ -1,2 +1,2 @@
 def test_sanity():
-    assert True
\ No newline at end of file
+    from nosexcover import XCoverage
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nosexcover-1.0.8/nosexcover.egg-info/PKG-INFO 
new/nosexcover-1.0.10/nosexcover.egg-info/PKG-INFO
--- old/nosexcover-1.0.8/nosexcover.egg-info/PKG-INFO   2013-03-10 
16:48:47.000000000 +0100
+++ new/nosexcover-1.0.10/nosexcover.egg-info/PKG-INFO  2014-03-26 
00:30:43.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: nosexcover
-Version: 1.0.8
+Version: 1.0.10
 Summary: Extends nose.plugins.cover to add Cobertura-style XML reports
 Home-page: http://github.com/cmheisel/nose-xcover/
 Author: Chris Heisel
@@ -33,4 +33,10 @@
 Classifier: License :: OSI Approved :: BSD License
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 2
+Classifier: Programming Language :: Python :: 2.6
+Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.2
+Classifier: Programming Language :: Python :: 3.3
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nosexcover-1.0.8/setup.py 
new/nosexcover-1.0.10/setup.py
--- old/nosexcover-1.0.8/setup.py       2013-03-10 16:48:29.000000000 +0100
+++ new/nosexcover-1.0.10/setup.py      2014-03-26 00:26:47.000000000 +0100
@@ -7,7 +7,7 @@
 
 setup(
     name='nosexcover',
-    version='1.0.8',
+    version='1.0.10',
     description='Extends nose.plugins.cover to add Cobertura-style XML 
reports',
     long_description=desc,
     author='Chris Heisel',
@@ -24,6 +24,12 @@
         'License :: OSI Approved :: BSD License',
         'Operating System :: OS Independent',
         'Programming Language :: Python',
+        'Programming Language :: Python :: 2',
+        'Programming Language :: Python :: 2.6',
+        'Programming Language :: Python :: 2.7',
+        'Programming Language :: Python :: 3',
+        'Programming Language :: Python :: 3.2',
+        'Programming Language :: Python :: 3.3',
         'Topic :: Software Development :: Libraries :: Python Modules',
     ],
     entry_points={


Reply via email to