upgrade to 0.3.1

This commit is contained in:
lvfei 2023-02-28 04:32:36 -05:00
parent c3575c1c30
commit 4369d3d7fb
4 changed files with 15 additions and 12 deletions

View File

@ -1,6 +1,6 @@
From 0a21e67970593968f48770f12d52e40af110c823 Mon Sep 17 00:00:00 2001 From 84f20338bd2c3a54143256115db91cb9f1d01289 Mon Sep 17 00:00:00 2001
From: penelope <anchor_cool@163.com> From: lvfei <lvfei@kylinos.cn>
Date: Sat, 7 May 2022 14:19:53 +0800 Date: Tue, 28 Feb 2023 17:26:04 +0800
Subject: [PATCH] test_no_file Subject: [PATCH] test_no_file
--- ---
@ -8,15 +8,15 @@ Subject: [PATCH] test_no_file
1 file changed, 1 insertion(+), 1 deletion(-) 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test_cli.py b/tests/test_cli.py 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 --- a/tests/test_cli.py
+++ b/tests/test_cli.py +++ b/tests/test_cli.py
@@ -54,7 +54,7 @@ class TestConvert(TestCase): @@ -51,7 +51,7 @@ class TestConvert(TestCase):
message = buffer.read().decode()
self.assertIn('usage', message)
self.assertIn('underscore-emphasis', message) self.assertIn('underscore-emphasis', message)
- self.assertIn('optional arguments:', message) self.assertIn('anonymous-references', message)
+ self.assertRegex(message,r'option(s|al arguments):') self.assertIn('inline-math', message)
- self.assertIn('options:', message)
+ self.assertRegex(message, r'option(s|al arguments):')
def test_parse_file(self): def test_parse_file(self):
output = parse_from_file(test_md) output = parse_from_file(test_md)

Binary file not shown.

BIN
m2r-0.3.1.tar.gz Normal file

Binary file not shown.

View File

@ -1,12 +1,12 @@
Name: python-m2r Name: python-m2r
Version: 0.1.15 Version: 0.3.1
Release: 5 Release: 1
Summary: A converter for markdown to reStructuredText Summary: A converter for markdown to reStructuredText
License: MIT License: MIT
URL: https://github.com/miyakogi/m2r URL: https://github.com/miyakogi/m2r
Source0: https://github.com/miyakogi/m2r/archive/v%{version}/m2r-%{version}.tar.gz Source0: https://github.com/miyakogi/m2r/archive/v%{version}/m2r-%{version}.tar.gz
#https://github.com/miyakogi/m2r/pull/62 #https://github.com/miyakogi/m2r/pull/62
Patch0: 0001-test_no_file.patch Patch0: 0001-test_no_file.patch
BuildArch: noarch BuildArch: noarch
%description %description
@ -42,6 +42,9 @@ PYTHONPATH=$(pwd) %{__python3} setup.py test -s tests
%exclude %{python3_sitelib}/tests %exclude %{python3_sitelib}/tests
%changelog %changelog
* Tue Feb 28 2023 lvfei <lvfei@kylinos.cn> - 0.3.1-1
- upgrade to 0.3.1
* Sat May 07 2022 yangping <yangping69@h-partners.com> - 0.1.15-5 * Sat May 07 2022 yangping <yangping69@h-partners.com> - 0.1.15-5
- Fix error caused by options arguments - Fix error caused by options arguments