Skip to content

Commit

Permalink
build: bump python core (#40)
Browse files Browse the repository at this point in the history
* feat(toolchain): add eu-es region

Signed-off-by: Omar Al Bastami <omar.albastami@ibm.com>

* fix: lint

Signed-off-by: Omar Al Bastami <omar.albastami@ibm.com>

* fix: replace double quotes with single quotes in version

Signed-off-by: Omar Al Bastami <omar.albastami@ibm.com>

* fix: exclude version.py from linter to avoid deployment errors

Signed-off-by: Omar Al Bastami <omar.albastami@ibm.com>

* build: bump python core

Signed-off-by: Omar Al Bastami <omar.albastami@ibm.com>

* fix: resolve conflict

Signed-off-by: Omar Al Bastami <omar.albastami@ibm.com>

* fix: lint fixes

Signed-off-by: Omar Al Bastami <omar.albastami@ibm.com>

* build: bump python core

Signed-off-by: Omar Al Bastami <omar.albastami@ibm.com>

* fix formatting

Signed-off-by: Omar Al Bastami <omar.albastami@ibm.com>

* fix travis badge

Signed-off-by: Omar Al Bastami <omar.albastami@ibm.com>

---------

Signed-off-by: Omar Al Bastami <omar.albastami@ibm.com>
Co-authored-by: Omar Al Bastami <omar.albastami@ibm.com>
  • Loading branch information
omar-albastami and Omar Al Bastami authored Feb 27, 2024
1 parent a1b2f9d commit 6d6af08
Show file tree
Hide file tree
Showing 7 changed files with 162 additions and 162 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.com/IBM/continuous-delivery-python-sdk.svg?branch=main)](https://travis.ibm.com/IBM/continuous-delivery-python-sdk)
[![Build Status](https://app.travis-ci.com/IBM/continuous-delivery-python-sdk.svg?branch=main)](https://app.travis-ci.com/github/IBM/continuous-delivery-python-sdk)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/ibm-continuous-delivery)](https://pypi.org/project/ibm-continuous-delivery/)
[![Latest Stable Version](https://img.shields.io/pypi/v/ibm-continuous-delivery.svg)](https://pypi.python.org/pypi/ibm-continuous-delivery)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
Expand All @@ -24,7 +24,7 @@ The current minimum Python version supported is 3.8.

<!-- toc -->

- [IBM Cloud Continuous Delivery Python SDK v1.5.0](#ibm-cloud-continuous-delivery-python-sdk-v131)
- [IBM Cloud Continuous Delivery Python SDK v1.5.0](#ibm-cloud-continuous-delivery-python-sdk-v150)
- [Python Version](#python-version)
- [Table of Contents](#table-of-contents)
- [Overview](#overview)
Expand Down
8 changes: 4 additions & 4 deletions ibm_continuous_delivery/cd_toolchain_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1742,10 +1742,10 @@ def from_dict(cls, _dict: Dict) -> "ToolchainEventPrototypeData":
"""Initialize a ToolchainEventPrototypeData object from a json dictionary."""
args = {}
if "application_json" in _dict:
args[
"application_json"
] = ToolchainEventPrototypeDataApplicationJson.from_dict(
_dict.get("application_json")
args["application_json"] = (
ToolchainEventPrototypeDataApplicationJson.from_dict(
_dict.get("application_json")
)
)
if "text_plain" in _dict:
args["text_plain"] = _dict.get("text_plain")
Expand Down
2 changes: 1 addition & 1 deletion ibm_continuous_delivery/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
"""
Version of ibm_continuous_delivery
"""
__version__ = '1.5.0'
__version__ = '1.5.0'
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ pylint>=3.0.0,<4.0.0
pytest>=7.4.2,<8.0.0
pytest-cov>=4.1.0,<5.0.0
responses>=0.23.3,<1.0.0
black>=23.9.1
black>=24.0.0,<25.0.0
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ibm_cloud_sdk_core>=3.18.1,<4.0.0
ibm_cloud_sdk_core>=3.19.1,<4.0.0
72 changes: 36 additions & 36 deletions test/unit/test_cd_tekton_pipeline_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1747,9 +1747,9 @@ def test_create_tekton_pipeline_definition_all_params(self):

# Construct a dict representation of a DefinitionSourceProperties model
definition_source_properties_model = {}
definition_source_properties_model[
"url"
] = "https://github.com/open-toolchain/hello-tekton.git"
definition_source_properties_model["url"] = (
"https://github.com/open-toolchain/hello-tekton.git"
)
definition_source_properties_model["branch"] = "master"
definition_source_properties_model["tag"] = "testString"
definition_source_properties_model["path"] = ".tekton"
Expand Down Expand Up @@ -1811,9 +1811,9 @@ def test_create_tekton_pipeline_definition_value_error(self):

# Construct a dict representation of a DefinitionSourceProperties model
definition_source_properties_model = {}
definition_source_properties_model[
"url"
] = "https://github.com/open-toolchain/hello-tekton.git"
definition_source_properties_model["url"] = (
"https://github.com/open-toolchain/hello-tekton.git"
)
definition_source_properties_model["branch"] = "master"
definition_source_properties_model["tag"] = "testString"
definition_source_properties_model["path"] = ".tekton"
Expand Down Expand Up @@ -2982,9 +2982,9 @@ def test_create_tekton_pipeline_trigger_all_params(self):
# Construct a dict representation of a TriggerSourcePrototype model
trigger_source_prototype_model = {}
trigger_source_prototype_model["type"] = "testString"
trigger_source_prototype_model[
"properties"
] = trigger_source_properties_prototype_model
trigger_source_prototype_model["properties"] = (
trigger_source_properties_prototype_model
)

# Set up parameter values
pipeline_id = "94619026-912b-4d92-8f51-6c74f0692d90"
Expand Down Expand Up @@ -3088,9 +3088,9 @@ def test_create_tekton_pipeline_trigger_value_error(self):
# Construct a dict representation of a TriggerSourcePrototype model
trigger_source_prototype_model = {}
trigger_source_prototype_model["type"] = "testString"
trigger_source_prototype_model[
"properties"
] = trigger_source_properties_prototype_model
trigger_source_prototype_model["properties"] = (
trigger_source_properties_prototype_model
)

# Set up parameter values
pipeline_id = "94619026-912b-4d92-8f51-6c74f0692d90"
Expand Down Expand Up @@ -3269,9 +3269,9 @@ def test_update_tekton_pipeline_trigger_all_params(self):
# Construct a dict representation of a TriggerSourcePrototype model
trigger_source_prototype_model = {}
trigger_source_prototype_model["type"] = "testString"
trigger_source_prototype_model[
"properties"
] = trigger_source_properties_prototype_model
trigger_source_prototype_model["properties"] = (
trigger_source_properties_prototype_model
)

# Construct a dict representation of a TriggerPatch model
trigger_patch_model = {}
Expand All @@ -3284,9 +3284,9 @@ def test_update_tekton_pipeline_trigger_all_params(self):
trigger_patch_model["enabled"] = True
trigger_patch_model["secret"] = generic_secret_model
trigger_patch_model["cron"] = "testString"
trigger_patch_model[
"timezone"
] = "America/Los_Angeles, CET, Europe/London, GMT, US/Eastern, or UTC"
trigger_patch_model["timezone"] = (
"America/Los_Angeles, CET, Europe/London, GMT, US/Eastern, or UTC"
)
trigger_patch_model["source"] = trigger_source_prototype_model
trigger_patch_model["events"] = ["push", "pull_request"]
trigger_patch_model["favorite"] = False
Expand Down Expand Up @@ -5148,9 +5148,9 @@ def test_tekton_pipeline_serialization(self):

toolchain_reference_model = {} # ToolchainReference
toolchain_reference_model["id"] = "testString"
toolchain_reference_model[
"crn"
] = "crn:v1:staging:public:toolchain:us-south:a/0ba224679d6c697f9baee5e14ade83ac:bf5fa00f-ddef-4298-b87b-aa8b6da0e1a6::"
toolchain_reference_model["crn"] = (
"crn:v1:staging:public:toolchain:us-south:a/0ba224679d6c697f9baee5e14ade83ac:bf5fa00f-ddef-4298-b87b-aa8b6da0e1a6::"
)

tool_model = {} # Tool
tool_model["id"] = "testString"
Expand Down Expand Up @@ -5331,9 +5331,9 @@ def test_toolchain_reference_serialization(self):
# Construct a json representation of a ToolchainReference model
toolchain_reference_model_json = {}
toolchain_reference_model_json["id"] = "testString"
toolchain_reference_model_json[
"crn"
] = "crn:v1:staging:public:toolchain:us-south:a/0ba224679d6c697f9baee5e14ade83ac:bf5fa00f-ddef-4298-b87b-aa8b6da0e1a6::"
toolchain_reference_model_json["crn"] = (
"crn:v1:staging:public:toolchain:us-south:a/0ba224679d6c697f9baee5e14ade83ac:bf5fa00f-ddef-4298-b87b-aa8b6da0e1a6::"
)

# Construct a model instance of ToolchainReference by calling from_dict on the json representation
toolchain_reference_model = ToolchainReference.from_dict(
Expand Down Expand Up @@ -5388,9 +5388,9 @@ def test_trigger_patch_serialization(self):

trigger_source_prototype_model = {} # TriggerSourcePrototype
trigger_source_prototype_model["type"] = "testString"
trigger_source_prototype_model[
"properties"
] = trigger_source_properties_prototype_model
trigger_source_prototype_model["properties"] = (
trigger_source_properties_prototype_model
)

# Construct a json representation of a TriggerPatch model
trigger_patch_model_json = {}
Expand All @@ -5403,9 +5403,9 @@ def test_trigger_patch_serialization(self):
trigger_patch_model_json["enabled"] = True
trigger_patch_model_json["secret"] = generic_secret_model
trigger_patch_model_json["cron"] = "testString"
trigger_patch_model_json[
"timezone"
] = "America/Los_Angeles, CET, Europe/London, GMT, US/Eastern, or UTC"
trigger_patch_model_json["timezone"] = (
"America/Los_Angeles, CET, Europe/London, GMT, US/Eastern, or UTC"
)
trigger_patch_model_json["source"] = trigger_source_prototype_model
trigger_patch_model_json["events"] = ["push", "pull_request"]
trigger_patch_model_json["favorite"] = False
Expand Down Expand Up @@ -5691,9 +5691,9 @@ def test_trigger_source_prototype_serialization(self):
# Construct a json representation of a TriggerSourcePrototype model
trigger_source_prototype_model_json = {}
trigger_source_prototype_model_json["type"] = "testString"
trigger_source_prototype_model_json[
"properties"
] = trigger_source_properties_prototype_model
trigger_source_prototype_model_json["properties"] = (
trigger_source_properties_prototype_model
)

# Construct a model instance of TriggerSourcePrototype by calling from_dict on the json representation
trigger_source_prototype_model = TriggerSourcePrototype.from_dict(
Expand Down Expand Up @@ -6124,9 +6124,9 @@ def test_trigger_timer_trigger_serialization(self):
trigger_timer_trigger_model_json["enabled"] = True
trigger_timer_trigger_model_json["favorite"] = False
trigger_timer_trigger_model_json["cron"] = "testString"
trigger_timer_trigger_model_json[
"timezone"
] = "America/Los_Angeles, CET, Europe/London, GMT, US/Eastern, or UTC"
trigger_timer_trigger_model_json["timezone"] = (
"America/Los_Angeles, CET, Europe/London, GMT, US/Eastern, or UTC"
)

# Construct a model instance of TriggerTimerTrigger by calling from_dict on the json representation
trigger_timer_trigger_model = TriggerTimerTrigger.from_dict(
Expand Down
Loading

0 comments on commit 6d6af08

Please sign in to comment.