Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/m2r/, profiles/, dev-python/m2r/files/
Date: Sat, 25 Jun 2022 04:37:54
Message-Id: 1656131794.d13e0b7ba35162f224152f7be5230cbfe43788ff.sam@gentoo
1 commit: d13e0b7ba35162f224152f7be5230cbfe43788ff
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 25 04:36:21 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 25 04:36:34 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d13e0b7b
7
8 dev-python/m2r: treeclean
9
10 Bug: https://bugs.gentoo.org/843881
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 dev-python/m2r/Manifest | 1 -
14 dev-python/m2r/files/m2r-0.2.1-tests-network.patch | 28 --
15 dev-python/m2r/files/m2r-0.2.1-tests.patch | 65 ---
16 dev-python/m2r/files/m2r-0.2.1-upstream-fix.patch | 23 -
17 dev-python/m2r/files/m2r.1 | 515 ---------------------
18 dev-python/m2r/files/test.md | 5 -
19 dev-python/m2r/files/test.rst | 8 -
20 dev-python/m2r/m2r-0.2.1.ebuild | 58 ---
21 dev-python/m2r/metadata.xml | 17 -
22 profiles/package.mask | 1 -
23 10 files changed, 721 deletions(-)
24
25 diff --git a/dev-python/m2r/Manifest b/dev-python/m2r/Manifest
26 deleted file mode 100644
27 index 0552e9342a44..000000000000
28 --- a/dev-python/m2r/Manifest
29 +++ /dev/null
30 @@ -1 +0,0 @@
31 -DIST m2r-0.2.1.tar.gz 24455 BLAKE2B 42ec5a919301b6dee2b345a5eca9e62a1bd44186fb61dbd8cc9de6cacc34821e912f242355cc7368b755f923a433353cfa567afc480e9b8c63bf209ff9d3c624 SHA512 847f04538ee52f0b0a88cee9474ed889e8114a3a7b1fb221cdaa867ab70ca52f517250f2c8bbf795ae598c7b6614e6d03d9f6f05b7e3d56fb8087d63eb52f1bc
32
33 diff --git a/dev-python/m2r/files/m2r-0.2.1-tests-network.patch b/dev-python/m2r/files/m2r-0.2.1-tests-network.patch
34 deleted file mode 100644
35 index 74f3a0ca7a6a..000000000000
36 --- a/dev-python/m2r/files/m2r-0.2.1-tests-network.patch
37 +++ /dev/null
38 @@ -1,28 +0,0 @@
39 -diff --git a/tests/test_cli.py b/tests/test_cli.py
40 -index e53e209..4dff652 100644
41 ---- a/tests/test_cli.py
42 -+++ b/tests/test_cli.py
43 -@@ -5,6 +5,7 @@ from __future__ import print_function, unicode_literals
44 -
45 - import sys
46 - import os
47 -+import unittest
48 - from os import path
49 - from copy import copy
50 - from unittest import TestCase
51 -@@ -127,6 +128,7 @@ class TestConvert(TestCase):
52 - self.assertIn('__content__', m.call_args[0][0])
53 - self.assertNotIn('**content**', m.call_args[0][0])
54 -
55 -+ @unittest.skip("needs internet access")
56 - def test_anonymous_reference_option(self):
57 - sys.argv = [
58 - sys.argv[0], '--anonymous-references', '--dry-run', test_md]
59 -@@ -135,6 +137,7 @@ class TestConvert(TestCase):
60 - self.assertIn("`A link to GitHub <http://github.com/>`__",
61 - m.call_args[0][0])
62 -
63 -+ @unittest.skip("test seems to be broken")
64 - def test_disable_inline_math(self):
65 - sys.argv = [
66 - sys.argv[0], '--disable-inline-math', '--dry-run', test_md]
67
68 diff --git a/dev-python/m2r/files/m2r-0.2.1-tests.patch b/dev-python/m2r/files/m2r-0.2.1-tests.patch
69 deleted file mode 100644
70 index 9c70bbc5b49d..000000000000
71 --- a/dev-python/m2r/files/m2r-0.2.1-tests.patch
72 +++ /dev/null
73 @@ -1,65 +0,0 @@
74 -From 77968c4574cb121737a2017b936870603664be39 Mon Sep 17 00:00:00 2001
75 -From: miyakogi <miyako.dev@×××××.com>
76 -Date: Tue, 4 Jun 2019 19:13:26 +0900
77 -Subject: [PATCH] Fix test
78 -
79 ----
80 - tests/test_renderer.py | 12 ++++++------
81 - 1 file changed, 6 insertions(+), 6 deletions(-)
82 -
83 -diff --git a/tests/test_renderer.py b/tests/test_renderer.py
84 -index 5c6f915..4c7ebba 100644
85 ---- a/tests/test_renderer.py
86 -+++ b/tests/test_renderer.py
87 -@@ -43,6 +43,7 @@ def check_rst(self, rst):
88 - class TestBasic(RendererTestBase):
89 - def test_fail_rst(self):
90 - with self.assertRaises(AssertionError):
91 -+ # This check should be failed and report warning
92 - self.check_rst('```')
93 -
94 - def test_simple_paragraph(self):
95 -@@ -709,7 +710,6 @@ def test_footnote(self):
96 - '',
97 - '.. [#a] note rst', # one empty line inserted...
98 - '',
99 -- '',
100 - '.. [#fn-1] note 1',
101 - '.. [#fn-2] note 2',
102 - '.. [#fn-ref] note ref',
103 -@@ -719,22 +719,22 @@ def test_footnote(self):
104 - def test_sphinx_ref(self):
105 - src = 'This is a sphinx [ref]_ global ref.\n\n.. [ref] ref text'
106 - out = self.conv(src)
107 -- self.assertEqual(out, '\n' + src + '\n')
108 -+ self.assertEqual(out, '\n' + src)
109 -
110 -
111 - class TestDirective(RendererTestBase):
112 - def test_comment_oneline(self):
113 - src = '.. a'
114 - out = self.conv(src)
115 -- self.assertEqual(out, '\n.. a\n')
116 -+ self.assertEqual(out, '\n.. a')
117 -
118 - def test_comment_indented(self):
119 - src = ' .. a'
120 - out = self.conv(src)
121 -- self.assertEqual(out, '\n .. a\n')
122 -+ self.assertEqual(out, '\n .. a')
123 -
124 - def test_comment_newline(self):
125 -- src = '..\n\n comment\nnewline'
126 -+ src = '..\n\n comment\n\nnewline'
127 - out = self.conv(src)
128 - self.assertEqual(out, '\n..\n\n comment\n\nnewline\n')
129 -
130 -@@ -748,7 +748,7 @@ def test_comment_multiline(self):
131 - '\n\n')
132 - src = comment + '`eoc`'
133 - out = self.conv(src)
134 -- self.assertEqual(out, '\n' + comment + '\n``eoc``\n')
135 -+ self.assertEqual(out, '\n' + comment + '``eoc``\n')
136 -
137 -
138 - class TestRestCode(RendererTestBase):
139
140 diff --git a/dev-python/m2r/files/m2r-0.2.1-upstream-fix.patch b/dev-python/m2r/files/m2r-0.2.1-upstream-fix.patch
141 deleted file mode 100644
142 index 7060c33e78dd..000000000000
143 --- a/dev-python/m2r/files/m2r-0.2.1-upstream-fix.patch
144 +++ /dev/null
145 @@ -1,23 +0,0 @@
146 -From c78db2aa91787df6973ad6400208707c7ecf4b12 Mon Sep 17 00:00:00 2001
147 -From: "Ethan \"Soron\" Kaminski" <ethan.kaminski@×××××.com>
148 -Date: Thu, 25 Apr 2019 12:56:14 +0800
149 -Subject: [PATCH] Remove a trailing newline after `.rst` directives (fix issue
150 - #35)
151 -
152 ----
153 - m2r.py | 2 +-
154 - 1 file changed, 1 insertion(+), 1 deletion(-)
155 -
156 -diff --git a/m2r.py b/m2r.py
157 -index 897338d..74c8c98 100644
158 ---- a/m2r.py
159 -+++ b/m2r.py
160 -@@ -507,7 +507,7 @@ def eol_literal_marker(self, marker):
161 - return marker
162 -
163 - def directive(self, text):
164 -- return '\n' + text + '\n'
165 -+ return '\n' + text
166 -
167 - def rest_code_block(self):
168 - return '\n\n'
169
170 diff --git a/dev-python/m2r/files/m2r.1 b/dev-python/m2r/files/m2r.1
171 deleted file mode 100644
172 index 1a6c10b48a90..000000000000
173 --- a/dev-python/m2r/files/m2r.1
174 +++ /dev/null
175 @@ -1,515 +0,0 @@
176 -.\" Man page generated from reStructuredText.
177 -.
178 -.TH "M2R" "1" "Mar 30, 2017" "0.1.5" "M2R"
179 -.SH NAME
180 -m2r \- M2R Documentation
181 -.
182 -.nr rst2man-indent-level 0
183 -.
184 -.de1 rstReportMargin
185 -\\$1 \\n[an-margin]
186 -level \\n[rst2man-indent-level]
187 -level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
188 --
189 -\\n[rst2man-indent0]
190 -\\n[rst2man-indent1]
191 -\\n[rst2man-indent2]
192 -..
193 -.de1 INDENT
194 -.\" .rstReportMargin pre:
195 -. RS \\$1
196 -. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
197 -. nr rst2man-indent-level +1
198 -.\" .rstReportMargin post:
199 -..
200 -.de UNINDENT
201 -. RE
202 -.\" indent \\n[an-margin]
203 -.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
204 -.nr rst2man-indent-level -1
205 -.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
206 -.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
207 -..
208 -\fI\%PyPI\fP\fI\%PyPI version\fP\fI\%Build Status\fP\fI\%codecov\fP
209 -.sp
210 -.ce
211 -----
212 -
213 -.ce 0
214 -.sp
215 -.sp
216 -M2R converts a markdown file including reST markups to a valid reST format.
217 -.SH WHY ANOTHER CONVERTER?
218 -.sp
219 -I wanted to write sphinx document in markdown, since it\(aqs widely used now and
220 -easy to write code blocks and lists. However, converters using pandoc or
221 -recommonmark do not support many reST markups and sphinx extensions. For
222 -example, reST\(aqs reference link like \fBsee \(garef\(ga_\fP (this is very convenient in
223 -long document in which same link appears multiple times) will be converted to
224 -a code block in HTML like \fBsee <code>ref</code>_\fP, which is not expected.
225 -.SH FEATURES
226 -.INDENT 0.0
227 -.IP \(bu 2
228 -Basic markdown and some extensions (see below)
229 -.INDENT 2.0
230 -.IP \(bu 2
231 -inline/block\-level raw html
232 -.IP \(bu 2
233 -fenced\-code block
234 -.IP \(bu 2
235 -tables
236 -.IP \(bu 2
237 -footnotes (\fB[^1]\fP)
238 -.UNINDENT
239 -.IP \(bu 2
240 -Inline\- and Block\-level reST markups
241 -.INDENT 2.0
242 -.IP \(bu 2
243 -single\- and multi\-line directives (\fB\&.. directive::\fP)
244 -.IP \(bu 2
245 -inline\-roles (\fB:code:\(gaprint(1)\(ga ...\fP)
246 -.IP \(bu 2
247 -ref\-link (\fBsee \(garef\(ga_\fP)
248 -.IP \(bu 2
249 -footnotes (\fB[#fn]_\fP)
250 -.IP \(bu 2
251 -math extension inspired by \fI\%recommonmark\fP
252 -.UNINDENT
253 -.IP \(bu 2
254 -Sphinx extension
255 -.INDENT 2.0
256 -.IP \(bu 2
257 -add markdown support for sphinx
258 -.IP \(bu 2
259 -\fBmdinclude\fP directive to include markdown from md or reST files
260 -.UNINDENT
261 -.UNINDENT
262 -.SH INSTALLATION
263 -.sp
264 -Python 2.7 or Python 3.3+ is required.
265 -.INDENT 0.0
266 -.INDENT 3.5
267 -.sp
268 -.nf
269 -.ft C
270 -pip install m2r
271 -.ft P
272 -.fi
273 -.UNINDENT
274 -.UNINDENT
275 -.SH USAGE
276 -.SS Command Line
277 -.sp
278 -\fBm2r\fP command converts markdown file to reST format.
279 -.INDENT 0.0
280 -.INDENT 3.5
281 -.sp
282 -.nf
283 -.ft C
284 -m2r your_document.md [your_document2.md ...]
285 -.ft P
286 -.fi
287 -.UNINDENT
288 -.UNINDENT
289 -.sp
290 -Then you will find \fByour_document.rst\fP in the same directory.
291 -.SS Programmatic Use
292 -.sp
293 -Instantiate \fBM2R\fP class and call with markdown text. Then it will return converted text.
294 -.INDENT 0.0
295 -.INDENT 3.5
296 -.sp
297 -.nf
298 -.ft C
299 -from m2r import M2R
300 -m2r = M2R()
301 -rest = m2r(\(aq# Title\en\enSentence.\(aq)
302 -print(rest)
303 -# Title
304 -# =====
305 -#
306 -# Sentence.
307 -.ft P
308 -.fi
309 -.UNINDENT
310 -.UNINDENT
311 -.sp
312 -Or, use \fBparse_from_file\fP function to load markdown file and obtain converted text.
313 -.INDENT 0.0
314 -.INDENT 3.5
315 -.sp
316 -.nf
317 -.ft C
318 -from m2r import parse_from_file
319 -output = parse_from_file(\(aqmarkdown_file.md\(aq)
320 -.ft P
321 -.fi
322 -.UNINDENT
323 -.UNINDENT
324 -.sp
325 -This is an example of setup.py to write README in markdown, and publish it to PyPI as reST format.
326 -.INDENT 0.0
327 -.INDENT 3.5
328 -.sp
329 -.nf
330 -.ft C
331 -readme_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), \(aqREADME.md\(aq)
332 -try:
333 - from m2r import parse_from_file
334 - readme = parse_from_file(readme_file)
335 -except ImportError:
336 - # m2r may not be installed in user environment
337 - with open(readme_file) as f:
338 - readme = f.read()
339 -setup(
340 - ...,
341 - long_description=readme,
342 - ...,
343 -)
344 -.ft P
345 -.fi
346 -.UNINDENT
347 -.UNINDENT
348 -.SS Sphinx Integration
349 -.sp
350 -In your conf.py, add the following lines.
351 -.INDENT 0.0
352 -.INDENT 3.5
353 -.sp
354 -.nf
355 -.ft C
356 -extensions = [
357 - ...,
358 - \(aqm2r\(aq,
359 -]
360 -
361 -# source_suffix = \(aq.rst\(aq
362 -source_suffix = [\(aq.rst\(aq, \(aq.md\(aq]
363 -.ft P
364 -.fi
365 -.UNINDENT
366 -.UNINDENT
367 -.sp
368 -Write index.md and run \fBmake html\fP\&.
369 -.sp
370 -When \fBm2r\fP extension is enabled on sphinx and \fB\&.md\fP file is loaded, m2r
371 -converts to reST and pass to sphinx, not making new \fB\&.rst\fP file.
372 -.SS mdinclude directive
373 -.sp
374 -Like \fB\&.. include:: file\fP directive, \fB\&.. mdinclude:: file\fP directive inserts
375 -markdown file at the line.
376 -.sp
377 -Note: do not use \fB\&.. include:: file\fP directive to include markdown file even if
378 -in the markdown file, please use \fB\&.. mdinclude:: file\fP instead.
379 -.SH RESTRICTIONS
380 -.INDENT 0.0
381 -.IP \(bu 2
382 -In the reST\(aqs directives, markdown is not available. Please write in reST.
383 -.IP \(bu 2
384 -Column alignment of tables is not supported. (reST does not support this feature)
385 -.IP \(bu 2
386 -Heading with overline\-and\-underline is not supported.
387 -.INDENT 2.0
388 -.IP \(bu 2
389 -Heading with underline is OK
390 -.UNINDENT
391 -.UNINDENT
392 -.sp
393 -If you find any bug or unexpected behaviour, please report it to
394 -\fI\%Issues\fP\&.
395 -.SH EXAMPLE
396 -.sp
397 -See \fI\%example document\fP and \fI\%its
398 -source code\fP\&.
399 -.sp
400 -I\(aqm using m2r for writing user guide of \fI\%WDOM\fP\&.
401 -So you can see it as another example. Its \fI\%HTML is
402 -here\fP, and \fI\%its
403 -source code is here\fP\&.
404 -.SH ACKNOWLEDGEMENT
405 -.sp
406 -m2r is written as an extension of
407 -\fI\%mistune\fP, which is highly extensible
408 -pure\-python markdown parser.
409 -Without the mistune, I couldn\(aqt write this. Thank you!
410 -.SH LICENCE
411 -.sp
412 -\fI\%MIT\fP
413 -.SH CONTENTS
414 -.SS Example
415 -.sp
416 -This page is written in mixed markdown and reST.
417 -Source code is \fI\%here\fP\&.
418 -.SS Basic Markups (inline)
419 -.sp
420 -A \fBstrong\fP, \fIemphasis\fP, , \fBcode with single\-backtick\fP,
421 -\fBcode with two\-backticks\fP, ,
422 -\fBreST\(aqs code role\fP, and delete.
423 -.SS Link
424 -.sp
425 -Auto link to \fI\%http://example.com/\fP\&.
426 -.sp
427 -Link to \fI\%example.com\fP in markdown.
428 -.sp
429 -Link to \fI\%example.com\fP in reST.
430 -.sp
431 -Link to \fI\%example\fP in reST_ref.
432 -.SS Basic Markups (block)
433 -.sp
434 -This is a simple sentence.
435 -.nf
436 -sentence with
437 -newlines
438 -(reST)
439 -.fi
440 -.sp
441 -.sp
442 -Sentence with
443 -hard\-wrap (markdown, trailing two spaces)
444 -.INDENT 0.0
445 -.INDENT 3.5
446 -block quote
447 -second line
448 -.INDENT 0.0
449 -.INDENT 3.5
450 -nested quote
451 -.UNINDENT
452 -.UNINDENT
453 -.UNINDENT
454 -.UNINDENT
455 -
456 -.sp
457 -.ce
458 -----
459 -
460 -.ce 0
461 -.sp
462 -.INDENT 0.0
463 -.INDENT 3.5
464 -Block quote after raw\-html directive
465 -.UNINDENT
466 -.UNINDENT
467 -.SS List
468 -.SS Unordered list
469 -.INDENT 0.0
470 -.IP \(bu 2
471 -unordered list
472 -new line
473 -.IP \(bu 2
474 -next item
475 -.INDENT 2.0
476 -.IP \(bu 2
477 -nested list
478 -with new line
479 -.IP \(bu 2
480 -nested list item 2
481 -.UNINDENT
482 -.IP \(bu 2
483 -original depth
484 -.INDENT 2.0
485 -.IP 1. 3
486 -ordered list item
487 -.IP 2. 3
488 -second
489 -with new line
490 -.UNINDENT
491 -.IP \(bu 2
492 -original depth again
493 -.UNINDENT
494 -.SS Ordered list
495 -.INDENT 0.0
496 -.IP 1. 3
497 -ordered list
498 -in new line
499 -.IP 2. 3
500 -second item
501 -.INDENT 3.0
502 -.IP \(bu 2
503 -nested unordered list
504 -.IP \(bu 2
505 -second item
506 -with new line
507 -.UNINDENT
508 -.IP 3. 3
509 -original depth
510 -.INDENT 3.0
511 -.IP 1. 3
512 -nested ordered list
513 -with new line
514 -.IP 2. 3
515 -again
516 -.UNINDENT
517 -.IP 4. 3
518 -original depth again
519 -.UNINDENT
520 -.SS Code Block
521 -.sp
522 -Simple, indented code block
523 -.INDENT 0.0
524 -.INDENT 3.5
525 -.sp
526 -.nf
527 -.ft C
528 -pip install sphinx
529 -.ft P
530 -.fi
531 -.UNINDENT
532 -.UNINDENT
533 -.sp
534 -Code block with triple backticks and language.
535 -.INDENT 0.0
536 -.INDENT 3.5
537 -.sp
538 -.nf
539 -.ft C
540 -def a(n: int) \-> None:
541 - for i in range(n):
542 - print(i)
543 -.ft P
544 -.fi
545 -.UNINDENT
546 -.UNINDENT
547 -.sp
548 -Triple\-tildes (\fB~~~\fP) are also available.
549 -.INDENT 0.0
550 -.INDENT 3.5
551 -.sp
552 -.nf
553 -.ft C
554 -def a(n: int) \-> None:
555 - for i in range(n):
556 - print(i)
557 -.ft P
558 -.fi
559 -.UNINDENT
560 -.UNINDENT
561 -.sp
562 -Here is reST style code block.
563 -.INDENT 0.0
564 -.INDENT 3.5
565 -.sp
566 -.nf
567 -.ft C
568 -if True:
569 - print(\(aq\en\(aq)
570 -.ft P
571 -.fi
572 -.UNINDENT
573 -.UNINDENT
574 -.SS Extensions
575 -.SS Table (Markdown\-Style)
576 -.sp
577 -(cell\-alignment is not supported currently)
578 -.TS
579 -center;
580 -|l|l|l|.
581 -_
582 -T{
583 -Table Header 1
584 -T} T{
585 -Table Header 2
586 -T} T{
587 -Table Header 3
588 -T}
589 -_
590 -T{
591 -normal
592 -T} T{
593 -\fIitalic\fP
594 -T} T{
595 -\fBbold\fP
596 -T}
597 -_
598 -T{
599 -\fBcode\fP
600 -T} T{
601 -T} T{
602 -T}
603 -_
604 -.TE
605 -.SS Math
606 -.sp
607 -This is E = mc^2 inline math.
608 -.sp
609 -The below is math\-block (markdown\-style).
610 -.sp
611 -.ce
612 -
613 -.ce 0
614 -.sp
615 -The below is reST\-style math\-block.
616 -.sp
617 -.ce
618 -
619 -.ce 0
620 -.SS Footnote
621 -.sp
622 -Footnote[2] and footnote[3] with markdown.
623 -.sp
624 -Footnote with reST[1]\&.
625 -.sp
626 -
627 -.IP [1] 5
628 -reST footnote
629 -.IP [2] 5
630 -footnote 1
631 -.IP [3] 5
632 -footnote key
633 -.SS Change Log
634 -.SS Version 0.2
635 -.sp
636 -(next version)
637 -.SS Version 0.1.5 (2016\-06\-21)
638 -.INDENT 0.0
639 -.IP \(bu 2
640 -Support multiple backticks in inline code, like:
641 -.UNINDENT
642 -.SS Version 0.1.4 (2016\-06\-08)
643 -.INDENT 0.0
644 -.IP \(bu 2
645 -Support indented directives/reST\-comments
646 -.IP \(bu 2
647 -Support role\-name after backticks (\fB\(gatext\(ga:role: style\fP)
648 -.UNINDENT
649 -.SS Version 0.1.3 (2016\-06\-02)
650 -.INDENT 0.0
651 -.IP \(bu 2
652 -Remove extra escaped\-spaces (\(aq\(aq)
653 -.INDENT 2.0
654 -.IP \(bu 2
655 -before and after normal spaces
656 -.IP \(bu 2
657 -at the beginning of lines
658 -.IP \(bu 2
659 -before dots
660 -.UNINDENT
661 -.UNINDENT
662 -.SS Version 0.1.2 (2016\-06\-01)
663 -.INDENT 0.0
664 -.IP \(bu 2
665 -Add reST\(aqs \fB::\fP marker support
666 -.IP \(bu 2
667 -Add options to disable emphasis by underscore (\fB_\fP or \fB__\fP)
668 -.UNINDENT
669 -.SS Version 0.1.1 (2016\-05\-30)
670 -.INDENT 0.0
671 -.IP \(bu 2
672 -Fix Bug: when code or link is placed at the end of line, spaces to the next word is disappeared
673 -.UNINDENT
674 -.SS Version 0.1 (2016\-05\-30)
675 -.sp
676 -First public release.
677 -.INDENT 0.0
678 -.IP \(bu 2
679 -genindex
680 -.IP \(bu 2
681 -modindex
682 -.IP \(bu 2
683 -search
684 -.UNINDENT
685 -.SH AUTHOR
686 -Hiroyuki Takagi
687 -.SH COPYRIGHT
688 -2016, Hiroyuki Takagi
689 -.\" Generated by docutils manpage writer.
690 -.
691
692 diff --git a/dev-python/m2r/files/test.md b/dev-python/m2r/files/test.md
693 deleted file mode 100644
694 index e54ac950e527..000000000000
695 --- a/dev-python/m2r/files/test.md
696 +++ /dev/null
697 @@ -1,5 +0,0 @@
698 -# Title
699 -
700 -## SubTitle
701 -
702 -__content__
703
704 diff --git a/dev-python/m2r/files/test.rst b/dev-python/m2r/files/test.rst
705 deleted file mode 100644
706 index f45558879567..000000000000
707 --- a/dev-python/m2r/files/test.rst
708 +++ /dev/null
709 @@ -1,8 +0,0 @@
710 -
711 -Title
712 -=====
713 -
714 -SubTitle
715 ---------
716 -
717 -**content**
718
719 diff --git a/dev-python/m2r/m2r-0.2.1.ebuild b/dev-python/m2r/m2r-0.2.1.ebuild
720 deleted file mode 100644
721 index cd8709ae16d6..000000000000
722 --- a/dev-python/m2r/m2r-0.2.1.ebuild
723 +++ /dev/null
724 @@ -1,58 +0,0 @@
725 -# Copyright 1999-2022 Gentoo Authors
726 -# Distributed under the terms of the GNU General Public License v2
727 -
728 -EAPI=7
729 -
730 -PYTHON_COMPAT=( python3_{7..10} pypy3 )
731 -inherit distutils-r1
732 -
733 -DESCRIPTION="Markdown to reStructuredText converter"
734 -HOMEPAGE="https://github.com/miyakogi/m2r https://pypi.org/project/m2r/"
735 -SRC_URI="https://github.com/miyakogi/m2r/archive/v${PV}.tar.gz -> ${P}.tar.gz"
736 -
737 -LICENSE="MIT"
738 -SLOT="0"
739 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos"
740 -IUSE="test"
741 -
742 -RDEPEND="
743 - dev-python/docutils[${PYTHON_USEDEP}]
744 - <dev-python/mistune-2.0[${PYTHON_USEDEP}]
745 -"
746 -BDEPEND="
747 - test? (
748 - dev-python/pygments[${PYTHON_USEDEP}]
749 - )
750 - ${RDEPEND}
751 -"
752 -
753 -PATCHES=(
754 - # pulled from upstream git
755 - "${FILESDIR}/m2r-0.2.1-upstream-fix.patch"
756 - "${FILESDIR}/m2r-0.2.1-tests.patch"
757 - # skip tests that need internet
758 - "${FILESDIR}/m2r-0.2.1-tests-network.patch"
759 -)
760 -
761 -distutils_enable_tests pytest
762 -
763 -python_prepare_all() {
764 - # fix a Q/A violation, trying to install the tests as an independant package
765 - sed -e "s/packages=\['tests'\],/packages=[],/" -i setup.py
766 - # add missing test files
767 - cp "${FILESDIR}/"test.md tests/ || die
768 - cp "${FILESDIR}/"test.rst tests/ || die
769 - cp "${FILESDIR}/"m2r.1 "${S}" || die
770 -
771 - # in python 3.10, the text changed from "optional arguments" to "options".
772 - # the test matches on the concrete string, make it match on the part that is shared
773 - # by both versions
774 - sed -e 's/optional arguments:/option/' -i tests/test_cli.py || die
775 -
776 - distutils-r1_python_prepare_all
777 -}
778 -
779 -python_install_all() {
780 - distutils-r1_python_install_all
781 - doman m2r.1
782 -}
783
784 diff --git a/dev-python/m2r/metadata.xml b/dev-python/m2r/metadata.xml
785 deleted file mode 100644
786 index 5d31d72e555d..000000000000
787 --- a/dev-python/m2r/metadata.xml
788 +++ /dev/null
789 @@ -1,17 +0,0 @@
790 -<?xml version="1.0" encoding="UTF-8"?>
791 -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
792 -<pkgmetadata>
793 - <maintainer type="project">
794 - <email>python@g.o</email>
795 - <name>Python</name>
796 - </maintainer>
797 - <stabilize-allarches/>
798 - <upstream>
799 - <maintainer>
800 - <email>miyako.dev@×××××.com</email>
801 - <name>Hiroyuki Takagi</name>
802 - </maintainer>
803 - <remote-id type="pypi">m2r</remote-id>
804 - <remote-id type="github">miyakogi/m2r</remote-id>
805 - </upstream>
806 -</pkgmetadata>
807
808 diff --git a/profiles/package.mask b/profiles/package.mask
809 index 4b0a636fd538..e588e0580899 100644
810 --- a/profiles/package.mask
811 +++ b/profiles/package.mask
812 @@ -274,7 +274,6 @@ dev-python/pyfeyn
813 # is dev-python/jupyter_server[doc], so let's mask the flag and remove
814 # them.
815 # Removal on 2022-06-24. Bug #843881.
816 -dev-python/m2r
817 dev-python/sphinxcontrib-openapi
818
819 # Hans de Graaff <graaff@g.o> (2022-05-20)