summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Merickel <github@m.merickel.org>2019-04-13 10:51:58 -0500
committerGitHub <noreply@github.com>2019-04-13 10:51:58 -0500
commit69bc36d90fc9b5326aeffedf4e671b691508d2e7 (patch)
tree99fc17c80cab2720d6e1a03d8922b4049e89a9fb
parent8a6df4e6fd9a86467262a805be4f1541f46bddbc (diff)
parent0642e293546f6f674e5d33f8fd0c82d664aebe60 (diff)
downloadpyramid-69bc36d90fc9b5326aeffedf4e671b691508d2e7.tar.gz
pyramid-69bc36d90fc9b5326aeffedf4e671b691508d2e7.tar.bz2
pyramid-69bc36d90fc9b5326aeffedf4e671b691508d2e7.zip
Merge pull request #3486 from stevepiercy/master
Refactor base_version to branch_version.
-rw-r--r--setup.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/setup.py b/setup.py
index 0f097cac4..4db78d158 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,6 @@
#
##############################################################################
from setuptools import find_packages, setup
-from pkg_resources import parse_version
def readfile(name):
@@ -54,11 +53,11 @@ docs_extras = [
testing_extras = tests_require + ['coverage', 'nose']
-base_version = parse_version(VERSION).base_version
+branch_version = ".".join(VERSION.split(".")[:2])
# 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)
+docs_url = docs_fmt.format(branch_version)
setup(
name='pyramid',
@@ -87,7 +86,7 @@ setup(
url="https://trypyramid.com",
project_urls={
'Documentation': docs_url,
- 'Changelog': '{}whatsnew-{}.html'.format(docs_url, base_version),
+ 'Changelog': '{}whatsnew-{}.html'.format(docs_url, branch_version),
'Issue Tracker': 'https://github.com/Pylons/pyramid/issues',
},
license="BSD-derived (http://www.repoze.org/LICENSE.txt)",