From 10a77a54309876a6aba2e3303d291498c0a9318c Mon Sep 17 00:00:00 2001 From: Hsiaoming Yang Date: Wed, 25 Apr 2018 00:48:32 +0900 Subject: [PATCH 1/2] Add project_urls so that PyPI will show GitHub stats. --- setup.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup.py b/setup.py index 26e531f1..daa3fac4 100755 --- a/setup.py +++ b/setup.py @@ -25,6 +25,11 @@ setup( include_package_data=True, zip_safe=False, platforms='any', + project_urls={ + 'Bug Tracker': 'https://github.com/pallets/flask/issues', + 'Documentation': 'http://flask.pocoo.org/', + 'Source Code': 'https://github.com/pallets/flask', + }, install_requires=[ 'Werkzeug>=0.14', 'Jinja2>=2.10', From 5c8110de25f08bf20e9fda6611403dc5c59ec849 Mon Sep 17 00:00:00 2001 From: David Lord Date: Thu, 26 Apr 2018 11:57:21 -0700 Subject: [PATCH 2/2] ensure order of project urls --- setup.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index daa3fac4..a97d4212 100755 --- a/setup.py +++ b/setup.py @@ -2,6 +2,8 @@ # -*- coding: utf-8 -*- import io import re +from collections import OrderedDict + from setuptools import setup with io.open('README.rst', 'rt', encoding='utf8') as f: @@ -14,6 +16,11 @@ setup( name='Flask', version=version, url='https://www.palletsprojects.com/p/flask/', + project_urls=OrderedDict(( + ('Documentation', 'http://flask.pocoo.org/docs/'), + ('Code', 'https://github.com/pallets/pallets-sphinx-themes'), + ('Issue tracker', 'https://github.com/pallets/pallets-sphinx-themes/issues'), + )), license='BSD', author='Armin Ronacher', author_email='armin.ronacher@active-4.com', @@ -25,11 +32,6 @@ setup( include_package_data=True, zip_safe=False, platforms='any', - project_urls={ - 'Bug Tracker': 'https://github.com/pallets/flask/issues', - 'Documentation': 'http://flask.pocoo.org/', - 'Source Code': 'https://github.com/pallets/flask', - }, install_requires=[ 'Werkzeug>=0.14', 'Jinja2>=2.10',