Hello community,
here is the log from the commit of package python-proselint for
openSUSE:Factory checked in at 2019-02-27 17:27:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-proselint (Old)
and /work/SRC/openSUSE:Factory/.python-proselint.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-proselint"
Wed Feb 27 17:27:58 2019 rev:4 rq:674882 version:0.10.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-proselint/python-proselint.changes
2018-12-24 11:41:28.709447527 +0100
+++
/work/SRC/openSUSE:Factory/.python-proselint.new.28833/python-proselint.changes
2019-02-27 17:28:00.495345323 +0100
@@ -1,0 +2,20 @@
+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 +39 @@
-- 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
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-proselint.spec ++++++
--- /var/tmp/diff_new_pack.9vNevM/_old 2019-02-27 17:28:01.407344996 +0100
+++ /var/tmp/diff_new_pack.9vNevM/_new 2019-02-27 17:28:01.407344996 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-proselint
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,32 +18,37 @@
%{?!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: http://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
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
-BuildRequires: python3-dbm
+Requires: python-click
+Requires: python-future
+Requires: python-six
+BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module click}
BuildRequires: %{python_module future}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module six}
+BuildRequires: python2-gdbm
BuildRequires: python2-mock
+BuildRequires: python3-dbm
# /SECTION
-Requires: python-click
-Requires: python-future
-Requires: python-six
%ifpython3
Requires: python3-dbm
%endif
-BuildArch: noarch
-
+%ifpython2
+Recommends: python-gdbm
+%endif
%python_subpackages
%description
@@ -56,6 +61,7 @@
%prep
%setup -q -n proselint-%{version}
+%patch0 -p1
sed -i -e '/^#!\//, 1d' proselint/*.py
%build
@@ -63,12 +69,11 @@
%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
+# One test exec's without using sys.executable
+%python_expand PATH=%{buildroot}%{_bindir}:$PATH $python 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)