forked from pool/python-proselint
Accepting request 674778 from home:jayvdb:coala:python3-bears
- 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 from v0.8.0 to v0.10.2 OBS-URL: https://build.opensuse.org/request/show/674778 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-proselint?expand=0&rev=9
This commit is contained in:
committed by
Git OBS Bridge
parent
91be42bcc8
commit
5d0a78e4d7
31
disable-empty-test.patch
Normal file
31
disable-empty-test.patch
Normal file
@@ -0,0 +1,31 @@
|
||||
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
|
3
proselint-0.10.2.tar.gz
Normal file
3
proselint-0.10.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3a87eb393056d1bc77d898e4bcf8998f50e9ad84f7b9ff7cf2720509ac8ef904
|
||||
size 100979
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:08d48494533f178eb7a978cbdf10ddf85ed7fc2eb486ff5e7d0aecfa08e81bbd
|
||||
size 94169
|
@@ -1,3 +1,23 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 14 03:33:55 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- 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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 4 12:51:45 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
@@ -16,4 +36,4 @@ Thu May 24 17:37:36 UTC 2018 - toddrme2178@gmail.com
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 16 17:45:29 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
- Initial version
|
||||
- Initial version for v0.8.0
|
||||
|
@@ -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 @@ existing tools.
|
||||
|
||||
%prep
|
||||
%setup -q -n proselint-%{version}
|
||||
%patch0 -p1
|
||||
sed -i -e '/^#!\//, 1d' proselint/*.py
|
||||
|
||||
%build
|
||||
@@ -63,12 +69,11 @@ sed -i -e '/^#!\//, 1d' proselint/*.py
|
||||
|
||||
%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
|
||||
|
Reference in New Issue
Block a user