You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that it works if I remove the python_version >= '3.7' marker from mkdocstrings.
We could argue that since mkdocstrings is compatible with Python 3.6, one should not add the python_version >= '3.7' marker to it, however the docs will only build if the whole docs section is installed, so there's no point in installing just mkdocstrings on Python 3.6 since docs won't build anyway.
Actual behavior
% pdm use -f 3.6Using Python interpreter: /home/pawamoy/.basher-packages/pyenv/pyenv/versions/3.6.13/bin/python (3.6)Updating executable scripts...
% pdm installSynchronizing working set with lock file: 12 to add, 0 to update, 0 to remove ✔ Install appdirs 1.4.4 successful ✔ Install black 20.8b1 successful ✔ Install click 8.0.1 successful ✔ Install importlib-metadata 4.0.1 successful ✔ Install dataclasses 0.8 successful ✔ Install mypy-extensions 0.4.3 successful ✔ Install pathspec 0.8.1 successful ✔ Install regex 2021.4.4 successful ✔ Install toml 0.10.2 successful ✔ Install typed-ast 1.4.3 successful ✔ Install typing-extensions 3.10.0.0 successful ✔ Install zipp 3.4.1 successfulInstalling the project as an editable package... ✔ Install pawamoy-testing 0.1.0+d20210525 successful🎉 All complete!
% pdm use -f 3.7Using Python interpreter: /home/pawamoy/.basher-packages/pyenv/pyenv/versions/3.7.9/bin/python (3.7)Updating executable scripts...
% pdm installSee /tmp/pdm-install-resolve-sxari6dq.log for detailed debug log.[ResolutionImpossible]: [RequirementInformation(requirement=NamedRequirement(name='pytkdocs', marker=None, extras=(), specifier=<SpecifierSet('<0.12.0,>=0.2.0')>, editable=False), parent=<Candidate mkdocstrings 0.15.1 from unknown>)]Add '-v' to see the detailed traceback
% pdm install -vTraceback (most recent call last): File "/home/pawamoy/.local/bin/pdm", line 8, in <module> sys.exit(main()) File "/home/pawamoy/.local/pipx/venvs/pdm/lib/python3.9/site-packages/pdm/core.py", line 184, in main return Core().main(args) File "/home/pawamoy/.local/pipx/venvs/pdm/lib/python3.9/site-packages/pdm/core.py", line 145, in main raise cast(Exception, err).with_traceback(traceback) File "/home/pawamoy/.local/pipx/venvs/pdm/lib/python3.9/site-packages/pdm/core.py", line 140, in main f(options.project, options) File "/home/pawamoy/.local/pipx/venvs/pdm/lib/python3.9/site-packages/pdm/cli/commands/install.py", line 46, in handle actions.do_sync( File "/home/pawamoy/.local/pipx/venvs/pdm/lib/python3.9/site-packages/pdm/cli/actions.py", line 152, in do_sync candidates = resolve_candidates_from_lockfile(project, requirements) File "/home/pawamoy/.local/pipx/venvs/pdm/lib/python3.9/site-packages/pdm/cli/actions.py", line 111, in resolve_candidates_from_lockfile mapping, *_ = resolve( File "/home/pawamoy/.local/pipx/venvs/pdm/lib/python3.9/site-packages/pdm/resolver/core.py", line 49, in resolve result = resolver.resolve(requirements, max_rounds) File "/home/pawamoy/.local/pipx/venvs/pdm/lib/python3.9/site-packages/resolvelib/resolvers.py", line 473, in resolve state = resolution.resolve(requirements, max_rounds=max_rounds) File "/home/pawamoy/.local/pipx/venvs/pdm/lib/python3.9/site-packages/resolvelib/resolvers.py", line 377, in resolve raise ResolutionImpossible(causes)resolvelib.resolvers.ResolutionImpossible: [RequirementInformation(requirement=NamedRequirement(name='pytkdocs', marker=None, extras=(), specifier=<SpecifierSet('<0.12.0,>=0.2.0')>, editable=False), parent=<Candidate mkdocstrings 0.15.1 from unknown>)]
% pdm use -f 3.8Using Python interpreter: /home/pawamoy/.basher-packages/pyenv/pyenv/versions/3.8.10/bin/python (3.8)Updating executable scripts...
% pdm install -vTraceback (most recent call last): File "/home/pawamoy/.local/bin/pdm", line 8, in <module> sys.exit(main()) File "/home/pawamoy/.local/pipx/venvs/pdm/lib/python3.9/site-packages/pdm/core.py", line 184, in main return Core().main(args) File "/home/pawamoy/.local/pipx/venvs/pdm/lib/python3.9/site-packages/pdm/core.py", line 145, in main raise cast(Exception, err).with_traceback(traceback) File "/home/pawamoy/.local/pipx/venvs/pdm/lib/python3.9/site-packages/pdm/core.py", line 140, in main f(options.project, options) File "/home/pawamoy/.local/pipx/venvs/pdm/lib/python3.9/site-packages/pdm/cli/commands/install.py", line 46, in handle actions.do_sync( File "/home/pawamoy/.local/pipx/venvs/pdm/lib/python3.9/site-packages/pdm/cli/actions.py", line 152, in do_sync candidates = resolve_candidates_from_lockfile(project, requirements) File "/home/pawamoy/.local/pipx/venvs/pdm/lib/python3.9/site-packages/pdm/cli/actions.py", line 111, in resolve_candidates_from_lockfile mapping, *_ = resolve( File "/home/pawamoy/.local/pipx/venvs/pdm/lib/python3.9/site-packages/pdm/resolver/core.py", line 49, in resolve result = resolver.resolve(requirements, max_rounds) File "/home/pawamoy/.local/pipx/venvs/pdm/lib/python3.9/site-packages/resolvelib/resolvers.py", line 473, in resolve state = resolution.resolve(requirements, max_rounds=max_rounds) File "/home/pawamoy/.local/pipx/venvs/pdm/lib/python3.9/site-packages/resolvelib/resolvers.py", line 377, in resolve raise ResolutionImpossible(causes)resolvelib.resolvers.ResolutionImpossible: [RequirementInformation(requirement=NamedRequirement(name='pytkdocs', marker=None, extras=(), specifier=<SpecifierSet('<0.12.0,>=0.2.0')>, editable=False), parent=<Candidate mkdocstrings 0.15.1 from unknown>)]
Expected behavior
Successfull installation of mkdocstrings, pytkdocs and others 😊
Steps to reproduce
This is a follow-up of #476 (sorry for all these bug reports 😅)
With just one additional package,
pdm install
will fail:(See error in "Actual behavior" paragraph)
Note that it works if I remove the
python_version >= '3.7'
marker from mkdocstrings.We could argue that since
mkdocstrings
is compatible with Python 3.6, one should not add thepython_version >= '3.7'
marker to it, however the docs will only build if the whole docs section is installed, so there's no point in installing just mkdocstrings on Python 3.6 since docs won't build anyway.Actual behavior
Expected behavior
Successfull installation of mkdocstrings, pytkdocs and others 😊
Environment Information
The text was updated successfully, but these errors were encountered: