Hello community,

here is the log from the commit of package python-pytest-tldr for 
openSUSE:Factory checked in at 2019-07-21 11:33:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-tldr (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-tldr.new.4126 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-tldr"

Sun Jul 21 11:33:44 2019 rev:3 rq:716614 version:0.2.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pytest-tldr/python-pytest-tldr.changes    
2019-06-12 13:15:17.184754566 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-tldr.new.4126/python-pytest-tldr.changes
  2019-07-21 11:33:45.548783230 +0200
@@ -1,0 +2,6 @@
+Thu Jul 18 16:52:52 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 0.2.0:
+  * no upstream changelog provided
+
+-------------------------------------------------------------------

Old:
----
  pytest-tldr-0.1.6.tar.gz

New:
----
  pytest-tldr-0.2.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pytest-tldr.spec ++++++
--- /var/tmp/diff_new_pack.Kg5IB0/_old  2019-07-21 11:33:46.092783138 +0200
+++ /var/tmp/diff_new_pack.Kg5IB0/_new  2019-07-21 11:33:46.092783138 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-pytest-tldr
-Version:        0.1.6
+Version:        0.2.0
 Release:        0
 Summary:        A pytest plugin that limits the output to just the things you 
need
 License:        BSD-3-Clause

++++++ pytest-tldr-0.1.6.tar.gz -> pytest-tldr-0.2.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-tldr-0.1.6/LICENSE 
new/pytest-tldr-0.2.0/LICENSE
--- old/pytest-tldr-0.1.6/LICENSE       2018-06-17 04:39:39.000000000 +0200
+++ new/pytest-tldr-0.2.0/LICENSE       2019-07-03 05:36:36.000000000 +0200
@@ -1,5 +1,5 @@
 
-Copyright (c) 2018, Russell Keith-Magee
+Copyright (c) 2019, Russell Keith-Magee
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-tldr-0.1.6/PKG-INFO 
new/pytest-tldr-0.2.0/PKG-INFO
--- old/pytest-tldr-0.1.6/PKG-INFO      2019-06-02 05:38:07.000000000 +0200
+++ new/pytest-tldr-0.2.0/PKG-INFO      2019-07-03 05:37:49.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: pytest-tldr
-Version: 0.1.6
+Version: 0.2.0
 Summary: A pytest plugin that limits the output to just the things you need.
 Home-page: https://github.com/freakboy3742/pytest-tldr
 Author: Russell Keith-Magee
@@ -20,8 +20,8 @@
             :target: https://pypi.org/project/pytest-tldr
             :alt: Python versions
         
-        .. image:: https://img.shields.io/pypi/l/briefcase.svg
-            :target: https://github.com/pybee/briefcase/blob/master/LICENSE
+        .. image:: https://img.shields.io/pypi/l/pytest-tldr.svg
+            :target: 
https://github.com/freakboy3742/pytest-tldr/blob/master/LICENSE
             :alt: License
         
         .. image:: 
https://dev.azure.com/beeware-project/pytest-tldr/_apis/build/status/freakboy3742.pytest-tldr?branchName=master
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-tldr-0.1.6/README.rst 
new/pytest-tldr-0.2.0/README.rst
--- old/pytest-tldr-0.1.6/README.rst    2019-06-02 05:33:37.000000000 +0200
+++ new/pytest-tldr-0.2.0/README.rst    2019-06-02 05:44:54.000000000 +0200
@@ -10,8 +10,8 @@
     :target: https://pypi.org/project/pytest-tldr
     :alt: Python versions
 
-.. image:: https://img.shields.io/pypi/l/briefcase.svg
-    :target: https://github.com/pybee/briefcase/blob/master/LICENSE
+.. image:: https://img.shields.io/pypi/l/pytest-tldr.svg
+    :target: https://github.com/freakboy3742/pytest-tldr/blob/master/LICENSE
     :alt: License
 
 .. image:: 
https://dev.azure.com/beeware-project/pytest-tldr/_apis/build/status/freakboy3742.pytest-tldr?branchName=master
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-tldr-0.1.6/pytest_tldr.egg-info/PKG-INFO 
new/pytest-tldr-0.2.0/pytest_tldr.egg-info/PKG-INFO
--- old/pytest-tldr-0.1.6/pytest_tldr.egg-info/PKG-INFO 2019-06-02 
05:38:07.000000000 +0200
+++ new/pytest-tldr-0.2.0/pytest_tldr.egg-info/PKG-INFO 2019-07-03 
05:37:49.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: pytest-tldr
-Version: 0.1.6
+Version: 0.2.0
 Summary: A pytest plugin that limits the output to just the things you need.
 Home-page: https://github.com/freakboy3742/pytest-tldr
 Author: Russell Keith-Magee
@@ -20,8 +20,8 @@
             :target: https://pypi.org/project/pytest-tldr
             :alt: Python versions
         
-        .. image:: https://img.shields.io/pypi/l/briefcase.svg
-            :target: https://github.com/pybee/briefcase/blob/master/LICENSE
+        .. image:: https://img.shields.io/pypi/l/pytest-tldr.svg
+            :target: 
https://github.com/freakboy3742/pytest-tldr/blob/master/LICENSE
             :alt: License
         
         .. image:: 
https://dev.azure.com/beeware-project/pytest-tldr/_apis/build/status/freakboy3742.pytest-tldr?branchName=master
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-tldr-0.1.6/pytest_tldr.py 
new/pytest-tldr-0.2.0/pytest_tldr.py
--- old/pytest-tldr-0.1.6/pytest_tldr.py        2019-06-02 05:34:14.000000000 
+0200
+++ new/pytest-tldr-0.2.0/pytest_tldr.py        2019-07-03 05:37:01.000000000 
+0200
@@ -1,6 +1,5 @@
 # -*- coding: utf-8 -*-
 from __future__ import print_function
-
 import platform
 import sys
 import time
@@ -8,13 +7,21 @@
 import pluggy
 import py
 import pytest
-from _pytest.main import (
-    EXIT_OK,
-    EXIT_TESTSFAILED,
-)
+try:
+    from _pytest.main import ExitCode
+except ImportError:
+    # PyTest <5 compatibibility
+    from _pytest.main import (
+        EXIT_OK,
+        EXIT_TESTSFAILED,
+    )
+
+    class ExitCode:
+        OK = EXIT_OK
+        TESTS_FAILED = EXIT_TESTSFAILED
 
 
-__version__ = '0.1.6'
+__version__ = '0.2.0'
 
 
 @pytest.hookimpl(trylast=True)
@@ -71,45 +78,54 @@
     ######################################################################
 
     def write(self, content, **markup):
-        self.print(content)
+        self._tw.write(content)
 
     def write_sep(self, sep, title=None, **markup):
-        self.print(sep * 80)
-        self.print(title)
-        self.print(sep * 80)
+        self.ensure_newline()
+        self._tw.sep(sep, title, **markup)
 
     def ensure_newline(self):
-        print()
+        self._tw.line()
 
     def write_line(self, line, **markup):
+        if not isinstance(line, str):
+            line = str(line, errors="replace")
         self.ensure_newline()
-        self.print(line)
+        self._tw.line(line, **markup)
 
     def rewrite(self, line, **markup):
-        self.print('\r' + ' '*80 + '\r')
-        self.print(line)
+        erase = markup.pop("erase", False)
+        if erase:
+            fill_count = self._tw.fullwidth - len(line) - 1
+            fill = " " * fill_count
+        else:
+            fill = ""
+        line = str(line)
+        self._tw.write("\r" + line + fill, **markup)
 
     def section(self, title, sep="=", **kw):
-        self.write_sep(sep, title, **kw)
+        self._tw.sep(sep, title, **kw)
 
     def line(self, msg, **kw):
         self._tw.line(msg, **kw)
 
     ######################################################################
 
-    def print(self, *args, **kwargs):
+    def print(self, text='', **kwargs):
+        end = kwargs.pop('end', '\n')
         if sys.version_info.major == 2:
             # Python 2.7 doesn't accept the flush kwarg.
             flush = kwargs.pop('flush', False)
-            print(*args, file=self.file, **kwargs)
+            self._tw.write(text)
             if flush:
                 self.file.flush()
         else:
-            print(*args, file=self.file, **kwargs)
+            self._tw.write(text)
+        self._tw.write(end)
 
     def pytest_internalerror(self, excrepr):
         for line in str(excrepr).split("\n"):
-            self.print("INTERNALERROR> " + line)
+            self.write_line("INTERNALERROR> " + line)
         return 1
 
     def pytest_collectreport(self, report):
@@ -310,7 +326,7 @@
                 duration=duration,
             ))
 
-        if exitstatus in {EXIT_OK, EXIT_TESTSFAILED}:
+        if exitstatus in {ExitCode.OK, ExitCode.TESTS_FAILED}:
             self.config.hook.pytest_terminal_summary(
                 config=self.config,
                 terminalreporter=self,


Reply via email to