Skip to content

Update PyPi package registry to use project.urls from pyproject.toml #33085

Closed
@satr-cowi

Description

@satr-cowi

Description

At the moment a link only seems to appear in the pypi package registry for setup.cfg files with a url field, which is translated to a Home-page metadata field. I believe this bit of meta-data has been deprecated recently: https://packaging.python.org/en/latest/specifications/core-metadata/#home-page

I believe the issue may be related to this line (but not fully sure):

projectURL := ctx.Req.FormValue("home_page")

Ideally links would appear in a similar way to that in pypi (Where the [project.urls] table can take homepage, documentation, tracker etc.)

The current documentation on what metadata is available and how it is used could also be heavily improved.

Gitea Version

1.21.11

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

image

Git Version

No response

Operating System

Windows Server

How are you running Gitea?

Running the .exe on a Windows Server

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions