You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
(5) |
May
(27) |
Jun
(22) |
Jul
(72) |
Aug
(82) |
Sep
(86) |
Oct
(138) |
Nov
(100) |
Dec
(62) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(122) |
Feb
(147) |
Mar
(92) |
Apr
(82) |
May
(101) |
Jun
(153) |
Jul
(37) |
Aug
(34) |
Sep
(46) |
Oct
(46) |
Nov
(6) |
Dec
(38) |
2004 |
Jan
(64) |
Feb
(81) |
Mar
(36) |
Apr
(194) |
May
(329) |
Jun
(272) |
Jul
(68) |
Aug
(74) |
Sep
(150) |
Oct
(57) |
Nov
(62) |
Dec
(63) |
2005 |
Jan
(78) |
Feb
(30) |
Mar
(137) |
Apr
(78) |
May
(54) |
Jun
(122) |
Jul
(72) |
Aug
(110) |
Sep
(80) |
Oct
(75) |
Nov
(125) |
Dec
(79) |
2006 |
Jan
(100) |
Feb
(15) |
Mar
(41) |
Apr
(67) |
May
(30) |
Jun
(11) |
Jul
(14) |
Aug
(22) |
Sep
(20) |
Oct
(14) |
Nov
(11) |
Dec
(15) |
2007 |
Jan
(17) |
Feb
(16) |
Mar
(35) |
Apr
(21) |
May
(33) |
Jun
(50) |
Jul
(12) |
Aug
(7) |
Sep
(2) |
Oct
(6) |
Nov
(5) |
Dec
(2) |
2008 |
Jan
(14) |
Feb
(20) |
Mar
(35) |
Apr
(9) |
May
(57) |
Jun
(21) |
Jul
(42) |
Aug
(4) |
Sep
(13) |
Oct
(76) |
Nov
(40) |
Dec
(55) |
2009 |
Jan
(26) |
Feb
(15) |
Mar
(3) |
Apr
(67) |
May
(32) |
Jun
(39) |
Jul
(59) |
Aug
(31) |
Sep
(59) |
Oct
(64) |
Nov
(21) |
Dec
(10) |
2010 |
Jan
(21) |
Feb
(3) |
Mar
(116) |
Apr
(33) |
May
(9) |
Jun
(28) |
Jul
(21) |
Aug
(23) |
Sep
(146) |
Oct
(70) |
Nov
(31) |
Dec
(57) |
2011 |
Jan
(33) |
Feb
(22) |
Mar
(11) |
Apr
(21) |
May
(51) |
Jun
(47) |
Jul
(35) |
Aug
(26) |
Sep
(25) |
Oct
(34) |
Nov
(61) |
Dec
(51) |
2012 |
Jan
(75) |
Feb
(31) |
Mar
(26) |
Apr
(16) |
May
(24) |
Jun
(24) |
Jul
(31) |
Aug
(46) |
Sep
(36) |
Oct
(28) |
Nov
(37) |
Dec
(21) |
2013 |
Jan
(16) |
Feb
(56) |
Mar
(31) |
Apr
(44) |
May
(45) |
Jun
(29) |
Jul
(38) |
Aug
(18) |
Sep
(12) |
Oct
(16) |
Nov
(21) |
Dec
(11) |
2014 |
Jan
(13) |
Feb
(14) |
Mar
(28) |
Apr
(7) |
May
(72) |
Jun
(33) |
Jul
(21) |
Aug
(1) |
Sep
(6) |
Oct
(14) |
Nov
(18) |
Dec
(22) |
2015 |
Jan
(23) |
Feb
(108) |
Mar
(76) |
Apr
(114) |
May
(60) |
Jun
(9) |
Jul
(8) |
Aug
(9) |
Sep
(42) |
Oct
(9) |
Nov
|
Dec
(7) |
2016 |
Jan
(6) |
Feb
(15) |
Mar
(7) |
Apr
|
May
(33) |
Jun
(3) |
Jul
(19) |
Aug
(12) |
Sep
(6) |
Oct
(16) |
Nov
(17) |
Dec
(125) |
2017 |
Jan
(66) |
Feb
(98) |
Mar
(29) |
Apr
(32) |
May
(63) |
Jun
(98) |
Jul
(26) |
Aug
(33) |
Sep
(19) |
Oct
(77) |
Nov
(31) |
Dec
(27) |
2018 |
Jan
(32) |
Feb
(11) |
Mar
(5) |
Apr
(12) |
May
(4) |
Jun
(9) |
Jul
(9) |
Aug
(13) |
Sep
(11) |
Oct
(6) |
Nov
(23) |
Dec
(2) |
2019 |
Jan
(26) |
Feb
(12) |
Mar
(20) |
Apr
(18) |
May
(7) |
Jun
(22) |
Jul
(81) |
Aug
(129) |
Sep
(32) |
Oct
(18) |
Nov
(11) |
Dec
(44) |
2020 |
Jan
(19) |
Feb
(10) |
Mar
(38) |
Apr
(4) |
May
(9) |
Jun
(15) |
Jul
(29) |
Aug
(79) |
Sep
(12) |
Oct
(22) |
Nov
(10) |
Dec
(37) |
2021 |
Jan
(16) |
Feb
(14) |
Mar
(20) |
Apr
(100) |
May
(21) |
Jun
(19) |
Jul
(13) |
Aug
(13) |
Sep
(37) |
Oct
(112) |
Nov
(64) |
Dec
(22) |
2022 |
Jan
(209) |
Feb
(38) |
Mar
(11) |
Apr
(10) |
May
(55) |
Jun
(104) |
Jul
(35) |
Aug
(10) |
Sep
(21) |
Oct
(21) |
Nov
(50) |
Dec
(12) |
2023 |
Jan
(6) |
Feb
|
Mar
(3) |
Apr
(41) |
May
(48) |
Jun
(9) |
Jul
(6) |
Aug
(25) |
Sep
(3) |
Oct
(22) |
Nov
(56) |
Dec
(12) |
2024 |
Jan
(5) |
Feb
(5) |
Mar
(38) |
Apr
(48) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: engelbert g. <eng...@gm...> - 2024-04-19 19:13:20
|
Release 0.21.2 consist of fix to tests and support for languages Georgian and Catalan (Valencian) both now in the pypi classifiers. commit freeze till then and the week following for any problem reports all the best e |
From: Guenter M. <mi...@us...> - 2024-04-18 11:19:50
|
On 2024-04-17, Stephen Finucane wrote: > On Tue, 2024-04-16 at 19:45 +0000, Guenter Milde via Docutils-develop wrote: >> On 2024-04-15, Stephen Finucane wrote: Dear Stephen, >> Contributions are welcome. > Excellent. I just wanted to make sure it wouldn't be wasted effort. >> > As a follow-up to the above, are there any significant concerns with >> > using a tool like 'ruff format' or 'black' to auto-format code before >> > adding the annotations? It's small thing but it would make the process >> > of folding in hints somewhat easier if I can rely on tooling to handle >> > formatting for me. >> There is support for automatic checks with https://pre-commit.com for >> Git-based repos [...] ... > I'm a big fan of pre-commit and use it in many of my projects. However, > as the project is hosted in SVN I had assumed any git-specific tooling > would be out the window. More than happy to add this. It works with `git svn` because the check is at commit stage, not when commiting with dcommit :) >> "black" seems too rigid to me (practicability beats purity), >> especially as we have a large codebase with long legacy and must rely >> on "git blame" in many cases to find out whether some legacy code may >> be dropped or has a reason... > I too have some concerns with the style of black-formatted code - as I > do with the style of gofmt-formatted Go code - however, it _is_ > robustly maintained, requires little to no configuration on our end, > and effectively allows formatting to be ignored by developers. It is > also possible to add a '.git- blame-ignore-revs' file that will allow > git-blame to ignore certain revisions. This file is also respected by > some software forges such as GitHub, though I think it's fair to assume > it is ignored for SVN repos on Sourceforge :) Would be nice, if it worked for a local git-svn checkout... > If it's okay with you, I will propose adding hints to a single module > _with_ black to see how it works. If the output is truly awful, we can > change tack and try to find a formatter than is slightly closer to what > we already have but still allows me to avoid fixing formatting in some > many 100s of files by hand. I am still sceptical but we may just test. Is there some tool what only applies auto-formatting to changes? Mind, that we are on course to the 0.21.2 maintenance release, so no changes to the repository master now and only fixes for a week after the release (until we know if everything went fine). Thanks Günter |
From: Guenter M. <mi...@us...> - 2024-04-18 10:40:55
|
Dear Dave, glad to hear that you are still around! On 2024-04-16, Dave Kuhlman wrote: > I wrote the original code for rst2odt. > I'm willing to work on that module. > Any suggestions or guidance would be welcomed. > If we do attempt this task, it'd be good if we do > it consistently across all the module we add type hints to. > Is there something we should look at for a style guide? ... My suggestion would be that we start with another module (core.py or utils/__init__.py, say) and work out some style rules for our policies from this example. If we agree to do the writers last (and leave the ODT to you), there should be plenty of code to look at for guidance. There is also a number of "Tickets" (bug reports, feature requests, patches) tagged as "ODT writer", e.g. https://sourceforge.net/p/docutils/bugs/search/?q=labels%3AODT+AND+status%3Aopen+OR+status+pending-remind Günter |
From: Stephen F. <st...@th...> - 2024-04-17 16:14:50
|
On Wed, 2024-04-17 at 09:03 -0500, Karl O. Pinc wrote: > On Wed, 17 Apr 2024 11:02:11 +0100 > Stephen Finucane <st...@th...ru> wrote: > > > On Tue, 2024-04-16 at 19:45 +0000, Guenter Milde via Docutils-develop > > wrote: > > > > "black" seems too rigid to me (practicability beats purity), > > > especially as we have a large codebase with long legacy and must > > > rely on "git blame" in many cases to find out whether some legacy > > > code may be dropped or has a reason... > > > > I too have some concerns with the style of black-formatted code - as > > I do with the style of gofmt-formatted Go code - however, it _is_ > > robustly maintained, requires little to no configuration on our end, > > and effectively allows formatting to be ignored by developers. > > Unsolicited input. It seems now would be the time to comment, > even though I am unlikely to ever be involved. > > I like (the traditional) 79 char line length limit. > black --line-length 79 ... > isort --line-length 79 ... > > (Black defaults to 88.) > > There's a reason newspapers are written in columns. > The eye must track back from the end of one line > to the beginning of the next. This is disturbed by > over-long lines. I agree. > > Regards, > > Karl <ko...@ka...> > Free Software: "You don't pay back, you pay forward." > -- Robert A. Heinlein |
From: Karl O. P. <ko...@ka...> - 2024-04-17 14:19:06
|
On Wed, 17 Apr 2024 11:02:11 +0100 Stephen Finucane <st...@th...ru> wrote: > On Tue, 2024-04-16 at 19:45 +0000, Guenter Milde via Docutils-develop > wrote: > > "black" seems too rigid to me (practicability beats purity), > > especially as we have a large codebase with long legacy and must > > rely on "git blame" in many cases to find out whether some legacy > > code may be dropped or has a reason... > > I too have some concerns with the style of black-formatted code - as > I do with the style of gofmt-formatted Go code - however, it _is_ > robustly maintained, requires little to no configuration on our end, > and effectively allows formatting to be ignored by developers. Unsolicited input. It seems now would be the time to comment, even though I am unlikely to ever be involved. I like (the traditional) 79 char line length limit. black --line-length 79 ... isort --line-length 79 ... (Black defaults to 88.) There's a reason newspapers are written in columns. The eye must track back from the end of one line to the beginning of the next. This is disturbed by over-long lines. Regards, Karl <ko...@ka...> Free Software: "You don't pay back, you pay forward." -- Robert A. Heinlein |
From: Stephen F. <st...@th...> - 2024-04-17 10:08:32
|
On Tue, 2024-04-16 at 16:52 -0600, Dave Kuhlman wrote: > On 2024-04-16 13:45, Guenter Milde via Docutils-develop wrote: > > > > > I would be willing to tackle this effort if it would be welcomed (I > > > previously tackled the "make docutils support Python 3 natively" > > > effort, along with some smaller quality-of-life fixes). > > > > Contributions are welcome. > > > > I wrote the original code for rst2odt. > I'm willing to work on that module. > Any suggestions or guidance would be welcomed. > > If we do attempt this task, it'd be good if we do > it consistently across all the module we add type hints to. > Is there something we should look at for a style guide? > I can't find anything that is specific to type hints in > PEP 8 (the style guide). PEP 484 ("Type hints") has some > guidance. Is there anything else I should read? That would be great. I would recommend checking out the docutils stub package in the typedshed repo to see if hints are present there first. If not, you'd be starting from scratch. Regarding styling these, I'm not aware of anything as concrete as PEP 8 so I think we'll be making it up as we go. I would suggest we mainly follow the style of typeshed itself, in so far as there is a style. I would also like us to fold the hints into the code itself, rather than presenting separate '.pyi' files. Is there anything you've seen done elsewhere that you think we should duplicate here? Stephen > > Dave > > > _______________________________________________ > Docutils-develop mailing list > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docutils-develop > > Please use "Reply All" to reply to the list. |
From: Stephen F. <st...@th...> - 2024-04-17 10:02:33
|
On Tue, 2024-04-16 at 19:45 +0000, Guenter Milde via Docutils-develop wrote: > Dear Stephen, > > On 2024-04-15, Stephen Finucane wrote: > > > I recently had to contribute a fix to the stubs type hints package for > > docutils in typeshed [1]. Is there any reason *not* to add these > > directly to docutils? > > * Historically, support for legacy versions prevented directly adding type > hints. > > * Currently, the main reason is: "it must be done by someone" and it is just > one of may open tasks. > > * The main author is no longer active and sometimes the correct type is not > known (e.g. there are still cases with 0 and 1 for booleans from the > days Python did not have False/True). Sometimes no hint may be better than > a misleading hint... I don't know about the quality of the existing stubs. > > * One more reason is the idea to wait until we drop support for > Python 3.9 (once it reaches end of life...) so we can use the union > operator (:PEP:`604`). > > > I would be willing to tackle this effort if it would be welcomed (I > > previously tackled the "make docutils support Python 3 natively" > > effort, along with some smaller quality-of-life fixes). > > Contributions are welcome. Excellent. I just wanted to make sure it wouldn't be wasted effort. > > As a follow-up to the above, are there any significant concerns with > > using a tool like 'ruff format' or 'black' to auto-format code before > > adding the annotations? It's small thing but it would make the process > > of folding in hints somewhat easier if I can rely on tooling to handle > > formatting for me. > > There is support for automatic checks with https://pre-commit.com for > Git-based repos (a ".pre-commit-config.yaml" file). It includes checks > for trailing-whitespace and flake8 (with ".flake8" configuration files > for the numerous exceptions due to legacy code or practicability). I'm a big fan of pre-commit and use it in many of my projects. However, as the project is hosted in SVN I had assumed any git-specific tooling would be out the window. More than happy to add this. > "black" seems too rigid to me (practicability beats purity), especially as > we have a large codebase with long legacy and must rely on "git blame" > in many cases to find out whether some legacy code may be dropped or has a > reason... I too have some concerns with the style of black-formatted code - as I do with the style of gofmt-formatted Go code - however, it _is_ robustly maintained, requires little to no configuration on our end, and effectively allows formatting to be ignored by developers. It is also possible to add a '.git- blame-ignore-revs' file that will allow git-blame to ignore certain revisions. This file is also respected by some software forges such as GitHub, though I think it's fair to assume it is ignored for SVN repos on Sourceforge :) If it's okay with you, I will propose adding hints to a single module _with_ black to see how it works. If the output is truly awful, we can change tack and try to find a formatter than is slightly closer to what we already have but still allows me to avoid fixing formatting in some many 100s of files by hand. Cheers, Stephen > > > Günter > > > > > _______________________________________________ > Docutils-develop mailing list > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docutils-develop > > Please use "Reply All" to reply to the list. |
From: Dave K. <dku...@da...> - 2024-04-16 23:21:17
|
On 2024-04-16 13:45, Guenter Milde via Docutils-develop wrote: > >> I would be willing to tackle this effort if it would be welcomed (I >> previously tackled the "make docutils support Python 3 natively" >> effort, along with some smaller quality-of-life fixes). > > Contributions are welcome. > I wrote the original code for rst2odt. I'm willing to work on that module. Any suggestions or guidance would be welcomed. If we do attempt this task, it'd be good if we do it consistently across all the module we add type hints to. Is there something we should look at for a style guide? I can't find anything that is specific to type hints in PEP 8 (the style guide). PEP 484 ("Type hints") has some guidance. Is there anything else I should read? Dave |
From: Guenter M. <mi...@us...> - 2024-04-16 21:08:24
|
Dear Stephen, On 2024-04-15, Stephen Finucane wrote: > I recently had to contribute a fix to the stubs type hints package for > docutils in typeshed [1]. Is there any reason *not* to add these > directly to docutils? * Historically, support for legacy versions prevented directly adding type hints. * Currently, the main reason is: "it must be done by someone" and it is just one of may open tasks. * The main author is no longer active and sometimes the correct type is not known (e.g. there are still cases with 0 and 1 for booleans from the days Python did not have False/True). Sometimes no hint may be better than a misleading hint... I don't know about the quality of the existing stubs. * One more reason is the idea to wait until we drop support for Python 3.9 (once it reaches end of life...) so we can use the union operator (:PEP:`604`). > I would be willing to tackle this effort if it would be welcomed (I > previously tackled the "make docutils support Python 3 natively" > effort, along with some smaller quality-of-life fixes). Contributions are welcome. > As a follow-up to the above, are there any significant concerns with > using a tool like 'ruff format' or 'black' to auto-format code before > adding the annotations? It's small thing but it would make the process > of folding in hints somewhat easier if I can rely on tooling to handle > formatting for me. There is support for automatic checks with https://pre-commit.com for Git-based repos (a ".pre-commit-config.yaml" file). It includes checks for trailing-whitespace and flake8 (with ".flake8" configuration files for the numerous exceptions due to legacy code or practicability). "black" seems too rigid to me (practicability beats purity), especially as we have a large codebase with long legacy and must rely on "git blame" in many cases to find out whether some legacy code may be dropped or has a reason... Günter |
From: Stephen F. <st...@th...> - 2024-04-15 17:28:51
|
o/ I recently had to contribute a fix to the stubs type hints package for docutils in typeshed [1]. Is there any reason *not* to add these directly to docutils? I would be willing to tackle this effort if it would be welcomed (I previously tackled the "make docutils support Python 3 natively" effort, along with some smaller quality-of-life fixes). As a follow-up to the above, are there any significant concerns with using a tool like 'ruff format' or 'black' to auto-format code before adding the annotations? It's small thing but it would make the process of folding in hints somewhat easier if I can rely on tooling to handle formatting for me. Cheers, Stephen [1] https://github.com/python/typeshed/tree/main/stubs/docutils |
From: Michał G. <mgo...@us...> - 2024-04-15 13:15:48
|
Sure. I can confirm that all tests pass both with and without dependencies installed. I've tested with Python 3.9, 3.12 and PyPy3.10. --- **[bugs:#485] 0.21.1: `FAIL: test_publish (test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase.test_publish) (id="totest['image_messages'][0]")`** **Status:** open **Created:** Thu Apr 11, 2024 02:48 PM UTC by Michał Górny **Last Updated:** Mon Apr 15, 2024 12:29 PM UTC **Owner:** nobody This is one more test failure, introduced by a different commit than these reported in #484: ``` ====================================================================== FAIL: test_publish (test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase.test_publish) (id="totest['image_messages'][0]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/docutils/test/test_writers/test_html5_polyglot_parts.py", line 54, in test_publish self.assertEqual(case_expected, self.format_output(parts)) AssertionError: {'fra[318 chars]y: \'dummy.png\'</p>\n</aside>\n<aside class="[620 chars]>\n'} != {'fra[318 chars]y: \'/tmp/docutils/test/dummy.png\'</p>\n</asi[639 chars]>\n'} {'fragment': '<img alt="dummy.png" src="dummy.png" />\n' '<aside class="system-message">\n' '<p class="system-message-title">System Message: WARNING/2 (<span ' 'class="docutils literal"><string></span>, line 1)</p>\n' '<p>Cannot scale image!\n' ' Could not get size from "dummy.png":\n' - " [Errno 2] No such file or directory: 'dummy.png'</p>\n" ? ^ ----------------- + ' [Errno 2] No such file or directory: ' ? ^ + "'/tmp/docutils/test/dummy.png'</p>\n" '</aside>\n' '<aside class="system-message">\n' '<p class="system-message-title">System Message: ERROR/3 (<span ' 'class="docutils literal"><string></span>, line 1)</p>\n' '<p>Cannot embed image "dummy.png":\n' " [Errno 2] No such file or directory: 'dummy.png'</p>\n" '</aside>\n' '<video src="dummy.mp4" title="dummy.mp4">\n' '<a href="dummy.mp4">dummy.mp4</a>\n' '</video>\n' '<aside class="system-message">\n' '<p class="system-message-title">System Message: WARNING/2 (<span ' 'class="docutils literal"><string></span>, line 5)</p>\n' '<p>Cannot scale image!\n' ' Could not get size from "dummy.mp4":\n' ' PIL cannot read video images.</p>\n' '</aside>\n'} ``` Bisected it down to: ``` commit 2d4e66bb87aff0b62c67f3edc9792298dbadff07 Author: milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> Date: Thu Dec 14 22:38:58 2023 +0000 Refactor "_html_base" writer. Auxiliary method `HTMLTranslator.image_size()` to bring `HTMLTranslator.visit_image()` to a reasonable size. Improve/test error reporting when an image file cannot be read. Sort methods in `HTMLTranslator`. Small cleanups and optimizations. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@9501 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 docutils/writers/_html_base.py | 230 ++++++++++++------------- test/test_writers/test_html5_polyglot_misc.py | 4 +- test/test_writers/test_html5_polyglot_parts.py | 72 +++++++- 3 files changed, 181 insertions(+), 125 deletions(-) ``` I can reproduce with Python 3.10.14, 3.11.9, 3.12.3; Pillow 10.3.0, Pygments 2.17.2. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Günter M. <mi...@us...> - 2024-04-15 12:33:26
|
- **status**: open --> pending-remind --- **[patches:#208] On parse error, print text block when src=None** **Status:** pending-remind **Group:** None **Created:** Wed Jan 17, 2024 07:29 PM UTC by Colin Marquardt **Last Updated:** Mon Feb 05, 2024 11:25 AM UTC **Owner:** nobody I am using https://github.com/tox-dev/sphinx-argparse-cli to document my Python app's command line options. When I have a formatting error in the help text of such a command line option, I am getting an error like the following: None:5: ERROR: Unexpected indentation With the patch below, I have a much better chance to find the offending piece of code by printing some context, like so: None:5: ERROR: Unexpected indentation near text: Foo Bar ~~~ --- docutils/parsers/rst/states_orig.py 2024-01-04 14:46:37.402565000 +0100 +++ docutils/parsers/rst/states.py 2024-01-17 13:48:00.991420000 +0100 @@ -2793,8 +2793,16 @@ block = self.state_machine.get_text_block(flush_left=True) except statemachine.UnexpectedIndentationError as err: block, src, srcline = err.args - msg = self.reporter.error('Unexpected indentation.', - source=src, line=srcline) + if src is None: + msg = self.reporter.error( + 'Unexpected indentation near text:\n' + + ' '.join(list(context)) + + '\n' + + ' '.join(list(block)), + source=src, line=srcline) + else: + msg = self.reporter.error('Unexpected indentation', + source=src, line=srcline) lines = context + list(block) paragraph, literalnext = self.paragraph(lines, startline) self.parent += paragraph ~~~ --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/patches/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Günter M. <mi...@us...> - 2024-04-15 12:29:44
|
I changed the test a bit to cover the case of Docutils without PIL. Could you test once more with [r9643]? --- **[bugs:#485] 0.21.1: `FAIL: test_publish (test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase.test_publish) (id="totest['image_messages'][0]")`** **Status:** open **Created:** Thu Apr 11, 2024 02:48 PM UTC by Michał Górny **Last Updated:** Fri Apr 12, 2024 12:06 PM UTC **Owner:** nobody This is one more test failure, introduced by a different commit than these reported in #484: ``` ====================================================================== FAIL: test_publish (test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase.test_publish) (id="totest['image_messages'][0]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/docutils/test/test_writers/test_html5_polyglot_parts.py", line 54, in test_publish self.assertEqual(case_expected, self.format_output(parts)) AssertionError: {'fra[318 chars]y: \'dummy.png\'</p>\n</aside>\n<aside class="[620 chars]>\n'} != {'fra[318 chars]y: \'/tmp/docutils/test/dummy.png\'</p>\n</asi[639 chars]>\n'} {'fragment': '<img alt="dummy.png" src="dummy.png" />\n' '<aside class="system-message">\n' '<p class="system-message-title">System Message: WARNING/2 (<span ' 'class="docutils literal"><string></span>, line 1)</p>\n' '<p>Cannot scale image!\n' ' Could not get size from "dummy.png":\n' - " [Errno 2] No such file or directory: 'dummy.png'</p>\n" ? ^ ----------------- + ' [Errno 2] No such file or directory: ' ? ^ + "'/tmp/docutils/test/dummy.png'</p>\n" '</aside>\n' '<aside class="system-message">\n' '<p class="system-message-title">System Message: ERROR/3 (<span ' 'class="docutils literal"><string></span>, line 1)</p>\n' '<p>Cannot embed image "dummy.png":\n' " [Errno 2] No such file or directory: 'dummy.png'</p>\n" '</aside>\n' '<video src="dummy.mp4" title="dummy.mp4">\n' '<a href="dummy.mp4">dummy.mp4</a>\n' '</video>\n' '<aside class="system-message">\n' '<p class="system-message-title">System Message: WARNING/2 (<span ' 'class="docutils literal"><string></span>, line 5)</p>\n' '<p>Cannot scale image!\n' ' Could not get size from "dummy.mp4":\n' ' PIL cannot read video images.</p>\n' '</aside>\n'} ``` Bisected it down to: ``` commit 2d4e66bb87aff0b62c67f3edc9792298dbadff07 Author: milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> Date: Thu Dec 14 22:38:58 2023 +0000 Refactor "_html_base" writer. Auxiliary method `HTMLTranslator.image_size()` to bring `HTMLTranslator.visit_image()` to a reasonable size. Improve/test error reporting when an image file cannot be read. Sort methods in `HTMLTranslator`. Small cleanups and optimizations. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@9501 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 docutils/writers/_html_base.py | 230 ++++++++++++------------- test/test_writers/test_html5_polyglot_misc.py | 4 +- test/test_writers/test_html5_polyglot_parts.py | 72 +++++++- 3 files changed, 181 insertions(+), 125 deletions(-) ``` I can reproduce with Python 3.10.14, 3.11.9, 3.12.3; Pillow 10.3.0, Pygments 2.17.2. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Michał G. <mgo...@us...> - 2024-04-12 12:06:11
|
All tests pass on tip. Thanks a lot! --- **[bugs:#485] 0.21.1: `FAIL: test_publish (test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase.test_publish) (id="totest['image_messages'][0]")`** **Status:** open **Created:** Thu Apr 11, 2024 02:48 PM UTC by Michał Górny **Last Updated:** Fri Apr 12, 2024 09:54 AM UTC **Owner:** nobody This is one more test failure, introduced by a different commit than these reported in #484: ``` ====================================================================== FAIL: test_publish (test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase.test_publish) (id="totest['image_messages'][0]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/docutils/test/test_writers/test_html5_polyglot_parts.py", line 54, in test_publish self.assertEqual(case_expected, self.format_output(parts)) AssertionError: {'fra[318 chars]y: \'dummy.png\'</p>\n</aside>\n<aside class="[620 chars]>\n'} != {'fra[318 chars]y: \'/tmp/docutils/test/dummy.png\'</p>\n</asi[639 chars]>\n'} {'fragment': '<img alt="dummy.png" src="dummy.png" />\n' '<aside class="system-message">\n' '<p class="system-message-title">System Message: WARNING/2 (<span ' 'class="docutils literal"><string></span>, line 1)</p>\n' '<p>Cannot scale image!\n' ' Could not get size from "dummy.png":\n' - " [Errno 2] No such file or directory: 'dummy.png'</p>\n" ? ^ ----------------- + ' [Errno 2] No such file or directory: ' ? ^ + "'/tmp/docutils/test/dummy.png'</p>\n" '</aside>\n' '<aside class="system-message">\n' '<p class="system-message-title">System Message: ERROR/3 (<span ' 'class="docutils literal"><string></span>, line 1)</p>\n' '<p>Cannot embed image "dummy.png":\n' " [Errno 2] No such file or directory: 'dummy.png'</p>\n" '</aside>\n' '<video src="dummy.mp4" title="dummy.mp4">\n' '<a href="dummy.mp4">dummy.mp4</a>\n' '</video>\n' '<aside class="system-message">\n' '<p class="system-message-title">System Message: WARNING/2 (<span ' 'class="docutils literal"><string></span>, line 5)</p>\n' '<p>Cannot scale image!\n' ' Could not get size from "dummy.mp4":\n' ' PIL cannot read video images.</p>\n' '</aside>\n'} ``` Bisected it down to: ``` commit 2d4e66bb87aff0b62c67f3edc9792298dbadff07 Author: milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> Date: Thu Dec 14 22:38:58 2023 +0000 Refactor "_html_base" writer. Auxiliary method `HTMLTranslator.image_size()` to bring `HTMLTranslator.visit_image()` to a reasonable size. Improve/test error reporting when an image file cannot be read. Sort methods in `HTMLTranslator`. Small cleanups and optimizations. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@9501 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 docutils/writers/_html_base.py | 230 ++++++++++++------------- test/test_writers/test_html5_polyglot_misc.py | 4 +- test/test_writers/test_html5_polyglot_parts.py | 72 +++++++- 3 files changed, 181 insertions(+), 125 deletions(-) ``` I can reproduce with Python 3.10.14, 3.11.9, 3.12.3; Pillow 10.3.0, Pygments 2.17.2. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Günter M. <mi...@us...> - 2024-04-12 09:55:03
|
Thank you for the analysis. Could you try whether it is fixed in [r9641]? (I am away and offline for the weekend.) --- **[bugs:#485] 0.21.1: `FAIL: test_publish (test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase.test_publish) (id="totest['image_messages'][0]")`** **Status:** open **Created:** Thu Apr 11, 2024 02:48 PM UTC by Michał Górny **Last Updated:** Fri Apr 12, 2024 02:52 AM UTC **Owner:** nobody This is one more test failure, introduced by a different commit than these reported in #484: ``` ====================================================================== FAIL: test_publish (test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase.test_publish) (id="totest['image_messages'][0]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/docutils/test/test_writers/test_html5_polyglot_parts.py", line 54, in test_publish self.assertEqual(case_expected, self.format_output(parts)) AssertionError: {'fra[318 chars]y: \'dummy.png\'</p>\n</aside>\n<aside class="[620 chars]>\n'} != {'fra[318 chars]y: \'/tmp/docutils/test/dummy.png\'</p>\n</asi[639 chars]>\n'} {'fragment': '<img alt="dummy.png" src="dummy.png" />\n' '<aside class="system-message">\n' '<p class="system-message-title">System Message: WARNING/2 (<span ' 'class="docutils literal"><string></span>, line 1)</p>\n' '<p>Cannot scale image!\n' ' Could not get size from "dummy.png":\n' - " [Errno 2] No such file or directory: 'dummy.png'</p>\n" ? ^ ----------------- + ' [Errno 2] No such file or directory: ' ? ^ + "'/tmp/docutils/test/dummy.png'</p>\n" '</aside>\n' '<aside class="system-message">\n' '<p class="system-message-title">System Message: ERROR/3 (<span ' 'class="docutils literal"><string></span>, line 1)</p>\n' '<p>Cannot embed image "dummy.png":\n' " [Errno 2] No such file or directory: 'dummy.png'</p>\n" '</aside>\n' '<video src="dummy.mp4" title="dummy.mp4">\n' '<a href="dummy.mp4">dummy.mp4</a>\n' '</video>\n' '<aside class="system-message">\n' '<p class="system-message-title">System Message: WARNING/2 (<span ' 'class="docutils literal"><string></span>, line 5)</p>\n' '<p>Cannot scale image!\n' ' Could not get size from "dummy.mp4":\n' ' PIL cannot read video images.</p>\n' '</aside>\n'} ``` Bisected it down to: ``` commit 2d4e66bb87aff0b62c67f3edc9792298dbadff07 Author: milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> Date: Thu Dec 14 22:38:58 2023 +0000 Refactor "_html_base" writer. Auxiliary method `HTMLTranslator.image_size()` to bring `HTMLTranslator.visit_image()` to a reasonable size. Improve/test error reporting when an image file cannot be read. Sort methods in `HTMLTranslator`. Small cleanups and optimizations. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@9501 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 docutils/writers/_html_base.py | 230 ++++++++++++------------- test/test_writers/test_html5_polyglot_misc.py | 4 +- test/test_writers/test_html5_polyglot_parts.py | 72 +++++++- 3 files changed, 181 insertions(+), 125 deletions(-) ``` I can reproduce with Python 3.10.14, 3.11.9, 3.12.3; Pillow 10.3.0, Pygments 2.17.2. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Michał G. <mgo...@us...> - 2024-04-12 02:52:30
|
I've been running them from inside the `test` subdirectory. From top directory and from `/tmp`, the result's the same. I can't run it from `/` because they try to write into cwd. That said, I've found the root cause: it's a change in Pillow 10.3.0. With 10.2.0, the tests pass. --- **[bugs:#485] 0.21.1: `FAIL: test_publish (test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase.test_publish) (id="totest['image_messages'][0]")`** **Status:** open **Created:** Thu Apr 11, 2024 02:48 PM UTC by Michał Górny **Last Updated:** Thu Apr 11, 2024 08:33 PM UTC **Owner:** nobody This is one more test failure, introduced by a different commit than these reported in #484: ``` ====================================================================== FAIL: test_publish (test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase.test_publish) (id="totest['image_messages'][0]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/docutils/test/test_writers/test_html5_polyglot_parts.py", line 54, in test_publish self.assertEqual(case_expected, self.format_output(parts)) AssertionError: {'fra[318 chars]y: \'dummy.png\'</p>\n</aside>\n<aside class="[620 chars]>\n'} != {'fra[318 chars]y: \'/tmp/docutils/test/dummy.png\'</p>\n</asi[639 chars]>\n'} {'fragment': '<img alt="dummy.png" src="dummy.png" />\n' '<aside class="system-message">\n' '<p class="system-message-title">System Message: WARNING/2 (<span ' 'class="docutils literal"><string></span>, line 1)</p>\n' '<p>Cannot scale image!\n' ' Could not get size from "dummy.png":\n' - " [Errno 2] No such file or directory: 'dummy.png'</p>\n" ? ^ ----------------- + ' [Errno 2] No such file or directory: ' ? ^ + "'/tmp/docutils/test/dummy.png'</p>\n" '</aside>\n' '<aside class="system-message">\n' '<p class="system-message-title">System Message: ERROR/3 (<span ' 'class="docutils literal"><string></span>, line 1)</p>\n' '<p>Cannot embed image "dummy.png":\n' " [Errno 2] No such file or directory: 'dummy.png'</p>\n" '</aside>\n' '<video src="dummy.mp4" title="dummy.mp4">\n' '<a href="dummy.mp4">dummy.mp4</a>\n' '</video>\n' '<aside class="system-message">\n' '<p class="system-message-title">System Message: WARNING/2 (<span ' 'class="docutils literal"><string></span>, line 5)</p>\n' '<p>Cannot scale image!\n' ' Could not get size from "dummy.mp4":\n' ' PIL cannot read video images.</p>\n' '</aside>\n'} ``` Bisected it down to: ``` commit 2d4e66bb87aff0b62c67f3edc9792298dbadff07 Author: milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> Date: Thu Dec 14 22:38:58 2023 +0000 Refactor "_html_base" writer. Auxiliary method `HTMLTranslator.image_size()` to bring `HTMLTranslator.visit_image()` to a reasonable size. Improve/test error reporting when an image file cannot be read. Sort methods in `HTMLTranslator`. Small cleanups and optimizations. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@9501 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 docutils/writers/_html_base.py | 230 ++++++++++++------------- test/test_writers/test_html5_polyglot_misc.py | 4 +- test/test_writers/test_html5_polyglot_parts.py | 72 +++++++- 3 files changed, 181 insertions(+), 125 deletions(-) ``` I can reproduce with Python 3.10.14, 3.11.9, 3.12.3; Pillow 10.3.0, Pygments 2.17.2. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Günter M. <mi...@us...> - 2024-04-12 01:01:22
|
- **status**: open --> open-fixed - **Comment**: Fixed in [r9637]. Thanks for the report. --- **[bugs:#484] 0.21.1: `test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase` test failures** **Status:** open-fixed **Created:** Thu Apr 11, 2024 02:44 PM UTC by Michał Górny **Last Updated:** Thu Apr 11, 2024 05:18 PM UTC **Owner:** nobody 0.21.1 introduced three test regressions. The two of them are specific to `test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase`. The errors are: ``` $ python3.10 alltests.py Testing Docutils 0.21.1 with Python 3.10.14 on 2024-04-11 at 16:42:02 OS: Linux 6.8.4-gentoo-dist #1 SMP PREEMPT_DYNAMIC Fri Apr 5 12:29:35 -00 2024 (linux, Linux-6.8.4-gentoo-dist-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-glibc2.39) Working directory: /tmp/docutils/test Docutils package: /tmp/docutils/docutils .....................................................................s.................................................................................................................................................................................................................s.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................s..........................................................................................................EEE........................................................................................... ====================================================================== FAIL: test_publish (test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase) (id="totest['syntax_highlight'][0]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/docutils/test/test_writers/test_html5_polyglot_parts.py", line 56, in test_publish self.assertEqual(case_expected, self.format_output(parts)) AssertionError: {'fra[51 chars]e>cat <span class="s"><<EOF\nHello World[24 chars]>\n'} != {'fra[51 chars]e>cat<span class="w"> </span><span class="s">&[47 chars]>\n'} - {'fragment': '<pre class="code shell literal-block"><code>cat <span ' ? - + {'fragment': '<pre class="code shell literal-block"><code>cat<span class="w"> ' ? +++++++++++ - 'class="s"><<EOF\n' + '</span><span class="s"><<EOF\n' ? +++++++++++++ 'Hello World\n' 'EOF</span></code></pre>\n'} ====================================================================== FAIL: test_publish (test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase) (id="totest['syntax_highlight'][1]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/docutils/test/test_writers/test_html5_polyglot_parts.py", line 56, in test_publish self.assertEqual(case_expected, self.format_output(parts)) AssertionError: {'fra[30 chars]">cat <span class="s"><<EOF Hello World [20 chars]>\n'} != {'fra[30 chars]">cat<span class="w"> </span><span class="s">&[43 chars]>\n'} - {'fragment': '<p><code class="shell">cat <span class="s"><<EOF Hello ' ? - ^ ^^^^^^^^^^^^^^^^^ + {'fragment': '<p><code class="shell">cat<span class="w"> </span><span ' ? ^ ^^^^^^^^^^^^^ - 'World EOF</span></code></p>\n'} + 'class="s"><<EOF Hello World EOF</span></code></p>\n'} ? ++++++++++++++++++++++++++++ ``` Bisected it down to: ``` commit c6abd4cdee5323630fd7ac12b425bfc3f6d23075 Author: milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> Date: Fri Nov 10 13:12:16 2023 +0000 Simplify "HTML5 parts test", add test case for bug #476. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@9470 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 test/test_writers/test_html5_polyglot_parts.py | 286 ++++--------------------- 1 file changed, 47 insertions(+), 239 deletions(-) ``` I can reproduce with Python 3.10.14, 3.11.9, 3.12.3; Pillow 10.3.0, Pygments 2.17.2. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Günter M. <mi...@us...> - 2024-04-11 20:33:37
|
It may be a false positive (or a sign of a problem) due to relative path handling (`utils.relative_path()`, `writers._html_base.Translator.uri2imagepath()`... What directory do you start the test from? What is the result with cd /tmp/docutils/ test/alltests.py vs. cd / /tmp/docutils/test/alltest.py ? --- **[bugs:#485] 0.21.1: `FAIL: test_publish (test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase.test_publish) (id="totest['image_messages'][0]")`** **Status:** open **Created:** Thu Apr 11, 2024 02:48 PM UTC by Michał Górny **Last Updated:** Thu Apr 11, 2024 05:16 PM UTC **Owner:** nobody This is one more test failure, introduced by a different commit than these reported in #484: ``` ====================================================================== FAIL: test_publish (test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase.test_publish) (id="totest['image_messages'][0]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/docutils/test/test_writers/test_html5_polyglot_parts.py", line 54, in test_publish self.assertEqual(case_expected, self.format_output(parts)) AssertionError: {'fra[318 chars]y: \'dummy.png\'</p>\n</aside>\n<aside class="[620 chars]>\n'} != {'fra[318 chars]y: \'/tmp/docutils/test/dummy.png\'</p>\n</asi[639 chars]>\n'} {'fragment': '<img alt="dummy.png" src="dummy.png" />\n' '<aside class="system-message">\n' '<p class="system-message-title">System Message: WARNING/2 (<span ' 'class="docutils literal"><string></span>, line 1)</p>\n' '<p>Cannot scale image!\n' ' Could not get size from "dummy.png":\n' - " [Errno 2] No such file or directory: 'dummy.png'</p>\n" ? ^ ----------------- + ' [Errno 2] No such file or directory: ' ? ^ + "'/tmp/docutils/test/dummy.png'</p>\n" '</aside>\n' '<aside class="system-message">\n' '<p class="system-message-title">System Message: ERROR/3 (<span ' 'class="docutils literal"><string></span>, line 1)</p>\n' '<p>Cannot embed image "dummy.png":\n' " [Errno 2] No such file or directory: 'dummy.png'</p>\n" '</aside>\n' '<video src="dummy.mp4" title="dummy.mp4">\n' '<a href="dummy.mp4">dummy.mp4</a>\n' '</video>\n' '<aside class="system-message">\n' '<p class="system-message-title">System Message: WARNING/2 (<span ' 'class="docutils literal"><string></span>, line 5)</p>\n' '<p>Cannot scale image!\n' ' Could not get size from "dummy.mp4":\n' ' PIL cannot read video images.</p>\n' '</aside>\n'} ``` Bisected it down to: ``` commit 2d4e66bb87aff0b62c67f3edc9792298dbadff07 Author: milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> Date: Thu Dec 14 22:38:58 2023 +0000 Refactor "_html_base" writer. Auxiliary method `HTMLTranslator.image_size()` to bring `HTMLTranslator.visit_image()` to a reasonable size. Improve/test error reporting when an image file cannot be read. Sort methods in `HTMLTranslator`. Small cleanups and optimizations. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@9501 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 docutils/writers/_html_base.py | 230 ++++++++++++------------- test/test_writers/test_html5_polyglot_misc.py | 4 +- test/test_writers/test_html5_polyglot_parts.py | 72 +++++++- 3 files changed, 181 insertions(+), 125 deletions(-) ``` I can reproduce with Python 3.10.14, 3.11.9, 3.12.3; Pillow 10.3.0, Pygments 2.17.2. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Michał G. <mgo...@us...> - 2024-04-11 17:18:14
|
The patch fixes the failure. Thanks! --- **[bugs:#484] 0.21.1: `test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase` test failures** **Status:** open **Created:** Thu Apr 11, 2024 02:44 PM UTC by Michał Górny **Last Updated:** Thu Apr 11, 2024 04:14 PM UTC **Owner:** nobody 0.21.1 introduced three test regressions. The two of them are specific to `test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase`. The errors are: ``` $ python3.10 alltests.py Testing Docutils 0.21.1 with Python 3.10.14 on 2024-04-11 at 16:42:02 OS: Linux 6.8.4-gentoo-dist #1 SMP PREEMPT_DYNAMIC Fri Apr 5 12:29:35 -00 2024 (linux, Linux-6.8.4-gentoo-dist-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-glibc2.39) Working directory: /tmp/docutils/test Docutils package: /tmp/docutils/docutils .....................................................................s.................................................................................................................................................................................................................s.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................s..........................................................................................................EEE........................................................................................... ====================================================================== FAIL: test_publish (test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase) (id="totest['syntax_highlight'][0]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/docutils/test/test_writers/test_html5_polyglot_parts.py", line 56, in test_publish self.assertEqual(case_expected, self.format_output(parts)) AssertionError: {'fra[51 chars]e>cat <span class="s"><<EOF\nHello World[24 chars]>\n'} != {'fra[51 chars]e>cat<span class="w"> </span><span class="s">&[47 chars]>\n'} - {'fragment': '<pre class="code shell literal-block"><code>cat <span ' ? - + {'fragment': '<pre class="code shell literal-block"><code>cat<span class="w"> ' ? +++++++++++ - 'class="s"><<EOF\n' + '</span><span class="s"><<EOF\n' ? +++++++++++++ 'Hello World\n' 'EOF</span></code></pre>\n'} ====================================================================== FAIL: test_publish (test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase) (id="totest['syntax_highlight'][1]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/docutils/test/test_writers/test_html5_polyglot_parts.py", line 56, in test_publish self.assertEqual(case_expected, self.format_output(parts)) AssertionError: {'fra[30 chars]">cat <span class="s"><<EOF Hello World [20 chars]>\n'} != {'fra[30 chars]">cat<span class="w"> </span><span class="s">&[43 chars]>\n'} - {'fragment': '<p><code class="shell">cat <span class="s"><<EOF Hello ' ? - ^ ^^^^^^^^^^^^^^^^^ + {'fragment': '<p><code class="shell">cat<span class="w"> </span><span ' ? ^ ^^^^^^^^^^^^^ - 'World EOF</span></code></p>\n'} + 'class="s"><<EOF Hello World EOF</span></code></p>\n'} ? ++++++++++++++++++++++++++++ ``` Bisected it down to: ``` commit c6abd4cdee5323630fd7ac12b425bfc3f6d23075 Author: milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> Date: Fri Nov 10 13:12:16 2023 +0000 Simplify "HTML5 parts test", add test case for bug #476. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@9470 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 test/test_writers/test_html5_polyglot_parts.py | 286 ++++--------------------- 1 file changed, 47 insertions(+), 239 deletions(-) ``` I can reproduce with Python 3.10.14, 3.11.9, 3.12.3; Pillow 10.3.0, Pygments 2.17.2. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Michał G. <mgo...@us...> - 2024-04-11 17:16:42
|
Same results with 3.9. --- **[bugs:#485] 0.21.1: `FAIL: test_publish (test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase.test_publish) (id="totest['image_messages'][0]")`** **Status:** open **Created:** Thu Apr 11, 2024 02:48 PM UTC by Michał Górny **Last Updated:** Thu Apr 11, 2024 04:32 PM UTC **Owner:** nobody This is one more test failure, introduced by a different commit than these reported in #484: ``` ====================================================================== FAIL: test_publish (test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase.test_publish) (id="totest['image_messages'][0]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/docutils/test/test_writers/test_html5_polyglot_parts.py", line 54, in test_publish self.assertEqual(case_expected, self.format_output(parts)) AssertionError: {'fra[318 chars]y: \'dummy.png\'</p>\n</aside>\n<aside class="[620 chars]>\n'} != {'fra[318 chars]y: \'/tmp/docutils/test/dummy.png\'</p>\n</asi[639 chars]>\n'} {'fragment': '<img alt="dummy.png" src="dummy.png" />\n' '<aside class="system-message">\n' '<p class="system-message-title">System Message: WARNING/2 (<span ' 'class="docutils literal"><string></span>, line 1)</p>\n' '<p>Cannot scale image!\n' ' Could not get size from "dummy.png":\n' - " [Errno 2] No such file or directory: 'dummy.png'</p>\n" ? ^ ----------------- + ' [Errno 2] No such file or directory: ' ? ^ + "'/tmp/docutils/test/dummy.png'</p>\n" '</aside>\n' '<aside class="system-message">\n' '<p class="system-message-title">System Message: ERROR/3 (<span ' 'class="docutils literal"><string></span>, line 1)</p>\n' '<p>Cannot embed image "dummy.png":\n' " [Errno 2] No such file or directory: 'dummy.png'</p>\n" '</aside>\n' '<video src="dummy.mp4" title="dummy.mp4">\n' '<a href="dummy.mp4">dummy.mp4</a>\n' '</video>\n' '<aside class="system-message">\n' '<p class="system-message-title">System Message: WARNING/2 (<span ' 'class="docutils literal"><string></span>, line 5)</p>\n' '<p>Cannot scale image!\n' ' Could not get size from "dummy.mp4":\n' ' PIL cannot read video images.</p>\n' '</aside>\n'} ``` Bisected it down to: ``` commit 2d4e66bb87aff0b62c67f3edc9792298dbadff07 Author: milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> Date: Thu Dec 14 22:38:58 2023 +0000 Refactor "_html_base" writer. Auxiliary method `HTMLTranslator.image_size()` to bring `HTMLTranslator.visit_image()` to a reasonable size. Improve/test error reporting when an image file cannot be read. Sort methods in `HTMLTranslator`. Small cleanups and optimizations. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@9501 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 docutils/writers/_html_base.py | 230 ++++++++++++------------- test/test_writers/test_html5_polyglot_misc.py | 4 +- test/test_writers/test_html5_polyglot_parts.py | 72 +++++++- 3 files changed, 181 insertions(+), 125 deletions(-) ``` I can reproduce with Python 3.10.14, 3.11.9, 3.12.3; Pillow 10.3.0, Pygments 2.17.2. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Günter M. <mi...@us...> - 2024-04-11 16:32:33
|
Thank you for reporting. The failure is in a test in improved reporting of errors/warnings by the html5 writer. It seems like a "false positive" (i.e. just some irrelevant details differ). Could be a change in the missing-file error message in Python 3.10. Can you test with Python 3.9? --- **[bugs:#485] 0.21.1: `FAIL: test_publish (test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase.test_publish) (id="totest['image_messages'][0]")`** **Status:** open **Created:** Thu Apr 11, 2024 02:48 PM UTC by Michał Górny **Last Updated:** Thu Apr 11, 2024 02:48 PM UTC **Owner:** nobody This is one more test failure, introduced by a different commit than these reported in #484: ``` ====================================================================== FAIL: test_publish (test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase.test_publish) (id="totest['image_messages'][0]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/docutils/test/test_writers/test_html5_polyglot_parts.py", line 54, in test_publish self.assertEqual(case_expected, self.format_output(parts)) AssertionError: {'fra[318 chars]y: \'dummy.png\'</p>\n</aside>\n<aside class="[620 chars]>\n'} != {'fra[318 chars]y: \'/tmp/docutils/test/dummy.png\'</p>\n</asi[639 chars]>\n'} {'fragment': '<img alt="dummy.png" src="dummy.png" />\n' '<aside class="system-message">\n' '<p class="system-message-title">System Message: WARNING/2 (<span ' 'class="docutils literal"><string></span>, line 1)</p>\n' '<p>Cannot scale image!\n' ' Could not get size from "dummy.png":\n' - " [Errno 2] No such file or directory: 'dummy.png'</p>\n" ? ^ ----------------- + ' [Errno 2] No such file or directory: ' ? ^ + "'/tmp/docutils/test/dummy.png'</p>\n" '</aside>\n' '<aside class="system-message">\n' '<p class="system-message-title">System Message: ERROR/3 (<span ' 'class="docutils literal"><string></span>, line 1)</p>\n' '<p>Cannot embed image "dummy.png":\n' " [Errno 2] No such file or directory: 'dummy.png'</p>\n" '</aside>\n' '<video src="dummy.mp4" title="dummy.mp4">\n' '<a href="dummy.mp4">dummy.mp4</a>\n' '</video>\n' '<aside class="system-message">\n' '<p class="system-message-title">System Message: WARNING/2 (<span ' 'class="docutils literal"><string></span>, line 5)</p>\n' '<p>Cannot scale image!\n' ' Could not get size from "dummy.mp4":\n' ' PIL cannot read video images.</p>\n' '</aside>\n'} ``` Bisected it down to: ``` commit 2d4e66bb87aff0b62c67f3edc9792298dbadff07 Author: milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> Date: Thu Dec 14 22:38:58 2023 +0000 Refactor "_html_base" writer. Auxiliary method `HTMLTranslator.image_size()` to bring `HTMLTranslator.visit_image()` to a reasonable size. Improve/test error reporting when an image file cannot be read. Sort methods in `HTMLTranslator`. Small cleanups and optimizations. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@9501 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 docutils/writers/_html_base.py | 230 ++++++++++++------------- test/test_writers/test_html5_polyglot_misc.py | 4 +- test/test_writers/test_html5_polyglot_parts.py | 72 +++++++- 3 files changed, 181 insertions(+), 125 deletions(-) ``` I can reproduce with Python 3.10.14, 3.11.9, 3.12.3; Pillow 10.3.0, Pygments 2.17.2. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Günter M. <mi...@us...> - 2024-04-11 16:14:20
|
Thank you for the report. The reason seems to be that pygments output changed in version 2.14 Could you try the following patch? ~~~ diff diff --git a/docutils/test/test_writers/test_html5_polyglot_parts.py b/docutils/test/test_writers/test_html5_polyglot_parts.py index fb2792ee7..5b17492ad 100644 --- a/docutils/test/test_writers/test_html5_polyglot_parts.py +++ b/docutils/test/test_writers/test_html5_polyglot_parts.py @@ -14,6 +14,7 @@ from pathlib import Path import os +import re import sys import unittest @@ -25,6 +26,12 @@ import docutils import docutils.core from docutils.utils.code_analyzer import with_pygments +if with_pygments: + import pygments + _pv = re.match(r'^([0-9]+)\.([0-9]*)', pygments.__version__) + if (int(_pv[1]), int(_pv[2])) >= (2, 14): + # pygments output changed in version 2.14 + with_pygments = False ROOT_PREFIX = (Path(__file__).parent.parent/'functional'/'input').as_posix() DATA_ROOT = os.path.abspath(os.path.join(__file__, '..', '..', 'data')) ~~~ --- **[bugs:#484] 0.21.1: `test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase` test failures** **Status:** open **Created:** Thu Apr 11, 2024 02:44 PM UTC by Michał Górny **Last Updated:** Thu Apr 11, 2024 02:44 PM UTC **Owner:** nobody 0.21.1 introduced three test regressions. The two of them are specific to `test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase`. The errors are: ``` $ python3.10 alltests.py Testing Docutils 0.21.1 with Python 3.10.14 on 2024-04-11 at 16:42:02 OS: Linux 6.8.4-gentoo-dist #1 SMP PREEMPT_DYNAMIC Fri Apr 5 12:29:35 -00 2024 (linux, Linux-6.8.4-gentoo-dist-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-glibc2.39) Working directory: /tmp/docutils/test Docutils package: /tmp/docutils/docutils .....................................................................s.................................................................................................................................................................................................................s.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................s..........................................................................................................EEE........................................................................................... ====================================================================== FAIL: test_publish (test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase) (id="totest['syntax_highlight'][0]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/docutils/test/test_writers/test_html5_polyglot_parts.py", line 56, in test_publish self.assertEqual(case_expected, self.format_output(parts)) AssertionError: {'fra[51 chars]e>cat <span class="s"><<EOF\nHello World[24 chars]>\n'} != {'fra[51 chars]e>cat<span class="w"> </span><span class="s">&[47 chars]>\n'} - {'fragment': '<pre class="code shell literal-block"><code>cat <span ' ? - + {'fragment': '<pre class="code shell literal-block"><code>cat<span class="w"> ' ? +++++++++++ - 'class="s"><<EOF\n' + '</span><span class="s"><<EOF\n' ? +++++++++++++ 'Hello World\n' 'EOF</span></code></pre>\n'} ====================================================================== FAIL: test_publish (test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase) (id="totest['syntax_highlight'][1]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/docutils/test/test_writers/test_html5_polyglot_parts.py", line 56, in test_publish self.assertEqual(case_expected, self.format_output(parts)) AssertionError: {'fra[30 chars]">cat <span class="s"><<EOF Hello World [20 chars]>\n'} != {'fra[30 chars]">cat<span class="w"> </span><span class="s">&[43 chars]>\n'} - {'fragment': '<p><code class="shell">cat <span class="s"><<EOF Hello ' ? - ^ ^^^^^^^^^^^^^^^^^ + {'fragment': '<p><code class="shell">cat<span class="w"> </span><span ' ? ^ ^^^^^^^^^^^^^ - 'World EOF</span></code></p>\n'} + 'class="s"><<EOF Hello World EOF</span></code></p>\n'} ? ++++++++++++++++++++++++++++ ``` Bisected it down to: ``` commit c6abd4cdee5323630fd7ac12b425bfc3f6d23075 Author: milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> Date: Fri Nov 10 13:12:16 2023 +0000 Simplify "HTML5 parts test", add test case for bug #476. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@9470 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 test/test_writers/test_html5_polyglot_parts.py | 286 ++++--------------------- 1 file changed, 47 insertions(+), 239 deletions(-) ``` I can reproduce with Python 3.10.14, 3.11.9, 3.12.3; Pillow 10.3.0, Pygments 2.17.2. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Michał G. <mgo...@us...> - 2024-04-11 14:48:22
|
--- **[bugs:#485] 0.21.1: `FAIL: test_publish (test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase.test_publish) (id="totest['image_messages'][0]")`** **Status:** open **Created:** Thu Apr 11, 2024 02:48 PM UTC by Michał Górny **Last Updated:** Thu Apr 11, 2024 02:48 PM UTC **Owner:** nobody This is one more test failure, introduced by a different commit than these reported in #484: ``` ====================================================================== FAIL: test_publish (test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase.test_publish) (id="totest['image_messages'][0]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/docutils/test/test_writers/test_html5_polyglot_parts.py", line 54, in test_publish self.assertEqual(case_expected, self.format_output(parts)) AssertionError: {'fra[318 chars]y: \'dummy.png\'</p>\n</aside>\n<aside class="[620 chars]>\n'} != {'fra[318 chars]y: \'/tmp/docutils/test/dummy.png\'</p>\n</asi[639 chars]>\n'} {'fragment': '<img alt="dummy.png" src="dummy.png" />\n' '<aside class="system-message">\n' '<p class="system-message-title">System Message: WARNING/2 (<span ' 'class="docutils literal"><string></span>, line 1)</p>\n' '<p>Cannot scale image!\n' ' Could not get size from "dummy.png":\n' - " [Errno 2] No such file or directory: 'dummy.png'</p>\n" ? ^ ----------------- + ' [Errno 2] No such file or directory: ' ? ^ + "'/tmp/docutils/test/dummy.png'</p>\n" '</aside>\n' '<aside class="system-message">\n' '<p class="system-message-title">System Message: ERROR/3 (<span ' 'class="docutils literal"><string></span>, line 1)</p>\n' '<p>Cannot embed image "dummy.png":\n' " [Errno 2] No such file or directory: 'dummy.png'</p>\n" '</aside>\n' '<video src="dummy.mp4" title="dummy.mp4">\n' '<a href="dummy.mp4">dummy.mp4</a>\n' '</video>\n' '<aside class="system-message">\n' '<p class="system-message-title">System Message: WARNING/2 (<span ' 'class="docutils literal"><string></span>, line 5)</p>\n' '<p>Cannot scale image!\n' ' Could not get size from "dummy.mp4":\n' ' PIL cannot read video images.</p>\n' '</aside>\n'} ``` Bisected it down to: ``` commit 2d4e66bb87aff0b62c67f3edc9792298dbadff07 Author: milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> Date: Thu Dec 14 22:38:58 2023 +0000 Refactor "_html_base" writer. Auxiliary method `HTMLTranslator.image_size()` to bring `HTMLTranslator.visit_image()` to a reasonable size. Improve/test error reporting when an image file cannot be read. Sort methods in `HTMLTranslator`. Small cleanups and optimizations. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@9501 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 docutils/writers/_html_base.py | 230 ++++++++++++------------- test/test_writers/test_html5_polyglot_misc.py | 4 +- test/test_writers/test_html5_polyglot_parts.py | 72 +++++++- 3 files changed, 181 insertions(+), 125 deletions(-) ``` I can reproduce with Python 3.10.14, 3.11.9, 3.12.3; Pillow 10.3.0, Pygments 2.17.2. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Michał G. <mgo...@us...> - 2024-04-11 14:44:56
|
--- **[bugs:#484] 0.21.1: `test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase` test failures** **Status:** open **Created:** Thu Apr 11, 2024 02:44 PM UTC by Michał Górny **Last Updated:** Thu Apr 11, 2024 02:44 PM UTC **Owner:** nobody 0.21.1 introduced three test regressions. The two of them are specific to `test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase`. The errors are: ``` $ python3.10 alltests.py Testing Docutils 0.21.1 with Python 3.10.14 on 2024-04-11 at 16:42:02 OS: Linux 6.8.4-gentoo-dist #1 SMP PREEMPT_DYNAMIC Fri Apr 5 12:29:35 -00 2024 (linux, Linux-6.8.4-gentoo-dist-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-glibc2.39) Working directory: /tmp/docutils/test Docutils package: /tmp/docutils/docutils .....................................................................s.................................................................................................................................................................................................................s.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................s..........................................................................................................EEE........................................................................................... ====================================================================== FAIL: test_publish (test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase) (id="totest['syntax_highlight'][0]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/docutils/test/test_writers/test_html5_polyglot_parts.py", line 56, in test_publish self.assertEqual(case_expected, self.format_output(parts)) AssertionError: {'fra[51 chars]e>cat <span class="s"><<EOF\nHello World[24 chars]>\n'} != {'fra[51 chars]e>cat<span class="w"> </span><span class="s">&[47 chars]>\n'} - {'fragment': '<pre class="code shell literal-block"><code>cat <span ' ? - + {'fragment': '<pre class="code shell literal-block"><code>cat<span class="w"> ' ? +++++++++++ - 'class="s"><<EOF\n' + '</span><span class="s"><<EOF\n' ? +++++++++++++ 'Hello World\n' 'EOF</span></code></pre>\n'} ====================================================================== FAIL: test_publish (test_writers.test_html5_polyglot_parts.Html5WriterPublishPartsTestCase) (id="totest['syntax_highlight'][1]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/docutils/test/test_writers/test_html5_polyglot_parts.py", line 56, in test_publish self.assertEqual(case_expected, self.format_output(parts)) AssertionError: {'fra[30 chars]">cat <span class="s"><<EOF Hello World [20 chars]>\n'} != {'fra[30 chars]">cat<span class="w"> </span><span class="s">&[43 chars]>\n'} - {'fragment': '<p><code class="shell">cat <span class="s"><<EOF Hello ' ? - ^ ^^^^^^^^^^^^^^^^^ + {'fragment': '<p><code class="shell">cat<span class="w"> </span><span ' ? ^ ^^^^^^^^^^^^^ - 'World EOF</span></code></p>\n'} + 'class="s"><<EOF Hello World EOF</span></code></p>\n'} ? ++++++++++++++++++++++++++++ ``` Bisected it down to: ``` commit c6abd4cdee5323630fd7ac12b425bfc3f6d23075 Author: milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> Date: Fri Nov 10 13:12:16 2023 +0000 Simplify "HTML5 parts test", add test case for bug #476. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@9470 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 test/test_writers/test_html5_polyglot_parts.py | 286 ++++--------------------- 1 file changed, 47 insertions(+), 239 deletions(-) ``` I can reproduce with Python 3.10.14, 3.11.9, 3.12.3; Pillow 10.3.0, Pygments 2.17.2. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Michał G. <mgo...@us...> - 2024-04-11 14:26:13
|
Not, in my opinion. In fact, I personally prefer regular point versions, as they are shorter to type ;-). --- **[bugs:#483] 0.21 release has broken sdist** **Status:** open-fixed **Created:** Wed Apr 10, 2024 05:58 AM UTC by Michał Górny **Last Updated:** Thu Apr 11, 2024 02:17 PM UTC **Owner:** nobody The sdist for 0.21 release is versioned "0.21.post1" but the directory inside it is "0.21". Therefore, it is not installable: ``` $ pip install --no-binary docutils docutils Collecting docutils Downloading docutils-0.21.post1.tar.gz (2.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.2/2.2 MB 6.1 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Discarding https://files.pythonhosted.org/packages/67/9a/ff2ff8e922f3b97c4b4864ca6c78d76ca5969bd730560001167b7054ac48/docutils-0.21.post1.tar.gz (from https://pypi.org/simple/docutils/) (requires-python:>=3.9): Requested docutils from https://files.pythonhosted.org/packages/67/9a/ff2ff8e922f3b97c4b4864ca6c78d76ca5969bd730560001167b7054ac48/docutils-0.21.post1.tar.gz has inconsistent version: expected '0.21.post1', but metadata has '0.21' Downloading docutils-0.20.1.tar.gz (2.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 9.4 MB/s eta 0:00:00 [ ``` --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |