summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorMichael Merickel <github@m.merickel.org>2018-10-26 10:16:27 -0500
committerGitHub <noreply@github.com>2018-10-26 10:16:27 -0500
commit197eb3a2ad19c944b88b1ee3bc84c6501ea9ba35 (patch)
treed698c10d9466c1da0f331ee5fadb04049afefff3 /setup.py
parent572e03c1e47385f093ffb701e21c226f99247837 (diff)
parent9c086aac7c53399506eb68f29b296ebbfb8e29d4 (diff)
downloadpyramid-197eb3a2ad19c944b88b1ee3bc84c6501ea9ba35.tar.gz
pyramid-197eb3a2ad19c944b88b1ee3bc84c6501ea9ba35.tar.bz2
pyramid-197eb3a2ad19c944b88b1ee3bc84c6501ea9ba35.zip
Merge pull request #3401 from mmerickel/project-url-metadata
add project_urls metadata to the package
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py18
1 files changed, 16 insertions, 2 deletions
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'},