Skip to content

Commit

Permalink
refactor major_version to branch_version
Browse files Browse the repository at this point in the history
  • Loading branch information
stevepiercy committed Apr 12, 2019
1 parent a3ef341 commit 587077b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ def readfile(name):
'virtualenv', # for scaffolding tests
]

major_version = ".".join(VERSION.split(".")[:2])
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(major_version)
docs_url = docs_fmt.format(branch_version)

setup(
name='pyramid',
Expand Down Expand Up @@ -92,7 +92,7 @@ def readfile(name):
url="https://trypyramid.com",
project_urls={
'Documentation': docs_url,
'Changelog': '{}whatsnew-{}.html'.format(docs_url, major_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 587077b

Please sign in to comment.