-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the broken release links to include the v [ci skip]
Our tag names start with v, but the default for releases is to not use a v.
- Loading branch information
1 parent
8cb0849
commit 0c726f0
Showing
2 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
""" | ||
Workaround for https://github.com/bitprophet/releases/issues/65 | ||
This has to be in its own file, as for some reason classes in conf.py cannot | ||
be pickled. | ||
""" | ||
|
||
class release_uri: | ||
def __init__(self, releases_github_path): | ||
self._path = releases_github_path | ||
|
||
def __mod__(self, release): | ||
if release.isdigit(): | ||
release = "v" + release | ||
return 'https://github.com/%s/tree/%s' % (self._path, release) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters