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

Release 2022.6.3 contains default sphinx dependencies in pyproject.toml that cannot be resolved in poetry update. #1290

Open
s-t-a-n opened this issue Jan 13, 2023 · 0 comments

Comments

@s-t-a-n
Copy link

s-t-a-n commented Jan 13, 2023

Hey guys, I am running into an issue with the latest release. I can't update the dependencies without disabling some sphinx-dependencies. The culprit seems to be the sphinxcontrib.applehelp dependency. Maybe I am seeing ghosts but I thought to let you know anyway as I haven't been able to crack this one so far and it seems to break on the default release provided.

Anyway thanks for making this template. If I can help any way to resolve this issue then be frank about it :)

To reproduce

cookiecutter gh:cjolowicz/cookiecutter-hypermodern-python --checkout=2022.6.3
# enter all default
cd hypermodern-python
poetry install -vvv # ok
poetry update -vvv # hangs on `fact: sphinxcontrib.applehelp (1.0.3) requires Python >=3.8`

Expected

Packages are updated

Actual results

Poetry hangs on resolving dependency sphinxcontrib.applehelp (1.0.3) with error fact: sphinxcontrib.applehelp (1.0.3) requires Python >=3.8

I let it run for some 10 minutes. It's a deadlock.

with this output:

   $ poetry update -vvv 
   ...
   1: selecting sphinxcontrib.applehelp (1.0.3)
   1: selecting sphinxcontrib.applehelp (1.0.3)
   1: selecting sphinxcontrib.applehelp (1.0.3)
   1: selecting sphinxcontrib.applehelp (1.0.3)
   1: selecting sphinxcontrib.applehelp (1.0.3)
   1: selecting sphinxcontrib.applehelp (1.0.3)
   1: selecting sphinxcontrib.applehelp (1.0.3)

Workaround

Disable the following Sphinx dependencies in pyproject.toml:

  32   │ #furo = ">=2021.11.12"
  41   │ #sphinx = ">=4.3.2"
  42   │ #sphinx-autobuild = ">=2021.3.14"
  43   │ #sphinx-click = ">=3.0.2"
  46   │ #myst-parser = {version = ">=0.16.1"}

I have also tried bumping Sphinx to no avail (even when bumping minimal Python requirement to >3.8). Same issue.

Potential culprits

  • pyproject Sphinx circular dependency (possibly with a specific versioning conflict?)
  • a Poetry bug

Details

Poetry: 1.1.15 #latest from Pypi
Pip: 22.3.1 #latest from Pypi
Python: 3.10.6
OS: Ubuntu 22.04 LTS

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

1 participant