[arch-commits] Commit in m2r/trunk (PKGBUILD python310.patch)

Evangelos Foutras foutrelis at gemini.archlinux.org
Thu Dec 2 12:28:44 UTC 2021


    Date: Thursday, December 2, 2021 @ 12:28:43
  Author: foutrelis
Revision: 1061900

Fix test for Python 3.10

Added:
  m2r/trunk/python310.patch
Modified:
  m2r/trunk/PKGBUILD

-----------------+
 PKGBUILD        |   11 +++++++++--
 python310.patch |   13 +++++++++++++
 2 files changed, 22 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-02 12:21:44 UTC (rev 1061899)
+++ PKGBUILD	2021-12-02 12:28:43 UTC (rev 1061900)
@@ -10,9 +10,16 @@
 depends=('python-mistune1' 'python-docutils')
 makedepends=('python-setuptools')
 checkdepends=('python-pygments' 'python-pytest-runner')
-source=("https://github.com/miyakogi/m2r/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('847f04538ee52f0b0a88cee9474ed889e8114a3a7b1fb221cdaa867ab70ca52f517250f2c8bbf795ae598c7b6614e6d03d9f6f05b7e3d56fb8087d63eb52f1bc')
+source=("https://github.com/miyakogi/m2r/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
+        python310.patch)
+sha512sums=('847f04538ee52f0b0a88cee9474ed889e8114a3a7b1fb221cdaa867ab70ca52f517250f2c8bbf795ae598c7b6614e6d03d9f6f05b7e3d56fb8087d63eb52f1bc'
+            '3eeba63f27c0a4441948bfe3d55cf1db82ecc136a2ceafc054e68920f1da394df79d76c3fa8216effa516d1653f2bfda9f2f980cdca96d3f38468d18818c8bc1')
 
+prepare() {
+  cd m2r-$pkgver
+  patch -Np1 -i ../python310.patch
+}
+
 build() {
   cd m2r-$pkgver
   python setup.py build

Added: python310.patch
===================================================================
--- python310.patch	                        (rev 0)
+++ python310.patch	2021-12-02 12:28:43 UTC (rev 1061900)
@@ -0,0 +1,13 @@
+diff -upr m2r-0.2.1.orig/tests/test_cli.py m2r-0.2.1/tests/test_cli.py
+--- m2r-0.2.1.orig/tests/test_cli.py	2018-10-12 02:36:50.000000000 +0300
++++ m2r-0.2.1/tests/test_cli.py	2021-12-02 14:27:24.916039487 +0200
+@@ -58,7 +58,8 @@ class TestConvert(TestCase):
+         self.assertIn('underscore-emphasis', message)
+         self.assertIn('anonymous-references', message)
+         self.assertIn('inline-math', message)
+-        self.assertIn('optional arguments:', message)
++        self.assertTrue(
++            'optional arguments:' in message or 'options:' in message)
+ 
+     def test_parse_file(self):
+         output = parse_from_file(test_md)



More information about the arch-commits mailing list