Skip to content

Commit 71386a8

Browse files
authored
fix(release): fix the semantic release and set the base version and lint fix (#69)
Signed-off-by: Deepak Selvakumar <[email protected]>
1 parent f7729e2 commit 71386a8

File tree

9 files changed

+31855
-11564
lines changed

9 files changed

+31855
-11564
lines changed

examples/test_vpc_v1_examples.py

Lines changed: 541 additions & 674 deletions
Large diffs are not rendered by default.

ibm_vpc/common.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,23 @@
2626
HEADER_NAME_USER_AGENT = 'User-Agent'
2727
SDK_NAME = 'vpc-python-sdk'
2828

29+
2930
def get_system_info():
3031
"""
3132
Get information about the system to be inserted into the User-Agent header.
3233
"""
33-
return 'lang={0}; arch={1}; os={2}; python.version={3}'.format('python',
34-
platform.machine(), # Architecture
35-
platform.system(), # OS
36-
platform.python_version()) # Python version
34+
return 'lang={0}; arch={1}; os={2}; python.version={3}'.format(
35+
'python', platform.machine(), platform.system(), platform.python_version() # Architecture # OS
36+
) # Python version
37+
3738

3839
def get_x_request_id():
3940
"""
4041
Get the value to be sent in the X-Request-Id header.
4142
"""
4243
return str(uuid.uuid4())
4344

45+
4446
def get_user_agent():
4547
"""
4648
Get the value to be sent in the User-Agent header.

ibm_vpc/version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""
22
Version of vpc
33
"""
4+
45
__version__ = '0.25.0'

ibm_vpc/vpc_v1.py

Lines changed: 6098 additions & 2600 deletions
Large diffs are not rendered by default.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "ibm-vpc"
3-
version = "0.0.1"
3+
version = "0.25.0"
44
authors = [
55
{ name="IBM", email="[email protected]" }
66
]

test/integration/conftest.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,31 +21,32 @@
2121
# Read config file
2222
configFile = 'vpc.env'
2323

24+
2425
def loadConfigFile():
2526
if os.path.exists(configFile):
2627
os.environ['IBM_CREDENTIALS_FILE'] = configFile
2728
else:
2829
pytest.skip('External configuration not available, skipping...')
2930

31+
3032
@pytest.fixture(scope="session")
3133
def createGen2Service():
3234
loadConfigFile()
3335
service = VpcV1.new_instance()
34-
headers = {
35-
'Accept': 'application/json'
36-
}
36+
headers = {'Accept': 'application/json'}
3737
service.set_default_headers(headers)
3838
print('Setup complete.')
3939
return service
4040

41+
4142
def pytest_addoption(parser):
4243
parser.addoption("--env", action="store", help="Run test on dev environment")
4344

45+
4446
@pytest.fixture()
4547
def env(request):
4648
val = request.config.getoption("--env")
4749
if val == 'true':
4850
print('Test on dev env -', val)
4951
return True
5052
return False
51-

0 commit comments

Comments
 (0)