how to set bug tracker url in setup.py script

后端 未结 2 388
广开言路
广开言路 2020-12-29 04:30

I have just discovered the pypi web UI have a field \'Bug tracker URL\' in edit of egg metadata.

This field exists so I guess it is supported in setup.py but I can\'

2条回答
  •  Happy的楠姐
    2020-12-29 05:11

    The entry is called bugtrack_url, but it's not being picked up from setup.py.

    From context and code I understand it was intended to be used through-the-web on PyPI only, as per-project metadata, and not the usual per-release information.

    The field is now considered a legacy field (hardcoded to None) and you instead add such information through the Project-URL list, which you can set in setuptools via the project_urls entry:

        project_urls={
            'Documentation': 'https://packaging.python.org/tutorials/distributing-packages/',
            'Funding': 'https://donate.pypi.org',
            'Say Thanks!': 'http://saythanks.io/to/example',
            'Source': 'https://github.com/pypa/sampleproject/',
            'Tracker': 'https://github.com/pypa/sampleproject/issues',
        },
    

    This option was finally added to setuptools in November 2017, and landed in version 38.3.0.

提交回复
热议问题