Closed kloczek closed 2 years ago
I'm not good at the test of MyST-Parser, but it seems you'd run testings under fr locale. How about running this under LC_LANG=C
?
Running Sphinx v4.3.2 loading translations [fr]... not available for built-in messages
BTW, why did you post this to our project? This is Sphinx, not MyST-Parser project. We can't support you at all.
I'm not good at the test of MyST-Parser, but it seems you'd run testings under fr locale. How about running this under LC_LANG=C?
Quoted output is from packaging rpm packaging process. rpm always uses "C" as default locale settings in build env (it forces that in generated and executed shell scripts). In other words what you see here is in env with "C" locale settings.
Ah, sorry. I found the testcase is configured as language: fr
. So It's expected behavior.
@pytest.mark.sphinx(
buildername="html",
srcdir=os.path.join(SOURCE_DIR, "gettext"),
freshenv=True,
confoverrides={"language": "fr", "gettext_compact": False, "locale_dirs": ["."]},
)
Sorry, I don't know what happened. Please ask to the MyST-Parser team.
Basically, in the test,
# **bold** text 1
should be converted to:
<h1>
texte 1 en
<strong>
gras
</strong>
<a class="headerlink" href="#bold-text-1" title="Lien permanent vers ce titre">
¶
</a>
</h1>
but for @kloczek, with he's test setup, he gets:
<h1>
texte 1 en
<strong>
gras
</strong>
<a class="headerlink" href="#bold-text-1" title="Permalink to this headline">
¶
</a>
</h1>
I don't reproduce this issue though; either locally or on Github actions. So I would suggest is an issue with @kloczek testing setup
Hmm .. so why in my case is produced English text? What could be possible cause?🤔
No idea myself, @jpmckinney maybe able to comment (who implemented these translation tests)
@chrisjsewell If you're saying you can't reproduce the error, then I will not attempt to guess why the irreproducible error occurs :)
Looks like 0.17.1 fixes that issue
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-myst-parser-0.17.1-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-myst-parser-0.17.1-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.1, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/MyST-Parser-0.17.1, configfile: tox.ini
plugins: datadir-1.3.1, regressions-2.3.1, pytest_param_files-0.3.4
collected 1005 items
tests/test_cli.py . [ 0%]
tests/test_docutils.py ......... [ 0%]
tests/test_commonmark/test_commonmark.py .............s...................................................s.s....................................................... [ 13%]
.................................................................................................................................................................... [ 29%]
.................................................................................................................................................................... [ 45%]
.................................................................................................................................................................... [ 62%]
.................................. [ 65%]
tests/test_html/test_html_to_nodes.py ................. [ 67%]
tests/test_html/test_parse_html.py ..................... [ 69%]
tests/test_renderers/test_error_reporting.py ............... [ 70%]
tests/test_renderers/test_fixtures_docutils.py ...............................................................s.......................... [ 79%]
tests/test_renderers/test_fixtures_sphinx.py ..............................................................s...........s.s.............................ss........... [ 91%]
...................s....................... [ 95%]
tests/test_renderers/test_include_directive.py ........ [ 96%]
tests/test_renderers/test_myst_config.py ..... [ 97%]
tests/test_renderers/test_myst_refs.py ......... [ 98%]
tests/test_renderers/test_parse_directives.py .... [ 98%]
tests/test_sphinx/test_sphinx_builds.py ............... [100%]
========================================================================= short test summary info ==========================================================================
SKIPPED [1] tests/test_commonmark/test_commonmark.py:21: Expects '+++' to be unconverted (not block break).
SKIPPED [2] tests/test_commonmark/test_commonmark.py:26: Thematic breaks on the first line conflict with front matter syntax
SKIPPED [1] tests/test_renderers/test_fixtures_docutils.py:44: (`docutils.parsers.rst.directives.body.LineBlock`) SKIP: MockingError: MockState has not yet implemented attribute 'nest_line_block_lines'
SKIPPED [2] tests/test_renderers/test_fixtures_sphinx.py:46: SKIP: Tested in sphinx builds
SKIPPED [1] tests/test_renderers/test_fixtures_sphinx.py:46: SKIP: MockingError: MockState has not yet implemented attribute 'nested_list_parse'
SKIPPED [1] tests/test_renderers/test_fixtures_sphinx.py:63: SKIP cpp:expr (`sphinx.domains.cpp.CPPExprRole`):
SKIPPED [1] tests/test_renderers/test_fixtures_sphinx.py:63: SKIP cpp:texpr (`sphinx.domains.cpp.CPPExprRole`):
SKIPPED [1] tests/test_renderers/test_fixtures_sphinx.py:63: SKIP: Non-deterministic output
===================================================================== 995 passed, 10 skipped in 9.14s ======================================================================
Closing.
Describe the bug
I'm trying to package your module as an rpm package. So I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w
How to Reproduce
git clone https://github.com/executablebooks/MyST-Parser/ cd MyST-Parser python3 -sBm build -w python3 -sBm pip install -I dist/myst_parser-*-none-any.whl --root /tmp/install_root --no-deps --no-index --no-warn-script-location PYTHONPATH=/tmp/install_root/usr/lib64/python8/site-packages \ pytest -ra
Expected behavior
No response
Your project
N/A
Screenshots
Here is pytest output:
OS
Linux/x86_64
Python version
3.8.12
Sphinx version
4.3.2
Sphinx extensions
N/A
Extra tools
N/A
Additional context
No response