Feature request: Add support in pyproject.toml for specifying custom project URLs.
In flit, it's done like this:
[tool.flit.metadata.urls]
Documentation = "https://flit.readthedocs.io/en/latest/"
Twine is an example of a package that specifies a custom URLs. Twine's setup.py looks like this:
[...]
setup(
[...]
project_urls={
'Packaging tutorial': 'https://packaging.python.org/tutorials/distributing-packages/',
'Twine documentation': 'https://twine.readthedocs.io/en/latest/',
'Twine source': 'https://github.com/pypa/twine/',
},
[...]
)
These fields correspond to the Project-URL
metadata field. The setuptools documentation can also be found here.
For anyone implementing, I don't know if a dictionary is an appropriate data structure - nothing in the spec states that the human-friendly strings must be unique, but no one has complained about it in the setuptools issue tracker so maybe it's not a big deal.
I think this issue has been resolved with #1137 :)
Seems like it's fixed
Most helpful comment
These fields correspond to the
Project-URL
metadata field. The setuptools documentation can also be found here.For anyone implementing, I don't know if a dictionary is an appropriate data structure - nothing in the spec states that the human-friendly strings must be unique, but no one has complained about it in the setuptools issue tracker so maybe it's not a big deal.