Hello community, here is the log from the commit of package python-EasyProcess for openSUSE:Factory checked in at 2020-01-16 18:14:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-EasyProcess (Old) and /work/SRC/openSUSE:Factory/.python-EasyProcess.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-EasyProcess" Thu Jan 16 18:14:57 2020 rev:19 rq:764063 version:0.2.8 Changes: -------- --- /work/SRC/openSUSE:Factory/python-EasyProcess/python-EasyProcess.changes 2019-11-22 10:19:38.417357608 +0100 +++ /work/SRC/openSUSE:Factory/.python-EasyProcess.new.26092/python-EasyProcess.changes 2020-01-16 18:15:08.356767728 +0100 @@ -1,0 +2,8 @@ +Mon Jan 13 15:13:26 UTC 2020 - Marketa Calabkova <mcalabk...@suse.com> + +- update to version 0.2.8 + * enable_stdout_log, enable_stderr_log + * py38 support + * remove py34 support + +------------------------------------------------------------------- Old: ---- 0.2.7.tar.gz New: ---- 0.2.8.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-EasyProcess.spec ++++++ --- /var/tmp/diff_new_pack.JBmqeI/_old 2020-01-16 18:15:10.436768905 +0100 +++ /var/tmp/diff_new_pack.JBmqeI/_new 2020-01-16 18:15:10.440768907 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-EasyProcess # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # 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 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-EasyProcess -Version: 0.2.7 +Version: 0.2.8 Release: 0 Summary: Python subprocess interface License: BSD-2-Clause ++++++ 0.2.7.tar.gz -> 0.2.8.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/EasyProcess-0.2.7/.travis.yml new/EasyProcess-0.2.8/.travis.yml --- old/EasyProcess-0.2.7/.travis.yml 2019-05-25 20:55:52.000000000 +0200 +++ new/EasyProcess-0.2.8/.travis.yml 2019-12-18 17:31:34.000000000 +0100 @@ -1,15 +1,26 @@ language: python python: - "2.7" - - "3.4" - "3.5" - "3.6" matrix: include: - - python: 3.7 + - name: 3.7_xenial + python: 3.7 dist: xenial - env: DIST="xenial" + + - name: 3.8_xenial + python: 3.8 + dist: xenial + + - name: 3.7_bionic + python: 3.7 + dist: bionic + + - name: 3.8_bionic + python: 3.8 + dist: bionic before_install: - sudo apt-get update -qq diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/EasyProcess-0.2.7/README.rst new/EasyProcess-0.2.8/README.rst --- old/EasyProcess-0.2.7/README.rst 2019-05-25 20:55:52.000000000 +0200 +++ new/EasyProcess-0.2.8/README.rst 2019-12-18 17:31:34.000000000 +0100 @@ -21,7 +21,7 @@ - stdout/stderr is set only after the subprocess has finished - stop() does not kill whole subprocess tree - unicode support - - supported python versions: 2.7, 3.4, 3.5, 3.6, 3.7 + - supported python versions: 2.7, 3.5, 3.6, 3.7, 3.8 - Method chaining_ Similar projects: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/EasyProcess-0.2.7/Vagrantfile new/EasyProcess-0.2.8/Vagrantfile --- old/EasyProcess-0.2.7/Vagrantfile 2019-05-25 20:55:52.000000000 +0200 +++ new/EasyProcess-0.2.8/Vagrantfile 2019-12-18 17:31:34.000000000 +0100 @@ -73,10 +73,10 @@ sudo add-apt-repository --yes ppa:deadsnakes/ppa sudo apt-get update sudo apt-get install -y python2.7-dev - sudo apt-get install -y python3.4-dev sudo apt-get install -y python3.5-dev sudo apt-get install -y python3.6-dev sudo apt-get install -y python3.7-dev + sudo apt-get install -y python3.8-dev sudo apt-get install -y python3-distutils # tools diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/EasyProcess-0.2.7/easyprocess/__init__.py new/EasyProcess-0.2.8/easyprocess/__init__.py --- old/EasyProcess-0.2.7/easyprocess/__init__.py 2019-05-25 20:55:52.000000000 +0200 +++ new/EasyProcess-0.2.8/easyprocess/__init__.py 2019-12-18 17:31:34.000000000 +0100 @@ -108,10 +108,12 @@ cmd = split_command(cmd) self.cmd = cmd self.cmd_as_string = ' '.join(self.cmd) # TODO: not perfect + self.enable_stdout_log = True + self.enable_stderr_log = True - log.debug('param: "%s" ', self.cmd_param) + # log.debug('param: "%s" ', self.cmd_param) log.debug('command: %s', self.cmd) - log.debug('joined command: %s', self.cmd_as_string) + # log.debug('joined command: %s', self.cmd_as_string) if not len(cmd): raise EasyProcessError(self, 'empty command!') @@ -150,7 +152,8 @@ return self.popen.returncode def check(self, return_code=0): - """Run command with arguments. Wait for command to complete. If the + """DEPRECATED + Run command with arguments. Wait for command to complete. If the exit code was as expected and there is no exception then return, otherwise raise EasyProcessError. @@ -166,7 +169,8 @@ return self def check_installed(self): - """Used for testing if program is installed. + """DEPRECATED + Used for testing if program is installed. Run command with arguments. Wait for command to complete. If OSError raised, then raise :class:`EasyProcessCheckInstalledError` @@ -315,18 +319,19 @@ # communicate() blocks process, timeout not possible self._outputs_processed = True (self.stdout, self.stderr) = self.popen.communicate() - log.debug('process has ended') + log.debug('process has ended, return code=%s', self.return_code) self.stdout = remove_ending_lf(unidecode(self.stdout)) self.stderr = remove_ending_lf(unidecode(self.stderr)) - log.debug('return code=%s', self.return_code) # def limit_str(s): # if len(s) > self.max_bytes_to_log: # warn = '[middle of output was removed, max_bytes_to_log=%s]'%(self.max_bytes_to_log) # s = s[:self.max_bytes_to_log / 2] + warn + s[-self.max_bytes_to_log / 2:] # return s - log.debug('stdout=%s', self.stdout) - log.debug('stderr=%s', self.stderr) + if self.enable_stdout_log: + log.debug('stdout=%s', self.stdout) + if self.enable_stderr_log: + log.debug('stderr=%s', self.stderr) def stop(self): """Kill process and wait for command to complete. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/EasyProcess-0.2.7/easyprocess/about.py new/EasyProcess-0.2.8/easyprocess/about.py --- old/EasyProcess-0.2.7/easyprocess/about.py 2019-05-25 20:55:52.000000000 +0200 +++ new/EasyProcess-0.2.8/easyprocess/about.py 2019-12-18 17:31:34.000000000 +0100 @@ -1 +1 @@ -__version__ = '0.2.7' +__version__ = '0.2.8' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/EasyProcess-0.2.7/setup.py new/EasyProcess-0.2.8/setup.py --- old/EasyProcess-0.2.7/setup.py 2019-05-25 20:55:52.000000000 +0200 +++ new/EasyProcess-0.2.8/setup.py 2019-12-18 17:31:34.000000000 +0100 @@ -36,10 +36,10 @@ 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', ] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/EasyProcess-0.2.7/tests/coverage/fast/test_examples.py new/EasyProcess-0.2.8/tests/coverage/fast/test_examples.py --- old/EasyProcess-0.2.7/tests/coverage/fast/test_examples.py 2019-05-25 20:55:52.000000000 +0200 +++ new/EasyProcess-0.2.8/tests/coverage/fast/test_examples.py 2019-12-18 17:31:34.000000000 +0100 @@ -1,10 +1,11 @@ from easyprocess import EasyProcess from nose.tools import eq_ -from nose.tools import ok_ import sys - def test(): + # skip these tests for Windows + if not sys.platform.startswith('linux'): + return eq_(EasyProcess([sys.executable, '-m', 'easyprocess.examples.ver'] ).call().return_code, 0) eq_(EasyProcess([sys.executable, '-m', 'easyprocess.examples.log'] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/EasyProcess-0.2.7/tox.ini new/EasyProcess-0.2.8/tox.ini --- old/EasyProcess-0.2.7/tox.ini 2019-05-25 20:55:52.000000000 +0200 +++ new/EasyProcess-0.2.8/tox.ini 2019-12-18 17:31:34.000000000 +0100 @@ -1,5 +1,10 @@ [tox] -envlist = py27,py34,py35,py36,py37 +envlist = + py27 + py35 + py36 + py37 + py38 [testenv] deps=