Skip to content

mdformat_myst not compatible with mdformat 1.0.0 because of mdformat_frontmatter #45

@kdeldycke

Description

@kdeldycke

Describe the bug

The master branch of mdformat_myst cannot be installed with mdformat 1.0.0:

$ uv pip install "mdformat == 1.0.0" "mdformat_myst @ git+https://github.com/executablebooks/mdformat-myst@master#1bfcdf6497cc0af7456cb1a69cd13e0f41636808"
  × No solution found when resolving dependencies:
  ╰─▶ Because only the following versions of mdformat-frontmatter are available:
          mdformat-frontmatter<=0.3.2
          mdformat-frontmatter==0.4.1
          mdformat-frontmatter==2.0.0
          mdformat-frontmatter==2.0.1
          mdformat-frontmatter==2.0.6
          mdformat-frontmatter==2.0.7
          mdformat-frontmatter==2.0.8
      and mdformat-frontmatter>=0.3.2,<=2.0.1 depends on mdformat>=0.7.0,<0.8.0, we can conclude that mdformat-frontmatter>=0.3.2,<2.0.6 depends on mdformat>=0.7.0,<0.8.0.
      And because mdformat-frontmatter>=2.0.6 depends on mdformat>=0.7.16,<0.8.0, we can conclude that mdformat-frontmatter>=0.3.2 depends on mdformat>=0.7.0,<0.8.0.
      And because mdformat-myst==0.2.2 depends on mdformat-frontmatter>=0.3.2 and only mdformat-myst==0.2.2 is available, we can conclude that all versions of mdformat-myst depend on mdformat>=0.7.0,<0.8.0.
      And because you require mdformat==1.0.0 and mdformat-myst, we can conclude that your requirements are unsatisfiable.

The root cause of the issue is that mdformat_frontmatter is stuck at requiring mdformat < 0.8.0.

All maintainers are well aware of this situation which prevent the release of mdformat_myst, as the same issue affects mdformat-mkdocs.

I created this issue for completeness and tracking, as a follow-up on:

Reproduce the bug

$ uv pip install "mdformat == 1.0.0" "mdformat_myst @ git+https://github.com/executablebooks/mdformat-myst@master#1bfcdf6497cc0af7456cb1a69cd13e0f41636808"

List your environment

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions