Hello community,

here is the log from the commit of package python-pytest-black for 
openSUSE:Factory checked in at 2020-05-19 14:47:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-black (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-black.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-black"

Tue May 19 14:47:42 2020 rev:2 rq:806850 version:0.3.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pytest-black/python-pytest-black.changes  
2020-02-25 16:07:09.232609444 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-black.new.2738/python-pytest-black.changes
        2020-05-19 14:47:46.595979612 +0200
@@ -1,0 +2,6 @@
+Mon May 18 09:27:23 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Update to 0.3.9:
+  * Fix a number of deprecation warnings and lint issues.
+
+-------------------------------------------------------------------

Old:
----
  pytest-black-0.3.8.tar.gz

New:
----
  pytest-black-0.3.9.tar.gz

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

Other differences:
------------------
++++++ python-pytest-black.spec ++++++
--- /var/tmp/diff_new_pack.TMlaoq/_old  2020-05-19 14:47:47.455981450 +0200
+++ /var/tmp/diff_new_pack.TMlaoq/_new  2020-05-19 14:47:47.455981450 +0200
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define         skip_python2 1
 Name:           python-pytest-black
-Version:        0.3.8
+Version:        0.3.9
 Release:        0
 Summary:        Black format checking plugin for pytest
 License:        MIT

++++++ pytest-black-0.3.8.tar.gz -> pytest-black-0.3.9.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-black-0.3.8/PKG-INFO 
new/pytest-black-0.3.9/PKG-INFO
--- old/pytest-black-0.3.8/PKG-INFO     2020-02-04 15:46:06.000000000 +0100
+++ new/pytest-black-0.3.9/PKG-INFO     2020-05-04 23:21:56.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: pytest-black
-Version: 0.3.8
+Version: 0.3.9
 Summary: A pytest plugin to enable format checking with black
 Home-page: https://github.com/shopkeep/pytest-black
 Author: ShopKeep Inc
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-black-0.3.8/pytest_black.egg-info/PKG-INFO 
new/pytest-black-0.3.9/pytest_black.egg-info/PKG-INFO
--- old/pytest-black-0.3.8/pytest_black.egg-info/PKG-INFO       2020-02-04 
15:46:06.000000000 +0100
+++ new/pytest-black-0.3.9/pytest_black.egg-info/PKG-INFO       2020-05-04 
23:21:56.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: pytest-black
-Version: 0.3.8
+Version: 0.3.9
 Summary: A pytest plugin to enable format checking with black
 Home-page: https://github.com/shopkeep/pytest-black
 Author: ShopKeep Inc
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-black-0.3.8/pytest_black.py 
new/pytest-black-0.3.9/pytest_black.py
--- old/pytest-black-0.3.8/pytest_black.py      2020-02-04 15:45:37.000000000 
+0100
+++ new/pytest-black-0.3.9/pytest_black.py      2020-05-04 23:21:25.000000000 
+0200
@@ -23,7 +23,10 @@
 def pytest_collect_file(path, parent):
     config = parent.config
     if config.option.black and path.ext == ".py":
-        return BlackItem(path, parent)
+        if hasattr(BlackItem, "from_parent"):
+            return BlackItem.from_parent(parent, fspath=path)
+        else:
+            return BlackItem(path, parent)
 
 
 def pytest_configure(config):
@@ -40,8 +43,8 @@
 
 
 class BlackItem(pytest.Item, pytest.File):
-    def __init__(self, path, parent):
-        super(BlackItem, self).__init__(path, parent)
+    def __init__(self, fspath, parent):
+        super(BlackItem, self).__init__(fspath, parent)
         self._nodeid += "::BLACK"
         self.add_marker("black")
         try:


Reply via email to