Skip to content

Commit 6d28b74

Browse files
authored
release 0.2.37 (#694)
1 parent b798d72 commit 6d28b74

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

bump-release.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
import os
22
import sys
3-
from cid._version import __version__ as old_ver
43

4+
os.system('git checkout main')
5+
os.system('git pull')
6+
7+
from cid._version import __version__ as old_ver
58

69
bump='patch'
7-
if len(sys.argv)>1 :
10+
if len(sys.argv)>1:
811
bump = sys.argv[1]
912

1013
maj, minor, patch = map(int, old_ver.split('.'))
@@ -16,6 +19,8 @@
1619
else:
1720
raise NotImplementedError('only patch and minor are implemented')
1821

22+
os.system(f"git checkout -b 'release/{new_ver}'")
23+
1924

2025
tx = open('cid/_version.py').read()
2126
with open('cid/_version.py', "w") as f:
@@ -27,4 +32,5 @@
2732

2833

2934
os.system('git diff HEAD --unified=0')
30-
print('to undo:\n git checkout HEAD -- cfn-templates/cid-cfn.yml cid/_version.py')
35+
print('to undo:\n git checkout HEAD -- cfn-templates/cid-cfn.yml cid/_version.py')
36+
print(f"to continue:\n git commit -am 'release {new_ver}'; git push origin 'release/{new_ver}'")

cfn-templates/cid-cfn.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
AWSTemplateFormatVersion: '2010-09-09'
2-
Description: Deployment of Cloud Intelligence Dashboards v0.2.36
2+
Description: Deployment of Cloud Intelligence Dashboards v0.2.37
33
Metadata:
44
AWS::CloudFormation::Interface:
55
ParameterGroups:
@@ -1505,7 +1505,7 @@ Resources:
15051505
Description: An AWS managed layer with a cid-cmd package installed
15061506
Content:
15071507
S3Bucket: !Sub '${LambdaLayerBucketPrefix}-${AWS::Region}'
1508-
S3Key: 'cid-resource-lambda-layer/cid-0.2.36.zip' #replace version here if needed
1508+
S3Key: 'cid-resource-lambda-layer/cid-0.2.37.zip' #replace version here if needed
15091509
CompatibleRuntimes:
15101510
- python3.10
15111511

cid/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
__version__ = '0.2.36'
2+
__version__ = '0.2.37'

0 commit comments

Comments
 (0)