Hello community,
here is the log from the commit of package python-EasyProcess for
openSUSE:Leap:15.2 checked in at 2020-03-15 07:11:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-EasyProcess (Old)
and /work/SRC/openSUSE:Leap:15.2/.python-EasyProcess.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-EasyProcess"
Sun Mar 15 07:11:10 2020 rev:12 rq:784481 version:0.2.7
Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-EasyProcess/python-EasyProcess.changes
2020-02-21 23:48:36.628478104 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.python-EasyProcess.new.3160/python-EasyProcess.changes
2020-03-15 07:11:30.320968530 +0100
@@ -2,13 +1,0 @@
-Mon Jan 13 15:13:26 UTC 2020 - Marketa Calabkova <[email protected]>
-
-- update to version 0.2.8
- * enable_stdout_log, enable_stderr_log
- * py38 support
- * remove py34 support
-
--------------------------------------------------------------------
-Tue Nov 5 09:53:44 UTC 2019 - Tomáš Chvátal <[email protected]>
-
-- Update with spec-cleaner
-
--------------------------------------------------------------------
Old:
----
0.2.8.tar.gz
New:
----
0.2.7.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-EasyProcess.spec ++++++
--- /var/tmp/diff_new_pack.w7H16q/_old 2020-03-15 07:11:30.624968712 +0100
+++ /var/tmp/diff_new_pack.w7H16q/_new 2020-03-15 07:11:30.624968712 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-EasyProcess
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2019 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
@@ -18,10 +18,11 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-EasyProcess
-Version: 0.2.8
+Version: 0.2.7
Release: 0
Summary: Python subprocess interface
License: BSD-2-Clause
+Group: Development/Languages/Python
URL: https://github.com/ponty/easyprocess
Source: https://github.com/ponty/EasyProcess/archive/%{version}.tar.gz
BuildRequires: %{python_module nose}
@@ -67,6 +68,7 @@
rm -f tests/coverage/fast/test_deadlock.py
2to3 -w easyprocess/examples/log.py
+
%build
%python_build
++++++ 0.2.8.tar.gz -> 0.2.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/EasyProcess-0.2.8/.travis.yml
new/EasyProcess-0.2.7/.travis.yml
--- old/EasyProcess-0.2.8/.travis.yml 2019-12-18 17:31:34.000000000 +0100
+++ new/EasyProcess-0.2.7/.travis.yml 2019-05-25 20:55:52.000000000 +0200
@@ -1,26 +1,15 @@
language: python
python:
- "2.7"
+ - "3.4"
- "3.5"
- "3.6"
matrix:
include:
- - name: 3.7_xenial
- python: 3.7
+ - python: 3.7
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
+ env: DIST="xenial"
before_install:
- sudo apt-get update -qq
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/EasyProcess-0.2.8/README.rst
new/EasyProcess-0.2.7/README.rst
--- old/EasyProcess-0.2.8/README.rst 2019-12-18 17:31:34.000000000 +0100
+++ new/EasyProcess-0.2.7/README.rst 2019-05-25 20:55:52.000000000 +0200
@@ -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.5, 3.6, 3.7, 3.8
+ - supported python versions: 2.7, 3.4, 3.5, 3.6, 3.7
- Method chaining_
Similar projects:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/EasyProcess-0.2.8/Vagrantfile
new/EasyProcess-0.2.7/Vagrantfile
--- old/EasyProcess-0.2.8/Vagrantfile 2019-12-18 17:31:34.000000000 +0100
+++ new/EasyProcess-0.2.7/Vagrantfile 2019-05-25 20:55:52.000000000 +0200
@@ -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.8/easyprocess/__init__.py
new/EasyProcess-0.2.7/easyprocess/__init__.py
--- old/EasyProcess-0.2.8/easyprocess/__init__.py 2019-12-18
17:31:34.000000000 +0100
+++ new/EasyProcess-0.2.7/easyprocess/__init__.py 2019-05-25
20:55:52.000000000 +0200
@@ -108,12 +108,10 @@
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!')
@@ -152,8 +150,7 @@
return self.popen.returncode
def check(self, return_code=0):
- """DEPRECATED
- Run command with arguments. Wait for command to complete. If the
+ """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.
@@ -169,8 +166,7 @@
return self
def check_installed(self):
- """DEPRECATED
- Used for testing if program is installed.
+ """Used for testing if program is installed.
Run command with arguments. Wait for command to complete.
If OSError raised, then raise :class:`EasyProcessCheckInstalledError`
@@ -319,19 +315,18 @@
# communicate() blocks process, timeout not possible
self._outputs_processed = True
(self.stdout, self.stderr) = self.popen.communicate()
- log.debug('process has ended, return code=%s', self.return_code)
+ log.debug('process has ended')
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
- if self.enable_stdout_log:
- log.debug('stdout=%s', self.stdout)
- if self.enable_stderr_log:
- log.debug('stderr=%s', self.stderr)
+ log.debug('stdout=%s', self.stdout)
+ 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.8/easyprocess/about.py
new/EasyProcess-0.2.7/easyprocess/about.py
--- old/EasyProcess-0.2.8/easyprocess/about.py 2019-12-18 17:31:34.000000000
+0100
+++ new/EasyProcess-0.2.7/easyprocess/about.py 2019-05-25 20:55:52.000000000
+0200
@@ -1 +1 @@
-__version__ = '0.2.8'
+__version__ = '0.2.7'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/EasyProcess-0.2.8/setup.py
new/EasyProcess-0.2.7/setup.py
--- old/EasyProcess-0.2.8/setup.py 2019-12-18 17:31:34.000000000 +0100
+++ new/EasyProcess-0.2.7/setup.py 2019-05-25 20:55:52.000000000 +0200
@@ -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.8/tests/coverage/fast/test_examples.py
new/EasyProcess-0.2.7/tests/coverage/fast/test_examples.py
--- old/EasyProcess-0.2.8/tests/coverage/fast/test_examples.py 2019-12-18
17:31:34.000000000 +0100
+++ new/EasyProcess-0.2.7/tests/coverage/fast/test_examples.py 2019-05-25
20:55:52.000000000 +0200
@@ -1,11 +1,10 @@
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.8/tox.ini
new/EasyProcess-0.2.7/tox.ini
--- old/EasyProcess-0.2.8/tox.ini 2019-12-18 17:31:34.000000000 +0100
+++ new/EasyProcess-0.2.7/tox.ini 2019-05-25 20:55:52.000000000 +0200
@@ -1,10 +1,5 @@
[tox]
-envlist =
- py27
- py35
- py36
- py37
- py38
+envlist = py27,py34,py35,py36,py37
[testenv]
deps=