Skip to content

Commit

Permalink
Merge pull request #3487 from stevepiercy/1.10-branch
Browse files Browse the repository at this point in the history
Refactor base_version to branch_version.
  • Loading branch information
mmerickel committed Apr 13, 2019
2 parents 2eb330a + 0bee48e commit a85ddab
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#
##############################################################################
from setuptools import find_packages, setup
from pkg_resources import parse_version


def readfile(name):
Expand Down Expand Up @@ -58,11 +57,11 @@ def readfile(name):
'virtualenv', # for scaffolding tests
]

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',
Expand Down Expand Up @@ -92,7 +91,7 @@ def readfile(name):
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)",
Expand Down

0 comments on commit a85ddab

Please sign in to comment.