From 5173005055082fc3091903a60973a635c2754fb551e62e044c98a51713c6be63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 14 Feb 2019 08:36:04 +0000 Subject: [PATCH] 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 --- python-restructuredtext_lint.changes | 8 ++++++++ python-restructuredtext_lint.spec | 4 +--- python37.patch | 21 ++++++--------------- restructuredtext_lint-1.2.1.tar.gz | 3 --- restructuredtext_lint-1.2.2.tar.gz | 3 +++ 5 files changed, 18 insertions(+), 21 deletions(-) delete mode 100644 restructuredtext_lint-1.2.1.tar.gz create mode 100644 restructuredtext_lint-1.2.2.tar.gz diff --git a/python-restructuredtext_lint.changes b/python-restructuredtext_lint.changes index 892d1a9..c0253fa 100644 --- a/python-restructuredtext_lint.changes +++ b/python-restructuredtext_lint.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Feb 14 06:31:00 UTC 2019 - John Vandenberg + +- 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 diff --git a/python-restructuredtext_lint.spec b/python-restructuredtext_lint.spec index bf427b4..d646167 100644 --- a/python-restructuredtext_lint.spec +++ b/python-restructuredtext_lint.spec @@ -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 diff --git a/python37.patch b/python37.patch index a79381b..a56ceab 100644 --- a/python37.patch +++ b/python37.patch @@ -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 """ diff --git a/restructuredtext_lint-1.2.1.tar.gz b/restructuredtext_lint-1.2.1.tar.gz deleted file mode 100644 index 77fabfe..0000000 --- a/restructuredtext_lint-1.2.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8712f9066d2c748002ec24f6f7ddca13e0c37654ae4f1ba0dcf0e78ba453c387 -size 19214 diff --git a/restructuredtext_lint-1.2.2.tar.gz b/restructuredtext_lint-1.2.2.tar.gz new file mode 100644 index 0000000..e05894a --- /dev/null +++ b/restructuredtext_lint-1.2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:82880a8de8a41bfc84f533744091b1ead8e2ab9ad6c0a3f60f4750ef6c802350 +size 18982