Skip to content
Snippets Groups Projects
Commit 8f950d5a authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Allow documentation finding to link against specific manual versions if possible

parent 2a94f5c9
Branches
Tags v2.0.13
1 merge request!44Allow documentation finding to link against specific manual versions if possible
Pipeline #
......@@ -526,7 +526,12 @@ def link_documentation(additional_packages = ['python', 'numpy'], requirements_f
for s in server:
# generate URL
url = s % p.split()[0]
package_name = p.split()[0]
if s.count('%s') == 1: #old style
url = s % package_name
else: #use new style, with mapping, try to link against specific version
version = pkg_resources.require(package_name)[0].version
url = s % {'name': package_name, 'version': version}
try:
# otherwise, urlopen will fail
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment