Frank C.
Frank C.

Reputation: 8098

'project.urls' Not be recognized in PyPi

I have the following in my setup.cfg file:

[project.urls]
"Documentation" = "https://pysui.readthedocs.io"
"Bug Reports" = "https://github.com/FrankC01/pysui/issues"

My build executes without error and twine check and twine upload work without a hitch. However, the extra links do not show up in PyPi?

Upvotes: 0

Views: 606

Answers (1)

teprrr
teprrr

Reputation: 424

I think that format works only with the pyproject.toml as described at https://packaging.python.org/en/latest/tutorials/packaging-projects/#configuring-metadata . Note, the above describes how it works when using pypa's build for building, other packaging tools use their own ways to define this information.

If you prefer to use setup.cfg, you could try adding the project_urls under [metadata] like this:

[metadata]
project_urls = 
    Documentation = https://pysui.readthedocs.io
    Bug Reports = https://github.com/FrankC01/pysui/issues

One more tip: you can check the PKG-INFO file in the created tar archive to see that the information was added correctly:

Project-URL: Documentation, https://pysui.readthedocs.io
Project-URL: Bug Reports, https://github.com/FrankC01/pysui/issues

Upvotes: 1

Related Questions