dev-python/m2r2: treeclean

* Unlikely to see progress on mistune upgrade.

Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2024-04-28 03:41:33 +03:00
parent d320214b3d
commit 18d6f9b405
No known key found for this signature in database
GPG Key ID: A12750536B5E7010
5 changed files with 0 additions and 97 deletions

View File

@ -1 +0,0 @@
DIST m2r2-0.2.8.tar.gz 28775 BLAKE2B 57ee1da7853a7b9cd0abca440504f38d1e767ee22be60d509233b4399e83c1be9d5559d4e7bb9c74669880f068ea2207d66e935e59ba22e4c0ebc3ad8c949c2d SHA512 430180e5a01204ba684a588230bca8538557b5300b4ea73c89c94f26d26108fac2e509724d625ecf74bd35f5ebbc8a41ce376acbd8266389c28771295f81b578

View File

@ -1,32 +0,0 @@
From 58ee9cabdadf5e3deb13037f3052238f0f2bffcd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nikola=20Forr=C3=B3?= <nforro@redhat.com>
Date: Fri, 8 Jan 2021 19:07:21 +0100
Subject: [PATCH] Make TestConvert.test_no_file work with Python 3.10
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
argparse in Python 3.10 now prints "options:" instead of
"optional arguments:", see: https://bugs.python.org/issue9694
Signed-off-by: Nikola Forró <nforro@redhat.com>
---
tests/test_cli.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test_cli.py b/tests/test_cli.py
index e53e209..3828870 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -58,7 +58,7 @@ class TestConvert(TestCase):
self.assertIn('underscore-emphasis', message)
self.assertIn('anonymous-references', message)
self.assertIn('inline-math', message)
- self.assertIn('optional arguments:', message)
+ self.assertRegex(message, r'option(s|al arguments):')
def test_parse_file(self):
output = parse_from_file(test_md)
--
2.31.1

View File

@ -1,20 +0,0 @@
diff --git a/setup.py b/setup.py
index f80b653..4a604bb 100644
--- a/setup.py
+++ b/setup.py
@@ -10,13 +10,9 @@ except ImportError:
from distutils.core import setup
readme_file = path.join(path.dirname(path.abspath(__file__)), "README.md")
-try:
- from m2r2 import parse_from_file
- readme = parse_from_file(readme_file)
-except ImportError:
- with open(readme_file) as f:
- readme = f.read()
+with open(readme_file) as f:
+ readme = f.read()
__version__ = "0.2.7"

View File

@ -1,33 +0,0 @@
# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..10})
inherit distutils-r1
DESCRIPTION="Markdown to reStructuredText converter"
HOMEPAGE="https://crossnox.github.io/m2r2/"
SRC_URI="https://github.com/CrossNox/m2r2/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RDEPEND="
dev-python/docutils[${PYTHON_USEDEP}]
dev-python/mistune[${PYTHON_USEDEP}]
"
DEPEND="
test? (
${RDEPEND}
dev-python/pygments[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
distutils_enable_sphinx docs
PATCHES=( "${FILESDIR}/Make-TestConvert.test_no_file-work-with-Python-3.10.patch" )

View File

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>parona@protonmail.com</email>
<name>Alfred Wingate</name>
</maintainer>
<upstream>
<remote-id type="github">CrossNox/m2r2</remote-id>
</upstream>
</pkgmetadata>