From 18d6f9b4051fe05466c766df2b5b15c61b9d65e1 Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Sun, 28 Apr 2024 03:41:33 +0300 Subject: [PATCH] dev-python/m2r2: treeclean * Unlikely to see progress on mistune upgrade. Signed-off-by: Alfred Wingate --- dev-python/m2r2/Manifest | 1 - ...t.test_no_file-work-with-Python-3.10.patch | 32 ------------------ ...k_workaround_to_distributionnotfound.patch | 20 ----------- dev-python/m2r2/m2r2-0.2.8.ebuild | 33 ------------------- dev-python/m2r2/metadata.xml | 11 ------- 5 files changed, 97 deletions(-) delete mode 100644 dev-python/m2r2/Manifest delete mode 100644 dev-python/m2r2/files/Make-TestConvert.test_no_file-work-with-Python-3.10.patch delete mode 100644 dev-python/m2r2/files/quick_workaround_to_distributionnotfound.patch delete mode 100644 dev-python/m2r2/m2r2-0.2.8.ebuild delete mode 100644 dev-python/m2r2/metadata.xml diff --git a/dev-python/m2r2/Manifest b/dev-python/m2r2/Manifest deleted file mode 100644 index 34afc92..0000000 --- a/dev-python/m2r2/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST m2r2-0.2.8.tar.gz 28775 BLAKE2B 57ee1da7853a7b9cd0abca440504f38d1e767ee22be60d509233b4399e83c1be9d5559d4e7bb9c74669880f068ea2207d66e935e59ba22e4c0ebc3ad8c949c2d SHA512 430180e5a01204ba684a588230bca8538557b5300b4ea73c89c94f26d26108fac2e509724d625ecf74bd35f5ebbc8a41ce376acbd8266389c28771295f81b578 diff --git a/dev-python/m2r2/files/Make-TestConvert.test_no_file-work-with-Python-3.10.patch b/dev-python/m2r2/files/Make-TestConvert.test_no_file-work-with-Python-3.10.patch deleted file mode 100644 index 4520e6f..0000000 --- a/dev-python/m2r2/files/Make-TestConvert.test_no_file-work-with-Python-3.10.patch +++ /dev/null @@ -1,32 +0,0 @@ -From 58ee9cabdadf5e3deb13037f3052238f0f2bffcd Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Nikola=20Forr=C3=B3?= -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ó ---- - 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 - diff --git a/dev-python/m2r2/files/quick_workaround_to_distributionnotfound.patch b/dev-python/m2r2/files/quick_workaround_to_distributionnotfound.patch deleted file mode 100644 index 5251c30..0000000 --- a/dev-python/m2r2/files/quick_workaround_to_distributionnotfound.patch +++ /dev/null @@ -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" diff --git a/dev-python/m2r2/m2r2-0.2.8.ebuild b/dev-python/m2r2/m2r2-0.2.8.ebuild deleted file mode 100644 index 7be238c..0000000 --- a/dev-python/m2r2/m2r2-0.2.8.ebuild +++ /dev/null @@ -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" ) diff --git a/dev-python/m2r2/metadata.xml b/dev-python/m2r2/metadata.xml deleted file mode 100644 index 188fd13..0000000 --- a/dev-python/m2r2/metadata.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - parona@protonmail.com - Alfred Wingate - - - CrossNox/m2r2 - -