Skip to content

Commit ede44f4

Browse files
authored
Merge pull request #7 from cloudify-incubator/0.1.1-build
0.1.1 build
2 parents 6dd6ad5 + 749917b commit ede44f4

File tree

7 files changed

+17
-41
lines changed

7 files changed

+17
-41
lines changed

.circleci/config.yml

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
version: 2.1
22

33
orbs:
4-
node: cloudify/public-unittest-orb@1 #orb version
5-
wagonorb: cloudify/wagon-bulder-orb@2.5 #orb version
6-
releaseorb: cloudify/release-orb@1.4 #orb version
7-
managerorb: cloudify/manager-orb@2.0
4+
node: cloudify/public-unittest-orb@volatile #orb version
5+
wagonorb: cloudify/wagon-bulder-orb@volatile #orb version
6+
releaseorb: cloudify/release-orb@volatile #orb version
7+
managerorb: cloudify/manager-orb@volatile
88

99
checkout:
1010
post:
@@ -67,20 +67,11 @@ workflows:
6767
filters:
6868
branches:
6969
only: /([0-9\.]*\-build|master)/
70-
- wagonorb/build_bundle:
71-
filters:
72-
branches:
73-
only: /([0-9\.]*\-build|master)/
74-
requires:
75-
- wagonorb/wagon
76-
- wagonorb/arch64_wagon
77-
- wagonorb/rhel_wagon
7870
- integration_tests_py3:
7971
requires:
8072
- wagonorb/wagon
8173
- wagonorb/arch64_wagon
8274
- wagonorb/rhel_wagon
83-
- wagonorb/build_bundle
8475
filters:
8576
branches:
8677
only: /([0-9\.]*\-build|master)/
@@ -92,7 +83,6 @@ workflows:
9283
- wagonorb/wagon
9384
- wagonorb/arch64_wagon
9485
- wagonorb/rhel_wagon
95-
- wagonorb/build_bundle
9686
- node/validate_version_job
9787
- node/validate_documentation_job
9888
- integration_tests_py3
@@ -127,17 +117,8 @@ workflows:
127117
filters:
128118
branches:
129119
only: /([0-9\.]*\-build|master)/
130-
- wagonorb/build_bundle:
131-
filters:
132-
branches:
133-
only: /master/
134-
requires:
135-
- wagonorb/wagon
136-
- wagonorb/arch64_wagon
137-
- wagonorb/rhel_wagon
138120
- integration_tests_py3:
139121
requires:
140-
- wagonorb/build_bundle
141122
- wagonorb/wagon
142123
- wagonorb/arch64_wagon
143124
- wagonorb/rhel_wagon

CHANGELOG.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
0.0.1: POC
22
0.1.0: Productized release.
3+
0.1.1: add __version__.py file

plugin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins:
33
sl:
44
executor: central_deployment_agent
55
package_name: cloudify-serverless-plugin
6-
package_version: '0.1.0'
6+
package_version: '0.1.1'
77

88
data_types:
99

plugin_1_4.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins:
33
sl:
44
executor: central_deployment_agent
55
package_name: cloudify-serverless-plugin
6-
package_version: '0.1.0'
6+
package_version: '0.1.1'
77

88
data_types:
99

serverless_plugin/__version__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
version = '0.1.1'

setup.py

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,20 @@
1515

1616

1717
import os
18+
import re
19+
import pathlib
1820
from setuptools import (
1921
setup,
2022
find_packages
2123
)
2224

2325

24-
def read(rel_path):
25-
here = os.path.abspath(os.path.dirname(__file__))
26-
with open(os.path.join(here, rel_path), 'r') as fp:
27-
return fp.read()
28-
29-
30-
def get_version(rel_file='plugin.yaml'):
31-
lines = read(rel_file)
32-
for line in lines.splitlines():
33-
if 'package_version' in line:
34-
split_line = line.split(':')
35-
line_no_space = split_line[-1].replace(' ', '')
36-
line_no_quotes = line_no_space.replace('\'', '')
37-
return line_no_quotes.strip('\n')
38-
raise RuntimeError('Unable to find version string.')
26+
def get_version():
27+
current_dir = pathlib.Path(__file__).parent.resolve()
28+
with open(os.path.join(current_dir, 'serverless_plugin/__version__.py'),
29+
'r') as outfile:
30+
var = outfile.read()
31+
return re.search(r'\d+.\d+.\d+', var).group()
3932

4033

4134
setup(

v2_plugin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins:
33
sl:
44
executor: central_deployment_agent
55
package_name: cloudify-serverless-plugin
6-
package_version: '0.1.0'
6+
package_version: '0.1.1'
77

88
data_types:
99

0 commit comments

Comments
 (0)