Closed notpushkin closed 2 weeks ago
I would say that this is a Warehouse issue, since packaging guide doesn't deprecate the fields Poetry is setting. However, we can add an extra case in our build to make it compatible with how Warehouse works.
@notpushkin @Secrus Am I missing something or has this been fixed by Warehouse? I can see a homepage link for both https://test.pypi.org/project/poetry-homepage-bug-repro/ and https://test.pypi.org/project/poetry-homepage-bug-workaround/
@notpushkin @Secrus Am I missing something or has this been fixed by Warehouse? I can see a homepage link for both https://test.pypi.org/project/poetry-homepage-bug-repro/ and https://test.pypi.org/project/poetry-homepage-bug-workaround/
Probably a recent deploy or something. Seems like my work wasn't needed after all.
Description
I've published a package on PyPI, and the
homepage
URL wasn't picked up from[tool.poetry]
: https://test.pypi.org/project/poetry-homepage-bug-repro/I've looked at the METADATA file in the wheel and it seems that Poetry puts homepage URL into
Home-page
property only and doesn't create aProject-URL
entry like for other[tool.poetry]
URLs. PyPI on the other hand seems to ignoreHome-page
altogether now. This issue might be related: https://github.com/pypi/warehouse/issues/11220Workarounds
If you put homepage URL in
[tool.poetry.urls]
, it does show up on PyPI just fine: https://test.pypi.org/project/poetry-homepage-bug-workaround/Poetry Installation Method
pipx
Operating System
Fedora 40
Poetry Version
Poetry (version 1.8.3)
Poetry Configuration
Python Sysconfig
No response
Example pyproject.toml
Poetry Runtime Logs