Skip to content

Commit c92f841

Browse files
authored
Add project_urls to dist metadata
This enables warehouse to show extra info about the dist
1 parent 04c4f2c commit c92f841

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

setup.py

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,13 @@ def read(f):
7979

8080
tests_require = ['pytest']
8181

82+
name = 'multidict'
83+
appveyor_slug = 'asvetlov/{}'.format(name) # FIXME: move under aio-libs/* slug
84+
repo_slug = 'aio-libs/{}'.format(name)
85+
repo_url = 'https://github.com/{}'.format(repo_slug)
8286

8387
args = dict(
84-
name='multidict',
88+
name=name,
8589
version=version,
8690
description=('multidict implementation'),
8791
long_description=read('README.rst'),
@@ -98,7 +102,18 @@ def read(f):
98102
],
99103
author='Andrew Svetlov',
100104
author_email='andrew.svetlov@gmail.com',
101-
url='https://github.com/aio-libs/multidict/',
105+
url=repo_url,
106+
project_urls={
107+
'Chat: Gitter': 'https://gitter.im/aio-libs/Lobby',
108+
'CI: AppVeyor': 'https://ci.appveyor.com/project/{}'.format(appveyor_slug),
109+
'CI: Circle': 'https://circleci.com/gh/{}'.format(repo_slug),
110+
'CI: Shippable': 'https://app.shippable.com/github/{}'.format(repo_slug),
111+
'CI: Travis': 'https://travis-ci.org/{}'.format(repo_slug),
112+
'Coverage: codecov': 'https://codecov.io/github/{}'.format(repo_slug),
113+
'Docs: RTD': 'https://{}.readthedocs.io'.format(name),
114+
'GitHub: issues': '{}/issues'.format(repo_url),
115+
'GitHub: repo': repo_url,
116+
},
102117
license='Apache 2',
103118
packages=['multidict'],
104119
python_requires='>=3.4.1',

0 commit comments

Comments
 (0)