From 9c086aac7c53399506eb68f29b296ebbfb8e29d4 Mon Sep 17 00:00:00 2001 From: Michael Merickel Date: Thu, 25 Oct 2018 19:47:42 -0500 Subject: add project_urls metadata to the package --- setup.py | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index b64feb10e..df7e5dd38 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): @@ -22,6 +23,8 @@ def readfile(name): README = readfile('README.rst') CHANGES = readfile('CHANGES.rst') +VERSION = '1.10a1' + install_requires = [ 'hupper', 'plaster', @@ -55,9 +58,15 @@ testing_extras = tests_require + [ '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 @@ setup( "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'}, -- cgit v1.2.3