Skip to content

Sphinx 6 support #660

@tony

Description

@tony

Describe the bug

context
When I do poetry update with myst-parser = "*' with sphinx = "*" (at

expectation
I expected myst-parser to stay at the latest version with sphinx 6.0, e.g.

❯ poetry install
Installing dependencies from lock file

Package operations: 0 install, 1 updates, 0 removals

  • Updating sphinx (5.3.0 -> 6.0.0)

bug
But instead, myst-parser is downgraded to 0.3.2
Here's an error message I ran into...

❯ poetry install
Installing dependencies from lock file

Package operations: 1 install, 2 updates, 0 removals

  • Installing mistletoe-ebp (0.8.2)
  • Updating sphinx (5.3.0 -> 6.0.0)
  • Updating myst-parser (0.18.1 -> 0.3.2)

problem
This is a problem for people upgrading to sphinx 6.0, released 5 hours ago - Sphinx docs, Release notes

It's due to <6 being pinned:

"sphinx>=4,<6",

Reproduce the bug

Update sphinx to 6.x whem myst-parser is at 0.18.1

List your environment

❯ python -V
Python 3.11.0

❯ poetry self --version
Poetry (version 1.3.1)

 ❯ pip show sphinx
Name: Sphinx
Version: 5.3.0
Summary: Python documentation generator
Home-page:
Author:
Author-email: Georg Brandl <georg@python.org>
License:
Requires: alabaster, babel, docutils, imagesize, Jinja2, packaging, Pygments, requests, snowballstemmer, sphinxcontrib-applehelp, sphinxcontrib-devhelp, sphinxcontrib-htmlhelp, sphinxcontrib-jsmath, sphinxcontrib-qthelp, sphinxcontrib-serializinghtml
Required-by: furo, myst-parser, sphinx-argparse, sphinx-autobuild, sphinx-basic-ng, sphinx-copybutton, sphinx_autodoc_typehints, sphinx_inline_tabs, sphinxext-opengraph, sphinxext-rediraffe

❯ pip show myst-parser
Name: myst-parser
Version: 0.18.1
Summary: An extended commonmark compliant parser, with bridges to docutils & sphinx.
Home-page:
Author:
Author-email: Chris Sewell <chrisj_sewell@hotmail.com>
License:
Requires: docutils, jinja2, markdown-it-py, mdit-py-plugins, pyyaml, sphinx, typing-extensions
Required-by: gp-libs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions