-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move code to external mkdocs-get-deps dependency #3477
Conversation
The "get-deps" command will still be provided inside MkDocs like before (and is not deprecated at all) but is now implemented in a separate repository and can be used directly from there as well. This separation of code was done because obtaining just the "get-deps" part with very few dependencies can be useful: one can run it in a main environment but then install actual MkDocs with dependencies in a virtual environment.
This creates a problem with Upgrading the pip version to Recreation
Recreation steps:Launch a new ubuntu 22.04 container:
Inside the container
Observe that pypa/pip#10851 occurs |
Hi @sillydan1, I'm not sure to understand why this resolved pip bug from 2022 is relevant to this PR. |
Thanks for the report @sillydan1 . It should probably be opened as a new issue. @pawamoy The problem, as was already described, is that users of Ubuntu 22.04 out of the box get an error for this command: pip install mkdocs mkdocs-material I confirm the finding, this was my repro: virtualenv venv
venv/bin/pip install pip==22.0.2
venv/bin/pip install mkdocs mkdocs-material
Error:
The cause is the intersection of the bug in pip and the fact that mkdocs-material pinned the version of MkDocs. The best solution would be to unpin versions there. In the world of Python packaging, it is hostile to pin versions in a library, because it just doesn't work well. See my comment that I wrote for a different project: Some workarounds in the meantime
|
Also @sillydan1 I'm not sure how you determined that this PR causes it. I was not able to confirm or deny that, but I think it's not related. I think the bug is purely due to the version number conflict. In any case definitely should be a separate issue. |
Sorry for reviving a closed PR. You're right, this should be an issue by itself - I will create one.
The only changes that happened to my CI build was that EDIT: Nevermind, someone beat me to it |
The "get-deps" command will still be provided inside MkDocs like before (and is not deprecated at all) but is now implemented in a separate repository and can be used directly from there as well.
https://github.com/mkdocs/get-deps
This separation of code was done because obtaining just the "get-deps" part with very few dependencies can be useful: one can run it in a main environment but then install actual MkDocs with dependencies in a virtual environment.
I have also already applied this extracted small library "mkdocs-get-deps" for another use case, which I'm very proud of:
https://github.com/mkdocs/hatch-mkdocs 馃啎
In the near future I will write a new recommended guide for how to manage dependencies for a MkDocs site. This is only one part of it though.