diff options
| -rw-r--r-- | setup.py | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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)", |
