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 755e34a commit e4ae88a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Expand Up @@ -54,11 +54,11 @@ def readfile(name):

testing_extras = tests_require + ['coverage', 'nose']

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 @@ -87,7 +87,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 e4ae88a

Please sign in to comment.