pypa / twine

Utilities for interacting with PyPI

Home Page:https://twine.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Package docutils (0.21.post1) not found.

black-snow opened this issue · comments

Is there an existing issue for this?

  • I have searched the existing issues (open and closed), and could not find an existing issue

What keywords did you use to search existing issues?

docutils

What operating system are you using?

Linux, macOS

If you selected 'Other', describe your Operating System here

No response

What version of Python are you running?

Python 3.12.2

How did you install twine? Did you use your operating system's package manager or pip or something else?

poetry add twine

What version of twine do you have installed (include the complete output)

Using version ^5.0.0 for twine

Which package repository are you using?

pypi

Please describe the issue that you are experiencing

Not quite sure if this is an issue with twine itself or where docutils is even referenced.

When I try to add twine via poetry it fails with:

Package docutils (0.21.post1) not found.

I tried it in a live project and in an empty dummy project. It seems to work with pip, though - so it might (?) be an issue with poetry? I haven't yet identified who needs docutils and why.

Please list the steps required to reproduce this behaviour

  • init an empty poetry project
  • poetry add twine

Anything else you'd like to mention?

No response

I added 0.21 to dev dependencies explicitly to get it working again. I cannot spot what pkg hast the nonexisting post1 listed.

I would guess readme-renderer has a docutils dependency but that's not twine's bug or responsibility to solve so I'm closing this

https://github.com/pypa/readme_renderer/blob/main/pyproject.toml#L10

That's the latest dependency on docutils. I suspect this is a poetry problem resolving dependencies but I don't use poetry

Yes, thanks for looking into it @sigmavirus24