Poetry: Custom project URLs

Created on 4 Oct 2018  路  3Comments  路  Source: python-poetry/poetry

  • [x] I have searched the issues of this repo and believe that this is not a duplicate.

Issue

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/',
    },
    [...]
)

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.

All 3 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Euphorbium picture Euphorbium  路  3Comments

AWegnerGitHub picture AWegnerGitHub  路  3Comments

thmo picture thmo  路  3Comments

kierun picture kierun  路  3Comments

gazpachoking picture gazpachoking  路  3Comments