Hello community, here is the log from the commit of package python-cov-core for openSUSE:Factory checked in at 2015-05-05 00:55:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-cov-core (Old) and /work/SRC/openSUSE:Factory/.python-cov-core.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-cov-core" Changes: -------- --- /work/SRC/openSUSE:Factory/python-cov-core/python-cov-core.changes 2014-07-31 07:41:53.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-cov-core.new/python-cov-core.changes 2015-05-05 00:55:52.000000000 +0200 @@ -1,0 +2,6 @@ +Sat May 2 16:24:41 UTC 2015 - [email protected] + +- update to version 1.15.0: no upstream changelog +- update project URL + +------------------------------------------------------------------- Old: ---- cov-core-1.13.0.tar.gz New: ---- cov-core-1.15.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-cov-core.spec ++++++ --- /var/tmp/diff_new_pack.5ULF7V/_old 2015-05-05 00:55:52.000000000 +0200 +++ /var/tmp/diff_new_pack.5ULF7V/_new 2015-05-05 00:55:52.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-cov-core # -# Copyright (c) 2014 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 @@ -13,19 +13,20 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Name: python-cov-core -Version: 1.13.0 +Version: 1.15.0 Release: 0 -License: MIT Summary: Plugin core for use by pytest-cov, nose-cov and nose2-cov -Url: http://bitbucket.org/memedough/cov-core/overview +License: MIT Group: Development/Languages/Python +Url: https://github.com/schlamar/cov-core Source: https://pypi.python.org/packages/source/c/cov-core/cov-core-%{version}.tar.gz +BuildRequires: python-coverage BuildRequires: python-devel BuildRequires: python-setuptools -BuildRequires: python-coverage Requires: python-coverage BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 ++++++ cov-core-1.13.0.tar.gz -> cov-core-1.15.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cov-core-1.13.0/PKG-INFO new/cov-core-1.15.0/PKG-INFO --- old/cov-core-1.13.0/PKG-INFO 2014-06-12 20:43:30.000000000 +0200 +++ new/cov-core-1.15.0/PKG-INFO 2014-11-22 12:05:14.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: cov-core -Version: 1.13.0 +Version: 1.15.0 Summary: plugin core for use by pytest-cov, nose-cov and nose2-cov Home-page: https://github.com/schlamar/cov-core Author: Marc Schlaich diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cov-core-1.13.0/cov_core.egg-info/PKG-INFO new/cov-core-1.15.0/cov_core.egg-info/PKG-INFO --- old/cov-core-1.13.0/cov_core.egg-info/PKG-INFO 2014-06-12 20:43:30.000000000 +0200 +++ new/cov-core-1.15.0/cov_core.egg-info/PKG-INFO 2014-11-22 12:05:13.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: cov-core -Version: 1.13.0 +Version: 1.15.0 Summary: plugin core for use by pytest-cov, nose-cov and nose2-cov Home-page: https://github.com/schlamar/cov-core Author: Marc Schlaich diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cov-core-1.13.0/cov_core.egg-info/requires.txt new/cov-core-1.15.0/cov_core.egg-info/requires.txt --- old/cov-core-1.13.0/cov_core.egg-info/requires.txt 2014-06-12 20:43:30.000000000 +0200 +++ new/cov-core-1.15.0/cov_core.egg-info/requires.txt 2014-11-22 12:05:13.000000000 +0100 @@ -1 +1 @@ -coverage>=3.6 \ No newline at end of file +coverage>=3.6 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cov-core-1.13.0/cov_core.py new/cov-core-1.15.0/cov_core.py --- old/cov-core-1.13.0/cov_core.py 2014-06-12 20:26:37.000000000 +0200 +++ new/cov-core-1.15.0/cov_core.py 2014-11-22 12:01:17.000000000 +0100 @@ -28,27 +28,6 @@ pass -_cov_data = dict() - - -def on_py_fork_starts(proc): - cov = cov_core_init.init() - _cov_data[proc] = cov - - -def on_py_fork_exits(proc): - cov = _cov_data.pop(proc) - multiprocessing_finish(cov) - - -try: - import py - py.process.ForkedFunc.register_on_start(on_py_fork_starts) - py.process.ForkedFunc.register_on_exit(on_py_fork_exits) -except (ImportError, AttributeError): - pass - - class CovController(object): """Base class for different plugin implementations.""" @@ -69,7 +48,10 @@ def set_env(self): """Put info about coverage into the env so that subprocesses can activate coverage.""" - os.environ['COV_CORE_SOURCE'] = UNIQUE_SEP.join(self.cov_source) + if self.cov_source is None: + os.environ['COV_CORE_SOURCE'] = '' + else: + os.environ['COV_CORE_SOURCE'] = UNIQUE_SEP.join(self.cov_source) os.environ['COV_CORE_DATA_FILE'] = self.cov_data_file os.environ['COV_CORE_CONFIG'] = self.cov_config diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cov-core-1.13.0/cov_core_init.py new/cov-core-1.15.0/cov_core_init.py --- old/cov-core-1.13.0/cov_core_init.py 2014-06-12 20:26:37.000000000 +0200 +++ new/cov-core-1.15.0/cov_core_init.py 2014-11-22 12:01:17.000000000 +0100 @@ -33,7 +33,7 @@ cov_source = os.environ.get('COV_CORE_SOURCE') cov_data_file = os.environ.get('COV_CORE_DATA_FILE') cov_config = os.environ.get('COV_CORE_CONFIG') - if cov_source and cov_data_file and cov_config: + if cov_data_file and cov_config: # Import what we need to activate coverage. import socket @@ -41,7 +41,10 @@ import coverage # Determine all source roots. - cov_source = cov_source.split(UNIQUE_SEP) + if cov_source == '': + cov_source = None + else: + cov_source = cov_source.split(UNIQUE_SEP) # Produce a unique suffix for this process in the same # manner as coverage. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cov-core-1.13.0/setup.py new/cov-core-1.15.0/setup.py --- old/cov-core-1.13.0/setup.py 2014-06-12 20:41:41.000000000 +0200 +++ new/cov-core-1.15.0/setup.py 2014-11-22 12:04:21.000000000 +0100 @@ -10,7 +10,7 @@ # The line in the path file must begin with "import" # so that site.py will exec it. PTH_FILE = '''\ -import os; os.environ.get('COV_CORE_SOURCE') and __import__('cov_core_init').init() +import os; 'COV_CORE_SOURCE' in os.environ and __import__('cov_core_init').init() ''' PTH_FILE_FAILURE = ''' @@ -21,7 +21,7 @@ ''' % (PTH_FILE_NAME, PTH_FILE) setuptools.setup(name='cov-core', - version='1.13.0', + version='1.15.0', description='plugin core for use by pytest-cov, ' 'nose-cov and nose2-cov', long_description=open('README.rst').read().strip(),
