Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pytest-black for 
openSUSE:Factory checked in at 2021-03-16 15:45:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-black (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-black.new.2401 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-black"

Tue Mar 16 15:45:29 2021 rev:5 rq:879223 version:0.3.12

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pytest-black/python-pytest-black.changes  
2020-10-08 13:13:59.519270636 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-black.new.2401/python-pytest-black.changes
        2021-03-16 15:46:36.953248406 +0100
@@ -1,0 +2,6 @@
+Mon Mar 15 10:47:48 UTC 2021 - Ben Greiner <c...@bnavigator.de>
+
+- Add fix-pytest-makefile.patch to make it work with Pytest 6
+  gh#shopkeep/pytest-black#53
+
+-------------------------------------------------------------------

New:
----
  fix-pytest-makefile.patch

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

Other differences:
------------------
++++++ python-pytest-black.spec ++++++
--- /var/tmp/diff_new_pack.4CYF8o/_old  2021-03-16 15:46:37.609249425 +0100
+++ /var/tmp/diff_new_pack.4CYF8o/_new  2021-03-16 15:46:37.613249431 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pytest-black
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,8 @@
 License:        MIT
 URL:            https://github.com/shopkeep/pytest-black
 Source:         
https://files.pythonhosted.org/packages/source/p/pytest-black/pytest-black-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM fix-pytest-makefile.patch -- gh#shopkeep/pytest-black#53
+Patch0:         
https://github.com/shopkeep/pytest-black/pull/53.patch#/fix-pytest-makefile.patch
 BuildRequires:  %{python_module setuptools_scm}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
@@ -44,7 +46,7 @@
 A pytest plugin to enable format checking with black.
 
 %prep
-%setup -q -n pytest-black-%{version}
+%autosetup -p1 -n pytest-black-%{version}
 
 %build
 %python_build

++++++ fix-pytest-makefile.patch ++++++
>From 475cf71aa9de3ededa972ffb36fb47ad79278531 Mon Sep 17 00:00:00 2001
From: Ben Greiner <c...@bnavigator.de>
Date: Mon, 15 Mar 2021 11:42:27 +0100
Subject: [PATCH] fix pytest.tmpdir.makefile call

---
 tests/test_black.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/test_black.py b/tests/test_black.py
index 0405169..a7a6026 100644
--- a/tests/test_black.py
+++ b/tests/test_black.py
@@ -72,8 +72,8 @@ def test_exclude(testdir):
     """Assert test is skipped if path is excluded even if also included
     """
     testdir.makefile(
-        "pyproject.toml",
-        """
+        ".toml",
+        pyproject = """
         [tool.black]
             include = 'test_exclude.py'
             exclude = '.*'
@@ -100,8 +100,8 @@ def test_exclude_folder(testdir):
     """Assert test is skipped for files in a folder
     """
     testdir.makefile(
-        "pyproject.toml",
-        """
+        ".toml",
+        pyproject = """
         [tool.black]
             exclude = '''
             (
@@ -137,8 +137,8 @@ def test_include(testdir):
     """Assert test is not skipped if path is included but not excluded
     """
     testdir.makefile(
-        "pyproject.toml",
-        """
+        ".toml",
+        pyproject = """
         [tool.black]
             include = 'test_include'
     """,

Reply via email to