Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest mdformat-gfm and mdformat-admon conflicts #27

Closed
kdeldycke opened this issue Jun 8, 2023 · 3 comments
Closed

Latest mdformat-gfm and mdformat-admon conflicts #27

kdeldycke opened this issue Jun 8, 2023 · 3 comments

Comments

@kdeldycke
Copy link
Contributor

kdeldycke commented Jun 8, 2023

Trying to install the last 2 versions of these plugins does not work because of a conflict on mdit-py-plugins requirements:

$ pip install --dry-run mdformat-gfm==0.3.5 mdformat-admon==1.0.2
Collecting mdformat-gfm==0.3.5
  Using cached mdformat_gfm-0.3.5-py3-none-any.whl (4.9 kB)
Collecting mdformat-admon==1.0.2
  Using cached mdformat_admon-1.0.2-py3-none-any.whl (4.7 kB)
Collecting markdown-it-py[linkify] (from mdformat-gfm==0.3.5)
  Using cached markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
Collecting mdformat<0.8.0,>=0.7.5 (from mdformat-gfm==0.3.5)
  Using cached mdformat-0.7.16-py3-none-any.whl (29 kB)
Collecting mdformat-tables>=0.4.0 (from mdformat-gfm==0.3.5)
  Using cached mdformat_tables-0.4.1-py3-none-any.whl (4.6 kB)
Collecting mdit-py-plugins<0.4.0,>=0.2.0 (from mdformat-gfm==0.3.5)
  Using cached mdit_py_plugins-0.3.5-py3-none-any.whl (52 kB)
INFO: pip is looking at multiple versions of mdformat-admon to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install mdformat-admon==1.0.2 and mdformat-gfm==0.3.5 because these package versions have conflicting dependencies.

The conflict is caused by:
    mdformat-gfm 0.3.5 depends on mdit-py-plugins<0.4.0 and >=0.2.0
    mdformat-admon 1.0.2 depends on mdit-py-plugins>=0.4.0

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Mirrors: KyleKing/mdformat-admon#15

@KyleKing
Copy link
Collaborator

KyleKing commented Jun 8, 2023

Hukkin, could you relax the dependency on mdit-py-plugins? That should be all that's needed to resolve this:

mdit-py-plugins = ">=0.2.0,<0.4.0"


mdformat-admon needs the features in 0.4.0 for ??? support: https://github.com/executablebooks/mdit-py-plugins/releases/tag/v0.4.0. See: KyleKing/mdformat-admon#15 (comment)

I always advocate for loosening version constraints whenever possible (https://iscinumpy.dev/post/bound-version-constraints)

@kdeldycke
Copy link
Contributor Author

Looks like @KyleKing requirements on 0.4.0 is legitimate, so yes, a way to fix this is to loosen the constraints on mdit-py-plugins here.

@kdeldycke
Copy link
Contributor Author

Just proposed a little PR at: #28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants