diff options
| author | Michael Merickel <github@m.merickel.org> | 2019-04-13 10:51:58 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-13 10:51:58 -0500 |
| commit | 69bc36d90fc9b5326aeffedf4e671b691508d2e7 (patch) | |
| tree | 99fc17c80cab2720d6e1a03d8922b4049e89a9fb | |
| parent | 8a6df4e6fd9a86467262a805be4f1541f46bddbc (diff) | |
| parent | 0642e293546f6f674e5d33f8fd0c82d664aebe60 (diff) | |
| download | pyramid-69bc36d90fc9b5326aeffedf4e671b691508d2e7.tar.gz pyramid-69bc36d90fc9b5326aeffedf4e671b691508d2e7.tar.bz2 pyramid-69bc36d90fc9b5326aeffedf4e671b691508d2e7.zip | |
Merge pull request #3486 from stevepiercy/master
Refactor base_version to branch_version.
| -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)", |
