Hello community,
here is the log from the commit of package python-pytest-sugar for openSUSE:Factory checked in at 2020-05-01 11:05:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-sugar (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-sugar.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-sugar"
Fri May 1 11:05:51 2020 rev:6 rq:798131 version:0.9.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pytest-sugar/python-pytest-sugar.changes 2019-07-30 13:06:12.570375040 +0200
+++ /work/SRC/openSUSE:Factory/.python-pytest-sugar.new.2738/python-pytest-sugar.changes 2020-05-01 11:06:03.202894935 +0200
@@ -1,0 +2,7 @@
+Mon Apr 27 09:30:57 UTC 2020 - Tomáš Chvátal
+
+- Update to 0.9.3:
+ * Fix incompatibility with pytest 5.4.0 (thanks @GuillaumeFavelier)
+- Drop patch pytest4.patch
+
+-------------------------------------------------------------------
Old:
----
pytest-sugar-0.9.2.tar.gz
pytest4.patch
New:
----
pytest-sugar-0.9.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-sugar.spec ++++++
--- /var/tmp/diff_new_pack.SFrKeM/_old 2020-05-01 11:06:05.258899406 +0200
+++ /var/tmp/diff_new_pack.SFrKeM/_new 2020-05-01 11:06:05.262899415 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-pytest-sugar
#
-# 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,20 +18,18 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest-sugar
-Version: 0.9.2
+Version: 0.9.3
Release: 0
Summary: Pretty printer for pytest progress
License: BSD-3-Clause
-Group: Development/Languages/Python
URL: https://github.com/Frozenball/pytest-sugar
Source: https://files.pythonhosted.org/packages/source/p/pytest-sugar/pytest-sugar-%{version}.tar.gz
-Patch0: pytest4.patch
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module termcolor}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
-Requires: python-pytest < 5.0
+Requires: python-pytest
Requires: python-termcolor
BuildArch: noarch
%python_subpackages
@@ -41,7 +39,6 @@
%prep
%setup -q -n pytest-sugar-%{version}
-%patch0 -p1
%build
%python_build
++++++ pytest-sugar-0.9.2.tar.gz -> pytest-sugar-0.9.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-sugar-0.9.2/CHANGES.rst new/pytest-sugar-0.9.3/CHANGES.rst
--- old/pytest-sugar-0.9.2/CHANGES.rst 2018-11-08 21:52:48.000000000 +0100
+++ new/pytest-sugar-0.9.3/CHANGES.rst 2020-04-26 15:31:38.000000000 +0200
@@ -3,6 +3,11 @@
A list of changes between each release.
+0.9.3 (2020-04-26)
+^^^^^^^^^^^^^^^^^^^
+
+- Fix incompatibility with pytest 5.4.0 (thanks @GuillaumeFavelier)
+
0.9.2 (2018-11-8)
^^^^^^^^^^^^^^^^^^^
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-sugar-0.9.2/PKG-INFO new/pytest-sugar-0.9.3/PKG-INFO
--- old/pytest-sugar-0.9.2/PKG-INFO 2018-11-08 22:06:11.000000000 +0100
+++ new/pytest-sugar-0.9.3/PKG-INFO 2020-04-26 15:32:40.000000000 +0200
@@ -1,6 +1,6 @@
-Metadata-Version: 2.1
+Metadata-Version: 1.1
Name: pytest-sugar
-Version: 0.9.2
+Version: 0.9.3
Summary: pytest-sugar is a plugin for pytest that changes the default look and feel of pytest (e.g. progressbar, show tests that fail instantly).
Home-page: http://pivotfinland.com/pytest-sugar/
Author: Teemu, Janne Vanhala and others
@@ -8,12 +8,13 @@
License: BSD
Description: # pytest-sugar
- [![](https://travis-ci.org/Frozenball/pytest-sugar.svg?branch=master)](https://travis-ci.org/Frozenball/pytest-sugar) ![](https://img.shields.io/pypi/v/pytest-sugar.svg)
+ [![Build status](https://travis-ci.org/Teemu/pytest-sugar.svg?branch=master)](https://travis-ci.org/Teemu/pytest-sugar)
+ [![Pypi version](https://img.shields.io/pypi/v/pytest-sugar.svg)](https://pypi.org/project/pytest-sugar/)
pytest-sugar is a plugin for [py.test](http://pytest.org) that shows
failures and errors instantly and shows a progress bar.
- ![](http://pivotfinland.com/pytest-sugar/img/video.gif)
+ ![Demo](http://pivotfinland.com/pytest-sugar/img/video.gif)
## Requirements
@@ -28,23 +29,23 @@
To install pytest-sugar:
- $ pip install pytest-sugar
+ pip install pytest-sugar
Then run your tests with:
- $ py.test
+ py.test
If you would like more detailed output (one test per line), then you may use the verbose option:
- $ py.test --verbose
+ py.test --verbose
If you would like to run tests without pytest-sugar, use:
- $ py.test -p no:sugar
+ py.test -p no:sugar
## Running on Windows
- If you are seeing gibberish, you might want to try changing charset and fonts. See [this comment]( https://github.com/Frozenball/pytest-sugar/pull/49#issuecomment-146567670) for more details.
+ If you are seeing gibberish, you might want to try changing charset and fonts. See [this comment]( https://github.com/Teemu/pytest-sugar/pull/49#issuecomment-146567670) for more details.
Platform: any
Classifier: Development Status :: 3 - Alpha
@@ -64,4 +65,3 @@
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: Implementation :: PyPy
-Description-Content-Type: text/markdown
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-sugar-0.9.2/README.md new/pytest-sugar-0.9.3/README.md
--- old/pytest-sugar-0.9.2/README.md 2018-02-06 14:31:18.000000000 +0100
+++ new/pytest-sugar-0.9.3/README.md 2020-04-26 15:25:49.000000000 +0200
@@ -1,11 +1,12 @@
# pytest-sugar
-[![](https://travis-ci.org/Frozenball/pytest-sugar.svg?branch=master)](https://travis-ci.org/Frozenball/pytest-sugar) ![](https://img.shields.io/pypi/v/pytest-sugar.svg)
+[![Build status](https://travis-ci.org/Teemu/pytest-sugar.svg?branch=master)](https://travis-ci.org/Teemu/pytest-sugar)
+[![Pypi version](https://img.shields.io/pypi/v/pytest-sugar.svg)](https://pypi.org/project/pytest-sugar/)
pytest-sugar is a plugin for [py.test](http://pytest.org) that shows
failures and errors instantly and shows a progress bar.
-![](http://pivotfinland.com/pytest-sugar/img/video.gif)
+![Demo](http://pivotfinland.com/pytest-sugar/img/video.gif)
## Requirements
@@ -20,20 +21,20 @@
To install pytest-sugar:
- $ pip install pytest-sugar
+ pip install pytest-sugar
Then run your tests with:
- $ py.test
+ py.test
If you would like more detailed output (one test per line), then you may use the verbose option:
- $ py.test --verbose
+ py.test --verbose
If you would like to run tests without pytest-sugar, use:
- $ py.test -p no:sugar
+ py.test -p no:sugar
## Running on Windows
-If you are seeing gibberish, you might want to try changing charset and fonts. See [this comment]( https://github.com/Frozenball/pytest-sugar/pull/49#issuecomment-146567670) for more details.
+If you are seeing gibberish, you might want to try changing charset and fonts. See [this comment]( https://github.com/Teemu/pytest-sugar/pull/49#issuecomment-146567670) for more details.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-sugar-0.9.2/pytest_sugar.egg-info/PKG-INFO new/pytest-sugar-0.9.3/pytest_sugar.egg-info/PKG-INFO
--- old/pytest-sugar-0.9.2/pytest_sugar.egg-info/PKG-INFO 2018-11-08 22:06:11.000000000 +0100
+++ new/pytest-sugar-0.9.3/pytest_sugar.egg-info/PKG-INFO 2020-04-26 15:32:40.000000000 +0200
@@ -1,6 +1,6 @@
-Metadata-Version: 2.1
+Metadata-Version: 1.1
Name: pytest-sugar
-Version: 0.9.2
+Version: 0.9.3
Summary: pytest-sugar is a plugin for pytest that changes the default look and feel of pytest (e.g. progressbar, show tests that fail instantly).
Home-page: http://pivotfinland.com/pytest-sugar/
Author: Teemu, Janne Vanhala and others
@@ -8,12 +8,13 @@
License: BSD
Description: # pytest-sugar
- [![](https://travis-ci.org/Frozenball/pytest-sugar.svg?branch=master)](https://travis-ci.org/Frozenball/pytest-sugar) ![](https://img.shields.io/pypi/v/pytest-sugar.svg)
+ [![Build status](https://travis-ci.org/Teemu/pytest-sugar.svg?branch=master)](https://travis-ci.org/Teemu/pytest-sugar)
+ [![Pypi version](https://img.shields.io/pypi/v/pytest-sugar.svg)](https://pypi.org/project/pytest-sugar/)
pytest-sugar is a plugin for [py.test](http://pytest.org) that shows
failures and errors instantly and shows a progress bar.
- ![](http://pivotfinland.com/pytest-sugar/img/video.gif)
+ ![Demo](http://pivotfinland.com/pytest-sugar/img/video.gif)
## Requirements
@@ -28,23 +29,23 @@
To install pytest-sugar:
- $ pip install pytest-sugar
+ pip install pytest-sugar
Then run your tests with:
- $ py.test
+ py.test
If you would like more detailed output (one test per line), then you may use the verbose option:
- $ py.test --verbose
+ py.test --verbose
If you would like to run tests without pytest-sugar, use:
- $ py.test -p no:sugar
+ py.test -p no:sugar
## Running on Windows
- If you are seeing gibberish, you might want to try changing charset and fonts. See [this comment]( https://github.com/Frozenball/pytest-sugar/pull/49#issuecomment-146567670) for more details.
+ If you are seeing gibberish, you might want to try changing charset and fonts. See [this comment]( https://github.com/Teemu/pytest-sugar/pull/49#issuecomment-146567670) for more details.
Platform: any
Classifier: Development Status :: 3 - Alpha
@@ -64,4 +65,3 @@
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: Implementation :: PyPy
-Description-Content-Type: text/markdown
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-sugar-0.9.2/pytest_sugar.py new/pytest-sugar-0.9.3/pytest_sugar.py
--- old/pytest-sugar-0.9.2/pytest_sugar.py 2018-11-08 21:56:59.000000000 +0100
+++ new/pytest-sugar-0.9.3/pytest_sugar.py 2020-04-26 15:31:18.000000000 +0200
@@ -28,7 +28,7 @@
from _pytest.terminal import TerminalReporter
-__version__ = '0.9.2'
+__version__ = '0.9.3'
LEN_RIGHT_MARGIN = 0
LEN_PROGRESS_PERCENTAGE = 5
@@ -211,7 +211,6 @@
class SugarTerminalReporter(TerminalReporter):
def __init__(self, reporter):
TerminalReporter.__init__(self, reporter.config)
- self.writer = self._tw
self.paths_left = []
self.tests_count = 0
self.tests_taken = 0
@@ -339,14 +338,14 @@
def overwrite(self, line, rel_line_num):
# Move cursor up rel_line_num lines
if rel_line_num > 0:
- self.writer.write("\033[%dA" % rel_line_num)
+ self.write("\033[%dA" % rel_line_num)
# Overwrite the line
- self.writer.write("\r%s" % line)
+ self.write("\r%s" % line)
# Return cursor to original line
if rel_line_num > 0:
- self.writer.write("\033[%dB" % rel_line_num)
+ self.write("\033[%dB" % rel_line_num)
def get_max_column_for_test_status(self):
return (
@@ -389,7 +388,7 @@
else:
self.current_lines[path] = " " * (2 + len(fspath))
self.current_line_nums[path] = self.current_line_num
- self.writer.write("\r\n")
+ self.write("\r\n")
def reached_last_column_for_test_status(self, report):
len_line = real_string_length(
@@ -616,11 +615,13 @@
self.write_line(line)
else:
msg = self._getfailureheadline(report)
- if not hasattr(report, 'when'):
+ # "when" was unset before pytest 4.2 for collection errors.
+ when = getattr(report, "when", "collect")
+ if when == "collect":
msg = "ERROR collecting " + msg
- elif report.when == "setup":
+ elif when == "setup":
msg = "ERROR at setup of " + msg
- elif report.when == "teardown":
+ elif when == "teardown":
msg = "ERROR at teardown of " + msg
self.write_line('')
self.write_sep("―", msg)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-sugar-0.9.2/setup.cfg new/pytest-sugar-0.9.3/setup.cfg
--- old/pytest-sugar-0.9.2/setup.cfg 2018-11-08 22:06:11.000000000 +0100
+++ new/pytest-sugar-0.9.3/setup.cfg 2020-04-26 15:32:40.000000000 +0200
@@ -4,4 +4,5 @@
[egg_info]
tag_build =
tag_date = 0
+tag_svn_revision = 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-sugar-0.9.2/test_sugar.py new/pytest-sugar-0.9.3/test_sugar.py
--- old/pytest-sugar-0.9.2/test_sugar.py 2018-11-08 22:04:26.000000000 +0100
+++ new/pytest-sugar-0.9.3/test_sugar.py 2020-04-26 15:25:49.000000000 +0200
@@ -269,7 +269,7 @@
assert 0
"""
)
- result = testdir.runpytest('-p no:sugar', '-s')
+ result = testdir.runpytest('-s')
result.stdout.fnmatch_lines([
'*test_one_passed*',
'*100%*',
@@ -547,7 +547,7 @@
\"\"\"
"""
)
- result = testdir.runpytest('--force-sugar', '--doctest-module')
+ result = testdir.runpytest('--force-sugar', '--doctest-modules')
assert result.ret == 1, result.stderr.str()
@@ -567,7 +567,7 @@
raise NotImplementedError
"""
)
- result = testdir.runpytest('--force-sugar', '--doctest-module')
+ result = testdir.runpytest('--force-sugar', '--doctest-modules')
assert result.ret == 1, result.stderr.str()
result.stdout.fnmatch_lines([
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-sugar-0.9.2/tox.ini new/pytest-sugar-0.9.3/tox.ini
--- old/pytest-sugar-0.9.2/tox.ini 2018-11-08 21:49:48.000000000 +0100
+++ new/pytest-sugar-0.9.3/tox.ini 2020-04-26 15:25:49.000000000 +0200
@@ -1,33 +1,41 @@
-# Tox (http://tox.testrun.org/) is a tool for running tests
-# in multiple virtualenvs. This configuration file will run the
-# test suite on all supported python versions. To use it, "pip install tox"
-# and then run "tox" from this directory.
-
[tox]
-envlist = py{27,34,35,36,py}-pytest30-supported-xdist,
- py{27,35}-pytest30-unsupported-xdist,
- py{27,34,py}-pytest31-supported-xdist
- py{27,34,py}-pytest34-supported-xdist
+envlist = py{27,34,35,36,37,py}-pytest39-{supported,unsupported}-xdist
qa
[testenv]
-passenv = CI TRAVIS_BUILD_ID TRAVIS TRAVIS_BRANCH TRAVIS_JOB_NUMBER TRAVIS_PULL_REQUEST TRAVIS_JOB_ID TRAVIS_REPO_SLUG TRAVIS_COMMIT
deps =
- codecov>=1.4.0
pytest-cov
- pytest30: pytest>=3.0,<3.1
- pytest31: pytest>=3.1,<3.2
- pytest34: pytest>=3.4,<3.5
+ pytest36: pytest>=3.6,<3.7
pytest37: pytest>=3.7,<3.8
+ pytest38: pytest>=3.8,<3.9
pytest39: pytest>=3.9,<3.10
pytest310: pytest>=3.10,<3.11
+ pytest40: pytest>=4.0,<4.1
+ pytest41: pytest>=4.1,<4.2
+ pytest42: pytest>=4.2,<4.3
+ pytest43: pytest>=4.3,<4.4
+ pytest44: pytest>=4.4,<4.5
+ pytest45: pytest>=4.5,<4.6
+ pytest46: pytest>=4.6,<4.7
+ pytest54: pytest>=5.4,<5.5
termcolor>=1.1.0
- supported-xdist: pytest-xdist>=1.14
+ supported-xdist: pytest-xdist{env:_TOX_SUGAR_XDIST_VERSION:>=1.14}
unsupported-xdist: pytest-xdist<1.14
rerunfailures: pytest-rerunfailures
+ pinned-attrs: attrs<19.2
+setenv =
+ # pytest-xdist >= 1.28 requires pytest 4.4
+ pytest{36,37,38,39,310,40,41,42,43}: _TOX_SUGAR_XDIST_VERSION=>=1.14,<1.28
commands =
- py.test --cov --cov-config=.coveragerc {posargs:test_sugar.py}
- codecov -e TOXENV
+ pytest --cov --cov-config=.coveragerc {posargs:test_sugar.py}
+
+# Oldest supported (testable) version.
+[testenv:pytest30]
+deps =
+ pytest>=3.0,<3.1
+ pytest-xdist<1.25
+ pytest-forked<0.3
+ pytest-cov<2.6.1
[testenv:qa]
deps =