Hello community,

here is the log from the commit of package python-proselint for 
openSUSE:Leap:15.2 checked in at 2020-03-16 12:20:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-proselint (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-proselint.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-proselint"

Mon Mar 16 12:20:48 2020 rev:4 rq:776936 version:0.10.2

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-proselint/python-proselint.changes      
2020-01-15 15:51:42.119538016 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.python-proselint.new.3160/python-proselint.changes
    2020-03-16 12:20:51.071706489 +0100
@@ -1,0 +2,31 @@
+Tue Jan  7 11:37:57 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Use python dbm dependency instead of legacy gdbm
+
+-------------------------------------------------------------------
+Fri Mar  8 07:30:20 UTC 2019 - John Vandenberg <[email protected]>
+
+- Add test-use-sys-executable.patch to avoid invoking Python 3 CLI
+  during Python 2 tests.
+
+-------------------------------------------------------------------
+Thu Feb 14 03:33:55 UTC 2019 - John Vandenberg <[email protected]>
+
+- Fix invocation of test suite to run the tests
+- Add Recommends for python2-gdbm, and BuildRequires to activate
+  the tests related to gdbm
+- Add disable-empty-test.patch to remove unused test module
+- Update to v0.10.2
+  * Include tests in source package
+- from v0.10.1
+  * Support use as pre-commit hook
+- from v0.10.0
+  * Update dependencies to latest
+  * Add support for reading from stdin with the CLI
+  * Use pytest, not Nose, on Travis
+- from v0.9.0
+  * Add new plugins to README
+  * Update dependencies
+  * Comply with XDG spec
+
+-------------------------------------------------------------------
@@ -19 +50 @@
-- Initial version
+- Initial version for v0.8.0

Old:
----
  proselint-0.8.0.tar.gz

New:
----
  disable-empty-test.patch
  proselint-0.10.2.tar.gz
  test-use-sys-executable.patch

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

Other differences:
------------------
++++++ python-proselint.spec ++++++
--- /var/tmp/diff_new_pack.WgRNnq/_old  2020-03-16 12:20:51.863706618 +0100
+++ /var/tmp/diff_new_pack.WgRNnq/_new  2020-03-16 12:20:51.863706618 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-proselint
 #
-# Copyright (c) 2018 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,32 +18,31 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-proselint
-Version:        0.8.0
+Version:        0.10.2
 Release:        0
 Summary:        A linter for prose
 License:        BSD-3-Clause
-Group:          Development/Languages/Python
-Url:            http://github.com/amperser/proselint
+URL:            https://github.com/amperser/proselint
 Source:         
https://files.pythonhosted.org/packages/source/p/proselint/proselint-%{version}.tar.gz
+# test_weasel_words_misc is empty in this release, and `setup.py test` doesnt 
recognise nose's SkipTest
+Patch0:         disable-empty-test.patch
+Patch1:         test-use-sys-executable.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-BuildRequires:  python3-dbm
+Requires:       python-click
+Requires:       python-dbm
+Requires:       python-future
+Requires:       python-six
+BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module click}
+BuildRequires:  %{python_module dbm}
 BuildRequires:  %{python_module future}
 BuildRequires:  %{python_module nose}
 BuildRequires:  %{python_module six}
 BuildRequires:  python2-mock
 # /SECTION
-Requires:       python-click
-Requires:       python-future
-Requires:       python-six
-%ifpython3
-Requires:       python3-dbm
-%endif
-BuildArch:      noarch
-
 %python_subpackages
 
 %description
@@ -56,6 +55,8 @@
 
 %prep
 %setup -q -n proselint-%{version}
+%patch0 -p1
+%patch1 -p1
 sed -i -e '/^#!\//, 1d' proselint/*.py
 
 %build
@@ -63,12 +64,10 @@
 
 %install
 %python_install
-%{python_expand rm -r %{buildroot}%{$python_sitelib}/tests
-%fdupes %{buildroot}%{$python_sitelib}
-}
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-%python_expand nosetests-%{$python_bin_suffix} proselint
+%python_exec setup.py test
 
 %files %{python_files}
 %doc CHANGELOG.md README.md

++++++ disable-empty-test.patch ++++++
diff --git a/tests/test_weasel_words_misc.py b/tests/test_weasel_words_misc.py
deleted file mode 100644
index 3f93e8f..0000000
--- a/tests/test_weasel_words_misc.py
+++ /dev/null
@@ -1,25 +0,0 @@
-"""Tests for weasel_words.misc check."""
-from __future__ import absolute_import
-
-from .check import Check
-
-from proselint.checks.weasel_words import misc as chk
-from nose import SkipTest
-
-
-class TestCheck(Check):
-    """The test class for weasel_words.misc."""
-
-    raise SkipTest
-
-    __test__ = True
-
-    @property
-    def this_check(self):
-        """Boilerplate."""
-        return chk
-
-    def test_smoke(self):
-        """Basic smoke test for weasel_words.misc."""
-        assert self.passes("""Smoke phrase with nothing flagged.""")
-        # FIXME add test when check is implemented
++++++ proselint-0.8.0.tar.gz -> proselint-0.10.2.tar.gz ++++++
++++ 2127 lines of diff (skipped)

++++++ test-use-sys-executable.patch ++++++
>From f6950839960354cf7986f2dcd73195cdb9588dc8 Mon Sep 17 00:00:00 2001
From: John Vandenberg <[email protected]>
Date: Fri, 8 Mar 2019 14:18:47 +0700
Subject: [PATCH] test_version: Use sys.executable

---
 tests/_test_version.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/_test_version.py b/tests/_test_version.py
index 7eb0d96f..2324b2ae 100644
--- a/tests/_test_version.py
+++ b/tests/_test_version.py
@@ -5,6 +5,7 @@
 from .check import Check
 from proselint.version import __version__
 import subprocess
+import sys
 
 
 class TestCheck(Check):
@@ -14,5 +15,6 @@ class TestCheck(Check):
 
     def test_version(self):
         """Make sure the version number is correct."""
-        out = subprocess.check_output(["proselint", "--version"])
+        out = subprocess.check_output(
+            [sys.executable, "-m", "proselint", "--version"])
         assert out.decode('utf-8') == __version__ + "\n"

Reply via email to