File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ general:
2424
2525deployment :
2626 release :
27+ # See "scripts/circleci_tagged_pkg.py" for info on REGEX
2728 tag : /(([a-z]+)-)*([0-9]+)\.([0-9]+)\.([0-9]+)/
2829 owner : GoogleCloudPlatform
2930 commands :
Original file line number Diff line number Diff line change 2424import sys
2525
2626
27- RE_TXT = r'^(?P<pkg>(([a-z]+)-)*)([0-9]+)\.([0-9]+)\.([0-9]+)$'
28- TAG_RE = re .compile (RE_TXT )
27+ TAG_RE = re .compile (r"""
28+ ^
29+ (?P<pkg>
30+ (([a-z]+)-)*) # pkg-name-with-hyphens- (empty allowed)
31+ ([0-9]+)\.([0-9]+)\.([0-9]+) # Version x.y.z (x, y, z all ints)
32+ $
33+ """ , re .VERBOSE )
2934TAG_ENV = 'CIRCLE_TAG'
3035ERROR_MSG = '%s env. var. not set' % (TAG_ENV ,)
31- BAD_TAG_MSG = 'Invalid tag name: %s. Expected ' + RE_TXT
36+ BAD_TAG_MSG = 'Invalid tag name: %s. Expected pkg-name-x.y.z'
3237_SCRIPTS_DIR = os .path .dirname (__file__ )
3338ROOT_DIR = os .path .abspath (os .path .join (_SCRIPTS_DIR , '..' ))
3439
You can’t perform that action at this time.
0 commit comments