forked from pool/python-restructuredtext_lint
Accepting request 674887 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/674887 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-restructuredtext_lint?expand=0&rev=4
This commit is contained in:
@@ -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>
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
"""
|
||||
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8712f9066d2c748002ec24f6f7ddca13e0c37654ae4f1ba0dcf0e78ba453c387
|
||||
size 19214
|
3
restructuredtext_lint-1.2.2.tar.gz
Normal file
3
restructuredtext_lint-1.2.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:82880a8de8a41bfc84f533744091b1ead8e2ab9ad6c0a3f60f4750ef6c802350
|
||||
size 18982
|
Reference in New Issue
Block a user