Hello community,
here is the log from the commit of package python-restructuredtext_lint for
openSUSE:Factory checked in at 2019-02-27 17:28:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-restructuredtext_lint (Old)
and /work/SRC/openSUSE:Factory/.python-restructuredtext_lint.new.28833
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-restructuredtext_lint"
Wed Feb 27 17:28:05 2019 rev:4 rq:674887 version:1.2.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-restructuredtext_lint/python-restructuredtext_lint.changes
2019-01-03 18:08:32.200038630 +0100
+++
/work/SRC/openSUSE:Factory/.python-restructuredtext_lint.new.28833/python-restructuredtext_lint.changes
2019-02-27 17:28:06.579343141 +0100
@@ -1,0 +2,8 @@
+Thu Feb 14 06:31:00 UTC 2019 - John Vandenberg <[email protected]>
+
+- Remove unused dependency on PyYAML
+- Update to v1.2.2
+ * Dropped PyYAML dev dependency by simplifying one test case
+- Freshen python37.patch
+
+-------------------------------------------------------------------
Old:
----
restructuredtext_lint-1.2.1.tar.gz
New:
----
restructuredtext_lint-1.2.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-restructuredtext_lint.spec ++++++
--- /var/tmp/diff_new_pack.99hoeZ/_old 2019-02-27 17:28:07.087342959 +0100
+++ /var/tmp/diff_new_pack.99hoeZ/_new 2019-02-27 17:28:07.091342958 +0100
@@ -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: 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
++++++ python37.patch ++++++
--- /var/tmp/diff_new_pack.99hoeZ/_old 2019-02-27 17:28:07.111342950 +0100
+++ /var/tmp/diff_new_pack.99hoeZ/_new 2019-02-27 17:28:07.111342950 +0100
@@ -2,7 +2,7 @@
===================================================================
--- 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 @@
"""
# 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 @@
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 @@
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 @@
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 @@
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
"""
++++++ restructuredtext_lint-1.2.1.tar.gz -> restructuredtext_lint-1.2.2.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/restructuredtext_lint-1.2.1/CHANGELOG.rst
new/restructuredtext_lint-1.2.2/CHANGELOG.rst
--- old/restructuredtext_lint-1.2.1/CHANGELOG.rst 2018-11-14
07:37:43.000000000 +0100
+++ new/restructuredtext_lint-1.2.2/CHANGELOG.rst 2019-01-06
11:02:50.000000000 +0100
@@ -1,5 +1,7 @@
restructuredtext-lint changelog
===============================
+1.2.2 - Dropped PyYAML dev dependency to fix GitHub vulnerability warning
+
1.2.1 - Dropped Python 3.3 from Travis CI to fix testing errors
1.2.0 - Added directory support via @dhruvsomani in #48. Fixes #38
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/restructuredtext_lint-1.2.1/PKG-INFO
new/restructuredtext_lint-1.2.2/PKG-INFO
--- old/restructuredtext_lint-1.2.1/PKG-INFO 2018-11-14 07:38:00.000000000
+0100
+++ new/restructuredtext_lint-1.2.2/PKG-INFO 2019-01-06 11:03:07.000000000
+0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: restructuredtext_lint
-Version: 1.2.1
+Version: 1.2.2
Summary: reStructuredText linter
Home-page: https://github.com/twolfson/restructuredtext-lint
Author: Todd Wolfson
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/restructuredtext_lint-1.2.1/requirements-dev.txt
new/restructuredtext_lint-1.2.2/requirements-dev.txt
--- old/restructuredtext_lint-1.2.1/requirements-dev.txt 2018-11-14
07:25:32.000000000 +0100
+++ new/restructuredtext_lint-1.2.2/requirements-dev.txt 2019-01-06
11:02:08.000000000 +0100
@@ -1,4 +1,3 @@
nose==1.3.0
-PyYAML==3.10
flake8==2.2.3
flake8-quotes==0.0.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/restructuredtext_lint-1.2.1/restructuredtext_lint/VERSION
new/restructuredtext_lint-1.2.2/restructuredtext_lint/VERSION
--- old/restructuredtext_lint-1.2.1/restructuredtext_lint/VERSION
2018-11-14 07:37:49.000000000 +0100
+++ new/restructuredtext_lint-1.2.2/restructuredtext_lint/VERSION
2019-01-06 11:02:55.000000000 +0100
@@ -1 +1 @@
-1.2.1
+1.2.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/restructuredtext_lint-1.2.1/restructuredtext_lint/test/test.py
new/restructuredtext_lint-1.2.2/restructuredtext_lint/test/test.py
--- old/restructuredtext_lint-1.2.1/restructuredtext_lint/test/test.py
2018-11-14 07:06:31.000000000 +0100
+++ new/restructuredtext_lint-1.2.2/restructuredtext_lint/test/test.py
2019-01-06 11:01:34.000000000 +0100
@@ -6,8 +6,6 @@
import textwrap
from unittest import TestCase
-import yaml
-
import restructuredtext_lint
@@ -50,18 +48,13 @@
content = self._load_file(invalid_rst)
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_errors = yaml.load(expected_yaml)
-
# Assert errors against expected errors
- self.assertEqual(len(actual_errors), len(expected_errors))
- for i, error in enumerate(expected_errors):
- self.assertEqual(actual_errors[i].line, expected_errors[i]['line'])
- self.assertEqual(actual_errors[i].level,
expected_errors[i]['level'])
- self.assertEqual(actual_errors[i].type, expected_errors[i]['type'])
- self.assertEqual(actual_errors[i].source, invalid_rst)
- self.assertEqual(actual_errors[i].message,
expected_errors[i]['message'])
+ self.assertEqual(len(actual_errors), 1)
+ self.assertEqual(actual_errors[0].line, 2)
+ self.assertEqual(actual_errors[0].level, 2)
+ self.assertEqual(actual_errors[0].type, 'WARNING')
+ self.assertEqual(actual_errors[0].source, invalid_rst)
+ self.assertEqual(actual_errors[0].message, 'Title underline too
short.')
def test_encoding_utf8(self):
"""A document with utf-8 characters is valid."""
Binary files
old/restructuredtext_lint-1.2.1/restructuredtext_lint/test/test.pyc and
new/restructuredtext_lint-1.2.2/restructuredtext_lint/test/test.pyc differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/restructuredtext_lint-1.2.1/restructuredtext_lint/test/test_files/invalid.yaml
new/restructuredtext_lint-1.2.2/restructuredtext_lint/test/test_files/invalid.yaml
---
old/restructuredtext_lint-1.2.1/restructuredtext_lint/test/test_files/invalid.yaml
2018-11-14 06:55:13.000000000 +0100
+++
new/restructuredtext_lint-1.2.2/restructuredtext_lint/test/test_files/invalid.yaml
1970-01-01 01:00:00.000000000 +0100
@@ -1,4 +0,0 @@
-- line: 2
- level: 2
- type: 'WARNING'
- message: 'Title underline too short.'
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/restructuredtext_lint-1.2.1/restructuredtext_lint.egg-info/PKG-INFO
new/restructuredtext_lint-1.2.2/restructuredtext_lint.egg-info/PKG-INFO
--- old/restructuredtext_lint-1.2.1/restructuredtext_lint.egg-info/PKG-INFO
2018-11-14 07:38:00.000000000 +0100
+++ new/restructuredtext_lint-1.2.2/restructuredtext_lint.egg-info/PKG-INFO
2019-01-06 11:03:07.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: restructuredtext-lint
-Version: 1.2.1
+Version: 1.2.2
Summary: reStructuredText linter
Home-page: https://github.com/twolfson/restructuredtext-lint
Author: Todd Wolfson
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/restructuredtext_lint-1.2.1/restructuredtext_lint.egg-info/SOURCES.txt
new/restructuredtext_lint-1.2.2/restructuredtext_lint.egg-info/SOURCES.txt
--- old/restructuredtext_lint-1.2.1/restructuredtext_lint.egg-info/SOURCES.txt
2018-11-14 07:38:00.000000000 +0100
+++ new/restructuredtext_lint-1.2.2/restructuredtext_lint.egg-info/SOURCES.txt
2019-01-06 11:03:07.000000000 +0100
@@ -29,7 +29,6 @@
restructuredtext_lint/test/test.py
restructuredtext_lint/test/test.pyc
restructuredtext_lint/test/test_files/invalid.rst
-restructuredtext_lint/test/test_files/invalid.yaml
restructuredtext_lint/test/test_files/invalid_line_mismatch.rst
restructuredtext_lint/test/test_files/invalid_link.rst
restructuredtext_lint/test/test_files/invalid_target.rst