Support Yorick versions (#2640)

This commit is contained in:
Todd Gamblin 2016-12-19 14:55:23 -08:00 committed by GitHub
parent d306893d83
commit c89de04f40
2 changed files with 9 additions and 0 deletions

View File

@ -340,3 +340,8 @@ def test_nco_version(self):
self.check(
'nco', '4.6.3-alpha04',
'https://github.com/nco/nco/archive/4.6.3-alpha04.tar.gz')
def test_yorick_version(self):
self.check(
'yorick', '2_2_04',
'https://github.com/dhmunro/yorick/archive/y_2_2_04.tar.gz')

View File

@ -188,6 +188,10 @@ def parse_version_offset(path, debug=False):
# e.g. https://github.com/petdance/ack/tarball/1.93_02
(r'github.com/.+/(?:zip|tar)ball/v?((\d+\.)+\d+_(\d+))$', path),
# Yorick is very special.
# e.g. https://github.com/dhmunro/yorick/archive/y_2_2_04.tar.gz
(r'github.com/[^/]+/yorick/archive/y_(\d+(?:_\d+)*)$', path),
# e.g. https://github.com/hpc/lwgrp/archive/v1.0.1.tar.gz
(r'github.com/[^/]+/[^/]+/archive/v?(\w+(?:[.-]\w+)*)$', path),