Modify github archive regex to support luaposix (#2677)
This commit is contained in:
parent
e340f275b8
commit
c3cd948537
@ -345,3 +345,8 @@ def test_yorick_version(self):
|
|||||||
self.check(
|
self.check(
|
||||||
'yorick', '2_2_04',
|
'yorick', '2_2_04',
|
||||||
'https://github.com/dhmunro/yorick/archive/y_2_2_04.tar.gz')
|
'https://github.com/dhmunro/yorick/archive/y_2_2_04.tar.gz')
|
||||||
|
|
||||||
|
def test_luaposix_version(self):
|
||||||
|
self.check(
|
||||||
|
'luaposix', '33.4.0',
|
||||||
|
'https://github.com/luaposix/luaposix/archive/release-v33.4.0.tar.gz')
|
||||||
|
@ -193,7 +193,7 @@ def parse_version_offset(path, debug=False):
|
|||||||
(r'github.com/[^/]+/yorick/archive/y_(\d+(?:_\d+)*)$', path),
|
(r'github.com/[^/]+/yorick/archive/y_(\d+(?:_\d+)*)$', path),
|
||||||
|
|
||||||
# e.g. https://github.com/hpc/lwgrp/archive/v1.0.1.tar.gz
|
# e.g. https://github.com/hpc/lwgrp/archive/v1.0.1.tar.gz
|
||||||
(r'github.com/[^/]+/[^/]+/archive/v?(\w+(?:[.-]\w+)*)$', path),
|
(r'github.com/[^/]+/[^/]+/archive/(?:release-)?v?(\w+(?:[.-]\w+)*)$', path), # noqa
|
||||||
|
|
||||||
# e.g. https://github.com/erlang/otp/tarball/OTP_R15B01 (erlang style)
|
# e.g. https://github.com/erlang/otp/tarball/OTP_R15B01 (erlang style)
|
||||||
(r'[-_](R\d+[AB]\d*(-\d+)?)', path),
|
(r'[-_](R\d+[AB]\d*(-\d+)?)', path),
|
||||||
|
Loading…
Reference in New Issue
Block a user