From 9c086aac7c53399506eb68f29b296ebbfb8e29d4 Mon Sep 17 00:00:00 2001
From: Michael Merickel <michael@merickel.org>
Date: Fri, 26 Oct 2018 02:57:47 +0200
Subject: [PATCH] add project_urls metadata to the package

---
 setup.py |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/setup.py b/setup.py
index b64feb1..df7e5dd 100644
--- a/setup.py
+++ b/setup.py
@@ -12,6 +12,7 @@
 #
 ##############################################################################
 from setuptools import find_packages, setup
+from pkg_resources import parse_version
 
 
 def readfile(name):
@@ -21,6 +22,8 @@
 
 README = readfile('README.rst')
 CHANGES = readfile('CHANGES.rst')
+
+VERSION = '1.10a1'
 
 install_requires = [
     'hupper',
@@ -55,9 +58,15 @@
     'virtualenv',  # for scaffolding tests
 ]
 
+base_version = parse_version(VERSION).base_version
+
+# black is refusing to make anything under 80 chars so just splitting it up
+docs_fmt = 'https://docs.pylonsproject.org/projects/pyramid/en/{}-branch/'
+docs_url = docs_fmt.format(base_version)
+
 setup(
     name='pyramid',
-    version='1.10a1',
+    version=VERSION,
     description='The Pyramid Web Framework, a Pylons project',
     long_description=README + '\n\n' + CHANGES,
     classifiers=[
@@ -77,10 +86,15 @@
         "Topic :: Internet :: WWW/HTTP :: WSGI",
         "License :: Repoze Public License",
     ],
-    keywords='web wsgi pylons pyramid',
+    keywords=['web', 'wsgi', 'pylons', 'pyramid'],
     author="Chris McDonough, Agendaless Consulting",
     author_email="pylons-discuss@googlegroups.com",
     url="https://trypyramid.com",
+    project_urls={
+        'Documentation': docs_url,
+        'Changelog': '{}/whatsnew-{}.html'.format(docs_url, base_version),
+        'Issue Tracker': 'https://github.com/Pylons/pyramid/issues',
+    },
     license="BSD-derived (http://www.repoze.org/LICENSE.txt)",
     packages=find_packages('src', exclude=['tests']),
     package_dir={'': 'src'},

--
Gitblit v1.9.3