File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,14 +28,15 @@ def get_version_info():
2828 return version_info
2929
3030
31- def long_description (version ):
31+ def long_description (release ):
3232 with open ('README.rst' ) as f :
3333 contents = f .read ()
3434 # For a released version, we want the description to link to the
3535 # corresponding docs rather than the docs for master.
36+ tag = 'v{}' .format (release )
3637 contents = contents .replace (
3738 'refcycle.readthedocs.org/en/latest' ,
38- 'refcycle.readthedocs.org /en/maintenance-v {}' .format (version ),
39+ 'refcycle.readthedocs.io /en/{}' .format (tag ),
3940 )
4041 return contents
4142
@@ -50,7 +51,7 @@ def long_description(version):
5051 url = PROJECT_URL ,
5152 license = "Apache license" ,
5253 description = "Find and visualise reference cycles between Python objects." ,
53- long_description = long_description (version_info ['version ' ]),
54+ long_description = long_description (version_info ['release ' ]),
5455 install_requires = ["six" ],
5556 packages = find_packages (),
5657 classifiers = [
You can’t perform that action at this time.
0 commit comments