14
0

Accepting request 674843 from home:jayvdb:coala:python3-bears

- Remove unused dependency on PyYAML
- Update to v1.2.2
  * Dropped PyYAML dev dependency by simplifying one test case
- Freshen python37.patch

OBS-URL: https://build.opensuse.org/request/show/674843
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-restructuredtext_lint?expand=0&rev=7
This commit is contained in:
Tomáš Chvátal
2019-02-14 08:36:04 +00:00
committed by Git OBS Bridge
parent 2c0ba80c86
commit 5173005055
5 changed files with 18 additions and 21 deletions

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Feb 14 06:31:00 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Remove unused dependency on PyYAML
- Update to v1.2.2
* Dropped PyYAML dev dependency by simplifying one test case
- Freshen python37.patch
-------------------------------------------------------------------
Wed Jan 2 12:00:58 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-restructuredtext_lint
Version: 1.2.1
Version: 1.2.2
Release: 0
Summary: Linter for reStructuredText
License: Unlicense
@@ -30,10 +30,8 @@ BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module docutils >= 0.11}
# /SECTION
Requires: python-PyYAML
Requires: python-docutils >= 0.11
BuildArch: noarch

View File

@@ -2,7 +2,7 @@ Index: restructuredtext_lint-1.2.1/restructuredtext_lint/test/test.py
===================================================================
--- restructuredtext_lint-1.2.1.orig/restructuredtext_lint/test/test.py
+++ restructuredtext_lint-1.2.1/restructuredtext_lint/test/test.py
@@ -11,12 +11,12 @@ import yaml
@@ -9,12 +9,12 @@
import restructuredtext_lint
@@ -21,16 +21,7 @@ Index: restructuredtext_lint-1.2.1/restructuredtext_lint/test/test.py
"""
# TODO: Implement this as a class (options) with a sugar function that lints a string against a set of options
@@ -51,7 +51,7 @@ class TestRestructuredtextLint(TestCase)
actual_errors = self._lint_file(content, invalid_rst)
# Load in expected errors
- expected_yaml = self._load_file(os.path.join(__dir__, 'test_files', 'invalid.yaml'))
+ expected_yaml = self._load_file(os.path.join(_dir, 'test_files', 'invalid.yaml'))
expected_errors = yaml.load(expected_yaml)
# Assert errors against expected errors
@@ -65,7 +65,7 @@ class TestRestructuredtextLint(TestCase)
@@ -58,7 +58,7 @@
def test_encoding_utf8(self):
"""A document with utf-8 characters is valid."""
@@ -39,7 +30,7 @@ Index: restructuredtext_lint-1.2.1/restructuredtext_lint/test/test.py
errors = restructuredtext_lint.lint_file(filepath, encoding='utf-8')
self.assertEqual(errors, [])
@@ -74,7 +74,7 @@ class TestRestructuredtextLint(TestCase)
@@ -67,7 +67,7 @@
This is a regression test for https://github.com/twolfson/restructuredtext-lint/issues/5
"""
@@ -48,7 +39,7 @@ Index: restructuredtext_lint-1.2.1/restructuredtext_lint/test/test.py
errors = restructuredtext_lint.lint_file(filepath)
self.assertEqual(errors[0].line, 6)
self.assertEqual(errors[0].source, filepath)
@@ -84,7 +84,7 @@ class TestRestructuredtextLint(TestCase)
@@ -77,7 +77,7 @@
This is a regression test for https://github.com/twolfson/restructuredtext-lint/issues/6
"""
@@ -57,7 +48,7 @@ Index: restructuredtext_lint-1.2.1/restructuredtext_lint/test/test.py
errors = restructuredtext_lint.lint_file(filepath)
self.assertIn('Unknown target name', errors[0].message)
@@ -93,7 +93,7 @@ class TestRestructuredtextLint(TestCase)
@@ -86,7 +86,7 @@
This is a regression test for https://github.com/twolfson/restructuredtext-lint/issues/7
"""
@@ -66,7 +57,7 @@ Index: restructuredtext_lint-1.2.1/restructuredtext_lint/test/test.py
errors = restructuredtext_lint.lint_file(filepath)
self.assertIn('Title overline & underline mismatch', errors[0].message)
@@ -102,7 +102,7 @@ class TestRestructuredtextLint(TestCase)
@@ -95,7 +95,7 @@
This is a regression test for https://github.com/twolfson/restructuredtext-lint/issues/12
"""

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8712f9066d2c748002ec24f6f7ddca13e0c37654ae4f1ba0dcf0e78ba453c387
size 19214

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:82880a8de8a41bfc84f533744091b1ead8e2ab9ad6c0a3f60f4750ef6c802350
size 18982