14
0
2019-02-27 16:28:05 +00:00
committed by Git OBS Bridge
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> 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-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-restructuredtext_lint Name: python-restructuredtext_lint
Version: 1.2.1 Version: 1.2.2
Release: 0 Release: 0
Summary: Linter for reStructuredText Summary: Linter for reStructuredText
License: Unlicense License: Unlicense
@@ -30,10 +30,8 @@ BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module docutils >= 0.11} BuildRequires: %{python_module docutils >= 0.11}
# /SECTION # /SECTION
Requires: python-PyYAML
Requires: python-docutils >= 0.11 Requires: python-docutils >= 0.11
BuildArch: noarch 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.orig/restructuredtext_lint/test/test.py
+++ restructuredtext_lint-1.2.1/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 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 # 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) @@ -58,7 +58,7 @@
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)
def test_encoding_utf8(self): def test_encoding_utf8(self):
"""A document with utf-8 characters is valid.""" """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') errors = restructuredtext_lint.lint_file(filepath, encoding='utf-8')
self.assertEqual(errors, []) 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 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) errors = restructuredtext_lint.lint_file(filepath)
self.assertEqual(errors[0].line, 6) self.assertEqual(errors[0].line, 6)
self.assertEqual(errors[0].source, filepath) 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 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) errors = restructuredtext_lint.lint_file(filepath)
self.assertIn('Unknown target name', errors[0].message) 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 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) errors = restructuredtext_lint.lint_file(filepath)
self.assertIn('Title overline & underline mismatch', errors[0].message) 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 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