Support Yorick versions (#2640)
This commit is contained in:
parent
d306893d83
commit
c89de04f40
@ -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')
|
||||
|
@ -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),
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user