Hello community,

here is the log from the commit of package python-pytest-flake8 for 
openSUSE:Factory checked in at 2020-05-01 11:06:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-flake8 (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-flake8.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-flake8"

Fri May  1 11:06:13 2020 rev:6 rq:798139 version:1.0.5

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-pytest-flake8/python-pytest-flake8.changes    
    2019-02-24 17:02:20.164710694 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-flake8.new.2738/python-pytest-flake8.changes
      2020-05-01 11:06:19.870931184 +0200
@@ -1,0 +2,6 @@
+Mon Apr 27 10:21:56 UTC 2020 - Tomáš Chvátal <tchva...@suse.com>
+
+- Update to 1.0.5:
+  * Fix deprecation warning
+
+-------------------------------------------------------------------

Old:
----
  pytest-flake8-1.0.4.tar.gz

New:
----
  pytest-flake8-1.0.5.tar.gz

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

Other differences:
------------------
++++++ python-pytest-flake8.spec ++++++
--- /var/tmp/diff_new_pack.EJTCTt/_old  2020-05-01 11:06:21.002933646 +0200
+++ /var/tmp/diff_new_pack.EJTCTt/_new  2020-05-01 11:06:21.006933654 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pytest-flake8
 #
-# 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-pytest-flake8
-Version:        1.0.4
+Version:        1.0.5
 Release:        0
 Summary:        Plugin for pytest to check FLAKE8 requirements
 License:        BSD-2-Clause
@@ -49,7 +49,7 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} 
py.test-%{$python_bin_suffix} -v
+%pytest
 
 %files %{python_files}
 %license LICENSE

++++++ pytest-flake8-1.0.4.tar.gz -> pytest-flake8-1.0.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-flake8-1.0.4/CHANGELOG 
new/pytest-flake8-1.0.5/CHANGELOG
--- old/pytest-flake8-1.0.4/CHANGELOG   2019-01-31 21:05:36.000000000 +0100
+++ new/pytest-flake8-1.0.5/CHANGELOG   2020-04-23 20:56:22.000000000 +0200
@@ -1,3 +1,8 @@
+1.0.5
+-----
+
+- Fix deprecation warning; from @jonasundderwolf
+
 1.0.4
 -----
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-flake8-1.0.4/PKG-INFO 
new/pytest-flake8-1.0.5/PKG-INFO
--- old/pytest-flake8-1.0.4/PKG-INFO    2019-01-31 21:05:36.000000000 +0100
+++ new/pytest-flake8-1.0.5/PKG-INFO    2020-04-23 20:56:22.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pytest-flake8
-Version: 1.0.4
+Version: 1.0.5
 Summary: pytest plugin to check FLAKE8 requirements
 Home-page: https://github.com/tholo/pytest-flake8
 Author: Thorsten Lockert
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-flake8-1.0.4/pytest_flake8.egg-info/PKG-INFO 
new/pytest-flake8-1.0.5/pytest_flake8.egg-info/PKG-INFO
--- old/pytest-flake8-1.0.4/pytest_flake8.egg-info/PKG-INFO     2019-01-31 
21:05:36.000000000 +0100
+++ new/pytest-flake8-1.0.5/pytest_flake8.egg-info/PKG-INFO     2020-04-23 
20:56:22.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pytest-flake8
-Version: 1.0.4
+Version: 1.0.5
 Summary: pytest plugin to check FLAKE8 requirements
 Home-page: https://github.com/tholo/pytest-flake8
 Author: Thorsten Lockert
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-flake8-1.0.4/pytest_flake8.py 
new/pytest-flake8-1.0.5/pytest_flake8.py
--- old/pytest-flake8-1.0.4/pytest_flake8.py    2019-01-31 21:05:36.000000000 
+0100
+++ new/pytest-flake8-1.0.5/pytest_flake8.py    2020-04-23 20:56:22.000000000 
+0200
@@ -62,14 +62,23 @@
     if config.option.flake8 and path.ext in config._flake8exts:
         flake8ignore = config._flake8ignore(path)
         if flake8ignore is not None:
-            return Flake8Item(
-                path,
-                parent,
-                flake8ignore=flake8ignore,
-                maxlength=config._flake8maxlen,
-                maxcomplexity=config._flake8maxcomplexity,
-                showshource=config._flake8showshource,
-                statistics=config._flake8statistics)
+            if hasattr(Flake8Item, "from_parent"):
+                item = Flake8Item.from_parent(parent, fspath=path)
+                item.flake8ignore = flake8ignore
+                item.maxlength = config._flake8maxlen
+                item.maxcomplexity = config._flake8maxcomplexity
+                item.showshource = config._flake8showshource
+                item.statistics = config._flake8statistics
+                return item
+            else:
+                return Flake8Item(
+                    path,
+                    parent,
+                    flake8ignore=flake8ignore,
+                    maxlength=config._flake8maxlen,
+                    maxcomplexity=config._flake8maxcomplexity,
+                    showshource=config._flake8showshource,
+                    statistics=config._flake8statistics)
 
 
 def pytest_unconfigure(config):
@@ -84,9 +93,9 @@
 
 class Flake8Item(pytest.Item, pytest.File):
 
-    def __init__(self, path, parent, flake8ignore, maxlength,
-                 maxcomplexity, showshource, statistics):
-        super(Flake8Item, self).__init__(path, parent)
+    def __init__(self, fspath, parent, flake8ignore=None, maxlength=None,
+                 maxcomplexity=None, showshource=None, statistics=None):
+        super(Flake8Item, self).__init__(fspath, parent)
         self._nodeid += "::FLAKE8"
         self.add_marker("flake8")
         self.flake8ignore = flake8ignore
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-flake8-1.0.4/setup.py 
new/pytest-flake8-1.0.5/setup.py
--- old/pytest-flake8-1.0.4/setup.py    2019-01-31 21:05:36.000000000 +0100
+++ new/pytest-flake8-1.0.5/setup.py    2020-04-23 20:56:22.000000000 +0200
@@ -6,7 +6,7 @@
 
 setup(
     name='pytest-flake8',
-    version='1.0.4',
+    version='1.0.5',
     description='pytest plugin to check FLAKE8 requirements',
     long_description=open("README.rst").read(),
     classifiers=[
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-flake8-1.0.4/tox.ini 
new/pytest-flake8-1.0.5/tox.ini
--- old/pytest-flake8-1.0.4/tox.ini     2019-01-31 21:05:36.000000000 +0100
+++ new/pytest-flake8-1.0.5/tox.ini     2020-04-23 20:56:22.000000000 +0200
@@ -1,5 +1,5 @@
 [tox]
-envlist=py27,py36-pytesttrunk,py36-xdist,py34,py35,py36,py37,pypy,pypy3
+envlist=py27,py36-pytesttrunk,py36-xdist,py34,py35,py36,py37,py38,pypy,pypy3
 
 [testenv]
 deps=pytest
@@ -18,6 +18,7 @@
 
 [pytest]
 addopts=--flake8
+junit_family=xunit1
 
 [flake8]
 ignore=E128


Reply via email to