diff --git a/0001-test_no_file.patch b/0001-test_no_file.patch index e65ba23afe93e4030d085ac8f8bbd3101eb8e6d9..8aabbb0edbb29859238387c510a2725467d846db 100644 --- a/0001-test_no_file.patch +++ b/0001-test_no_file.patch @@ -1,6 +1,6 @@ -From 0a21e67970593968f48770f12d52e40af110c823 Mon Sep 17 00:00:00 2001 -From: penelope -Date: Sat, 7 May 2022 14:19:53 +0800 +From 84f20338bd2c3a54143256115db91cb9f1d01289 Mon Sep 17 00:00:00 2001 +From: lvfei +Date: Tue, 28 Feb 2023 17:26:04 +0800 Subject: [PATCH] test_no_file --- @@ -8,15 +8,15 @@ Subject: [PATCH] test_no_file 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_cli.py b/tests/test_cli.py -index 7b42724..316e4e1 100644 +index d190a2c..b9e9563 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py -@@ -54,7 +54,7 @@ class TestConvert(TestCase): - message = buffer.read().decode() - self.assertIn('usage', message) +@@ -51,7 +51,7 @@ class TestConvert(TestCase): self.assertIn('underscore-emphasis', message) -- self.assertIn('optional arguments:', message) -+ self.assertRegex(message,r'option(s|al arguments):') + self.assertIn('anonymous-references', message) + self.assertIn('inline-math', message) +- self.assertIn('options:', message) ++ self.assertRegex(message, r'option(s|al arguments):') def test_parse_file(self): output = parse_from_file(test_md) diff --git a/m2r-0.1.15.tar.gz b/m2r-0.1.15.tar.gz deleted file mode 100644 index 7eb5b821c61520a924122406c0ec180be5f31887..0000000000000000000000000000000000000000 Binary files a/m2r-0.1.15.tar.gz and /dev/null differ diff --git a/m2r-0.3.1.tar.gz b/m2r-0.3.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..09470004328d6fe14fe218c107174deb1bf47cd0 Binary files /dev/null and b/m2r-0.3.1.tar.gz differ diff --git a/python-m2r.spec b/python-m2r.spec index 25a10947a17543e43a76a49b357354e43ef2fd68..cc1ed447a9506c4a91df5978f86079514f5f5377 100644 --- a/python-m2r.spec +++ b/python-m2r.spec @@ -1,12 +1,12 @@ Name: python-m2r -Version: 0.1.15 -Release: 5 +Version: 0.3.1 +Release: 1 Summary: A converter for markdown to reStructuredText License: MIT URL: https://github.com/miyakogi/m2r Source0: https://github.com/miyakogi/m2r/archive/v%{version}/m2r-%{version}.tar.gz #https://github.com/miyakogi/m2r/pull/62 -Patch0: 0001-test_no_file.patch +Patch0: 0001-test_no_file.patch BuildArch: noarch %description @@ -42,6 +42,9 @@ PYTHONPATH=$(pwd) %{__python3} setup.py test -s tests %exclude %{python3_sitelib}/tests %changelog +* Tue Feb 28 2023 lvfei - 0.3.1-1 +- upgrade to 0.3.1 + * Sat May 07 2022 yangping - 0.1.15-5 - Fix error caused by options arguments