summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorSteve Piercy <web@stevepiercy.com>2019-04-11 23:41:06 -0700
committerSteve Piercy <web@stevepiercy.com>2019-04-11 23:41:06 -0700
commit13ebfe393175a44b263058da0aa9e81423984345 (patch)
treecb6442773a1ccc3d74722f7519d408538017b577 /setup.py
parent8a6df4e6fd9a86467262a805be4f1541f46bddbc (diff)
downloadpyramid-13ebfe393175a44b263058da0aa9e81423984345.tar.gz
pyramid-13ebfe393175a44b263058da0aa9e81423984345.tar.bz2
pyramid-13ebfe393175a44b263058da0aa9e81423984345.zip
Refactor base_version to major_version.
- base_version includes the minor version number, and we want the major version which is only the first two bits of the version number.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index 0f097cac4..cd89ac1e1 100644
--- a/setup.py
+++ b/setup.py
@@ -54,11 +54,13 @@ docs_extras = [
testing_extras = tests_require + ['coverage', 'nose']
-base_version = parse_version(VERSION).base_version
+major_version = ".".join(
+ str(v) for v in parse_version(VERSION)._version.release[: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(major_version)
setup(
name='pyramid',
@@ -87,7 +89,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, major_version),
'Issue Tracker': 'https://github.com/Pylons/pyramid/issues',
},
license="BSD-derived (http://www.repoze.org/LICENSE.txt)",