Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pytest-sugar for
openSUSE:Factory checked in at 2022-11-30 15:00:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-sugar (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-sugar.new.1597 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-sugar"
Wed Nov 30 15:00:21 2022 rev:8 rq:1039090 version:0.9.6
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pytest-sugar/python-pytest-sugar.changes
2020-11-06 23:45:15.887244596 +0100
+++
/work/SRC/openSUSE:Factory/.python-pytest-sugar.new.1597/python-pytest-sugar.changes
2022-11-30 15:01:17.429817945 +0100
@@ -1,0 +2,12 @@
+Wed Nov 30 11:39:52 UTC 2022 - Daniel Garcia <[email protected]>
+
+- Remove python_module macro definition
+- More specific python_sitelib in %files
+- Update to 0.9.6:
+ * Remove py.std calls (thanks @alexcjohnson)
+- 0.9.5:
+ * Fix distutils deprecation warning (thanks @tgagor)
+ * Fix incompatibility with pytest-timeout (thanks @graingert)
+ * Update pytest naming convention in documentation (thanks @avallbona)
+
+-------------------------------------------------------------------
Old:
----
pytest-sugar-0.9.4.tar.gz
New:
----
pytest-sugar-0.9.6.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-sugar.spec ++++++
--- /var/tmp/diff_new_pack.MGhWjM/_old 2022-11-30 15:01:17.853820434 +0100
+++ /var/tmp/diff_new_pack.MGhWjM/_new 2022-11-30 15:01:17.861820481 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-pytest-sugar
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,9 +16,8 @@
#
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest-sugar
-Version: 0.9.4
+Version: 0.9.6
Release: 0
Summary: Pretty printer for pytest progress
License: BSD-3-Clause
@@ -53,6 +52,8 @@
%files %{python_files}
%license LICENSE
%doc README.md
-%{python_sitelib}/*
+%pycache_only %{python_sitelib}/__pycache__/*.pyc
+%{python_sitelib}/pytest_sugar.py
+%{python_sitelib}/pytest_sugar-%{version}*-info
%changelog
++++++ pytest-sugar-0.9.4.tar.gz -> pytest-sugar-0.9.6.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-sugar-0.9.4/CHANGES.rst
new/pytest-sugar-0.9.6/CHANGES.rst
--- old/pytest-sugar-0.9.4/CHANGES.rst 2020-07-06 20:38:26.000000000 +0200
+++ new/pytest-sugar-0.9.6/CHANGES.rst 2022-11-05 09:00:09.000000000 +0100
@@ -3,6 +3,18 @@
A list of changes between each release.
+0.9.6 (2022-11-5)
+^^^^^^^^^^^^^^^^^^^
+
+- Remove py.std calls (thanks @alexcjohnson)
+
+0.9.5 (2022-07-10)
+^^^^^^^^^^^^^^^^^^^
+
+- Fix distutils deprecation warning (thanks @tgagor)
+- Fix incompatibility with pytest-timeout (thanks @graingert)
+- Update pytest naming convention in documentation (thanks @avallbona)
+
0.9.4 (2020-07-06)
^^^^^^^^^^^^^^^^^^^
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-sugar-0.9.4/PKG-INFO
new/pytest-sugar-0.9.6/PKG-INFO
--- old/pytest-sugar-0.9.4/PKG-INFO 2020-07-06 20:39:17.000000000 +0200
+++ new/pytest-sugar-0.9.6/PKG-INFO 2022-11-05 09:03:13.919092400 +0100
@@ -1,52 +1,13 @@
-Metadata-Version: 1.1
+Metadata-Version: 2.1
Name: pytest-sugar
-Version: 0.9.4
+Version: 0.9.6
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/
+Home-page: https://pivotfinland.com/pytest-sugar/
Author: Teemu, Janne Vanhala and others
Author-email: [email protected], [email protected]
License: BSD
-Description: # pytest-sugar
-
- [](https://travis-ci.org/Teemu/pytest-sugar)
- [](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.
-
- 
-
- ## Requirements
-
- You will need the following prerequisites in order to use pytest-sugar:
-
- - Python 2.7, 3.4 or newer
- - pytest 2.9.0 or newer
- - pytest-xdist 1.14 or above if you want the progress bar to work
while running
- tests in parallel
-
- ## Installation
-
- To install pytest-sugar:
-
- pip install pytest-sugar
-
- Then run your tests with:
-
- py.test
-
- If you would like more detailed output (one test per line), then you
may use the verbose option:
-
- py.test --verbose
-
- If you would like to run tests without pytest-sugar, use:
-
- 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/Teemu/pytest-sugar/pull/49#issuecomment-146567670) for more
details.
-
+Project-URL: Source, https://github.com/Teemu/pytest-sugar/
+Project-URL: Tracker, https://github.com/Teemu/pytest-sugar/issues
Platform: any
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
@@ -64,4 +25,53 @@
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: Implementation :: PyPy
+Description-Content-Type: text/markdown
+License-File: LICENSE
+
+# pytest-sugar
+
+[](https://travis-ci.org/Teemu/pytest-sugar)
+[](https://pypi.org/project/pytest-sugar/)
+
+pytest-sugar is a plugin for [pytest](http://pytest.org) that shows
+failures and errors instantly and shows a progress bar.
+
+
+
+## Similar projects
+
+- [pytest-rich](https://github.com/nicoddemus/pytest-rich)
+- [pytest-pretty](https://github.com/samuelcolvin/pytest-pretty)
+
+## Requirements
+
+You will need the following prerequisites in order to use pytest-sugar:
+
+- Python 2.7, 3.4 or newer
+- pytest 2.9.0 or newer
+- pytest-xdist 1.14 or above if you want the progress bar to work while running
+ tests in parallel
+
+## Installation
+
+To install pytest-sugar:
+
+ pip install pytest-sugar
+
+Then run your tests with:
+
+ $Â pytest
+
+If you would like more detailed output (one test per line), then you may use
the verbose option:
+
+ $ pytest --verbose
+
+If you would like to run tests without pytest-sugar, use:
+
+ $ pytest -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/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.4/README.md
new/pytest-sugar-0.9.6/README.md
--- old/pytest-sugar-0.9.4/README.md 2020-04-26 15:25:49.000000000 +0200
+++ new/pytest-sugar-0.9.6/README.md 2022-11-05 08:57:08.000000000 +0100
@@ -3,10 +3,15 @@
[](https://travis-ci.org/Teemu/pytest-sugar)
[](https://pypi.org/project/pytest-sugar/)
-pytest-sugar is a plugin for [py.test](http://pytest.org) that shows
+pytest-sugar is a plugin for [pytest](http://pytest.org) that shows
failures and errors instantly and shows a progress bar.
-
+
+
+## Similar projects
+
+- [pytest-rich](https://github.com/nicoddemus/pytest-rich)
+- [pytest-pretty](https://github.com/samuelcolvin/pytest-pretty)
## Requirements
@@ -25,15 +30,15 @@
Then run your tests with:
- py.test
+ $Â pytest
If you would like more detailed output (one test per line), then you may use
the verbose option:
- py.test --verbose
+ $ pytest --verbose
If you would like to run tests without pytest-sugar, use:
- py.test -p no:sugar
+ $ pytest -p no:sugar
## Running on Windows
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-sugar-0.9.4/pytest_sugar.egg-info/PKG-INFO
new/pytest-sugar-0.9.6/pytest_sugar.egg-info/PKG-INFO
--- old/pytest-sugar-0.9.4/pytest_sugar.egg-info/PKG-INFO 2020-07-06
20:39:17.000000000 +0200
+++ new/pytest-sugar-0.9.6/pytest_sugar.egg-info/PKG-INFO 2022-11-05
09:03:13.000000000 +0100
@@ -1,52 +1,13 @@
-Metadata-Version: 1.1
+Metadata-Version: 2.1
Name: pytest-sugar
-Version: 0.9.4
+Version: 0.9.6
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/
+Home-page: https://pivotfinland.com/pytest-sugar/
Author: Teemu, Janne Vanhala and others
Author-email: [email protected], [email protected]
License: BSD
-Description: # pytest-sugar
-
- [](https://travis-ci.org/Teemu/pytest-sugar)
- [](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.
-
- 
-
- ## Requirements
-
- You will need the following prerequisites in order to use pytest-sugar:
-
- - Python 2.7, 3.4 or newer
- - pytest 2.9.0 or newer
- - pytest-xdist 1.14 or above if you want the progress bar to work
while running
- tests in parallel
-
- ## Installation
-
- To install pytest-sugar:
-
- pip install pytest-sugar
-
- Then run your tests with:
-
- py.test
-
- If you would like more detailed output (one test per line), then you
may use the verbose option:
-
- py.test --verbose
-
- If you would like to run tests without pytest-sugar, use:
-
- 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/Teemu/pytest-sugar/pull/49#issuecomment-146567670) for more
details.
-
+Project-URL: Source, https://github.com/Teemu/pytest-sugar/
+Project-URL: Tracker, https://github.com/Teemu/pytest-sugar/issues
Platform: any
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
@@ -64,4 +25,53 @@
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: Implementation :: PyPy
+Description-Content-Type: text/markdown
+License-File: LICENSE
+
+# pytest-sugar
+
+[](https://travis-ci.org/Teemu/pytest-sugar)
+[](https://pypi.org/project/pytest-sugar/)
+
+pytest-sugar is a plugin for [pytest](http://pytest.org) that shows
+failures and errors instantly and shows a progress bar.
+
+
+
+## Similar projects
+
+- [pytest-rich](https://github.com/nicoddemus/pytest-rich)
+- [pytest-pretty](https://github.com/samuelcolvin/pytest-pretty)
+
+## Requirements
+
+You will need the following prerequisites in order to use pytest-sugar:
+
+- Python 2.7, 3.4 or newer
+- pytest 2.9.0 or newer
+- pytest-xdist 1.14 or above if you want the progress bar to work while running
+ tests in parallel
+
+## Installation
+
+To install pytest-sugar:
+
+ pip install pytest-sugar
+
+Then run your tests with:
+
+ $Â pytest
+
+If you would like more detailed output (one test per line), then you may use
the verbose option:
+
+ $ pytest --verbose
+
+If you would like to run tests without pytest-sugar, use:
+
+ $ pytest -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/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.4/pytest_sugar.egg-info/entry_points.txt
new/pytest-sugar-0.9.6/pytest_sugar.egg-info/entry_points.txt
--- old/pytest-sugar-0.9.4/pytest_sugar.egg-info/entry_points.txt
2020-07-06 20:39:17.000000000 +0200
+++ new/pytest-sugar-0.9.6/pytest_sugar.egg-info/entry_points.txt
2022-11-05 09:03:13.000000000 +0100
@@ -1,3 +1,2 @@
[pytest11]
sugar = pytest_sugar
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-sugar-0.9.4/pytest_sugar.py
new/pytest-sugar-0.9.6/pytest_sugar.py
--- old/pytest-sugar-0.9.4/pytest_sugar.py 2020-07-06 20:36:24.000000000
+0200
+++ new/pytest-sugar-0.9.6/pytest_sugar.py 2022-11-05 09:02:13.000000000
+0100
@@ -3,8 +3,8 @@
pytest_sugar
~~~~~~~~~~~~
-py.test is a plugin for py.test that changes the default look
-and feel of py.test (e.g. progressbar, show tests that fail instantly).
+pytest-sugar is a plugin for pytest that changes the default look
+and feel of pytest (e.g. progressbar, show tests that fail instantly).
:copyright: see LICENSE for details
:license: BSD, see LICENSE for more details.
@@ -14,6 +14,7 @@
import os
import re
import sys
+import time
from packaging.version import parse
try:
@@ -23,12 +24,11 @@
from termcolor import colored
-import py
import pytest
from _pytest.terminal import TerminalReporter
-__version__ = '0.9.4'
+__version__ = '0.9.6'
LEN_RIGHT_MARGIN = 0
LEN_PROGRESS_PERCENTAGE = 5
@@ -165,9 +165,9 @@
except ImportError:
pass
else:
- from distutils.version import LooseVersion
- xdist_version = LooseVersion(xdist.__version__)
- if xdist_version >= LooseVersion('1.14'):
+ from packaging import version
+ xdist_version = version.Version(xdist.__version__)
+ if xdist_version >= version.Version('1.14'):
config.pluginmanager.register(DeferredXdistPlugin())
if IS_SUGAR_ENABLED and not getattr(config, 'slaveinput', None):
@@ -239,7 +239,7 @@
def pytest_sessionstart(self, session):
self._session = session
- self._sessionstarttime = py.std.time.time()
+ self._sessionstarttime = time.time()
verinfo = ".".join(map(str, sys.version_info[:3]))
self.write_line(
"Test session starts "
@@ -474,15 +474,16 @@
if not letter and not word:
return
if self.verbosity > 0:
+ markup = {'red': True}
if isinstance(word, tuple):
word, markup = word
else:
if report.passed:
markup = {'green': True}
- elif report.failed:
- markup = {'red': True}
elif report.skipped:
markup = {'yellow': True}
+ elif hasattr(report, "rerun") and isinstance(report.rerun,
int):
+ markup = {'blue': True}
line = self._locationline(str(report.fspath), *report.location)
if hasattr(report, 'node'):
self._tw.write("\r\n")
@@ -503,7 +504,7 @@
return 0
def summary_stats(self):
- session_duration = py.std.time.time() - self._sessionstarttime
+ session_duration = time.time() - self._sessionstarttime
print("\nResults (%.2fs):" % round(session_duration, 2))
if self.count('passed') > 0:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-sugar-0.9.4/setup.cfg
new/pytest-sugar-0.9.6/setup.cfg
--- old/pytest-sugar-0.9.4/setup.cfg 2020-07-06 20:39:17.000000000 +0200
+++ new/pytest-sugar-0.9.6/setup.cfg 2022-11-05 09:03:13.919517300 +0100
@@ -4,5 +4,4 @@
[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.4/setup.py
new/pytest-sugar-0.9.6/setup.py
--- old/pytest-sugar-0.9.4/setup.py 2020-04-26 15:25:49.000000000 +0200
+++ new/pytest-sugar-0.9.6/setup.py 2022-04-02 19:00:48.000000000 +0200
@@ -29,7 +29,11 @@
long_description=codecs.open("README.md", encoding='utf-8').read(),
long_description_content_type='text/markdown',
version=get_version('pytest_sugar.py'),
- url='http://pivotfinland.com/pytest-sugar/',
+ url='https://pivotfinland.com/pytest-sugar/',
+ project_urls={
+ 'Source': 'https://github.com/Teemu/pytest-sugar/',
+ 'Tracker': 'https://github.com/Teemu/pytest-sugar/issues',
+ },
license='BSD',
author='Teemu, Janne Vanhala and others',
author_email='[email protected], [email protected]',
@@ -56,6 +60,7 @@
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
+ 'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: PyPy',
]
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-sugar-0.9.4/tox.ini
new/pytest-sugar-0.9.6/tox.ini
--- old/pytest-sugar-0.9.4/tox.ini 2020-04-26 15:25:49.000000000 +0200
+++ new/pytest-sugar-0.9.6/tox.ini 2022-04-02 19:00:48.000000000 +0200
@@ -1,38 +1,55 @@
[tox]
+minversion = 3.14.0
envlist = py{27,34,35,36,37,py}-pytest39-{supported,unsupported}-xdist
qa
+requires = virtualenv>=20.0.31
[testenv]
+install_command =
+ {py34,.tox}: python -m pip install {opts} {packages}
+ !{py34,.tox}: python -m pip install --use-feature=2020-resolver
--use-feature=fast-deps {opts} {packages}
deps =
- pytest-cov
- 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
+ pytest36: pytest~=3.6.4
+ pytest37: pytest~=3.7.4
+ pytest38: pytest~=3.8.2
+ pytest39: pytest~=3.9.3
+ pytest310: pytest~=3.10.1
+ pytest40: pytest~=4.0.2
+ pytest41: pytest~=4.1.1
+ pytest42: pytest~=4.2.1
+ pytest43: pytest~=4.3.1
+ pytest44: pytest~=4.4.2
+ pytest45: pytest~=4.5.0
+ pytest46: pytest~=4.6.11
+ pytest54: pytest~=5.4.3
+ pytest60: pytest~=6.0.1
termcolor>=1.1.0
supported-xdist: pytest-xdist{env:_TOX_SUGAR_XDIST_VERSION:>=1.14}
+ supported-xdist: pytest-forked{env:_TOX_SUGAR_FORKED_VERSION:>=1.3.0}
+ pytest-cov{env:_TOX_SUGAR_COV_VERSION:>=2.10.0}
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
+
+ # pytest-cov >= 2.10 requires pytest>=4.6
+ !py34-pytest{36,37,38,39,310,40,41,42,43,45}:
_TOX_SUGAR_COV_VERSION=~=2.9.0
+ # pytest-cov >= 2.9.0 requires python>=3.4 or ~=2.7.0
+ py34: _TOX_SUGAR_COV_VERSION=~=2.8.1
+
+ # pytest-forked >= 1.3.0 requires pytest>=3.10
+ !py34-pytest{36,37,38,39}: _TOX_SUGAR_FORKED_VERSION=~=1.2.0
+ # pytest-forked >= 1.2.0 requires python>=3.4 or ~=2.7.0
+ py34: _TOX_SUGAR_FORKED_VERSION=~=1.1.3
commands =
pytest --cov --cov-config=.coveragerc {posargs:test_sugar.py}
# Oldest supported (testable) version.
[testenv:pytest30]
deps =
- pytest>=3.0,<3.1
+ pytest~=3.0.7
pytest-xdist<1.25
pytest-forked<0.3
pytest-cov<2.6.1