File tree Expand file tree Collapse file tree 7 files changed +12
-7
lines changed
Expand file tree Collapse file tree 7 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,16 @@ jobs:
4747 - name : Checkout
4848 uses : actions/checkout@v4
4949
50+ - name : Set OpenAPI Generator Version
51+ run : |
52+ OPENAPI_VERSION=$(jq .[\"generator-cli\"].version openapitools.json)
53+ echo "OPENAPI_GENERATOR_VERSION=$OPENAPI_VERSION" >> $GITHUB_ENV
54+ shell : bash
55+
5056 - name : Generate SDK with Updated Version
51575258 with :
53- openapi-generator-version : 7.7.0
59+ openapi-generator-version : ${{ env.OPENAPI_GENERATOR_VERSION }}
5460 language : python
5561 additional-properties : --additional-properties=packageVersion=$RELEASE_VERSION
5662
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ Bandwidth's Communication APIs
44This Python package is automatically generated by the [ OpenAPI Generator] ( https://openapi-generator.tech ) project:
55
66- API version: 1.0.0
7- - Package version: 1.0.0-dev
7+ - Package version: 1.0.0
88- Generator version: 7.7.0
99- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010For more information, please visit [ https://dev.bandwidth.com ] ( https://dev.bandwidth.com )
Original file line number Diff line number Diff line change 1515""" # noqa: E501
1616
1717
18- __version__ = "1.0.0-dev "
18+ __version__ = "1.0.0"
1919
2020# import apis into sdk package
2121from bandwidth .api .calls_api import CallsApi
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ def __init__(
8989 self .default_headers [header_name ] = header_value
9090 self .cookie = cookie
9191 # Set default User-Agent.
92- self .user_agent = 'OpenAPI-Generator/1.0.0-dev /python'
92+ self .user_agent = 'OpenAPI-Generator/1.0.0/python'
9393 self .client_side_validation = configuration .client_side_validation
9494
9595 def __enter__ (self ):
Original file line number Diff line number Diff line change @@ -409,7 +409,7 @@ def to_debug_report(self):
409409 "OS: {env}\n " \
410410 "Python Version: {pyversion}\n " \
411411 "Version of the API: 1.0.0\n " \
412- "SDK Package Version: 1.0.0-dev " .\
412+ "SDK Package Version: 1.0.0" .\
413413 format (env = sys .platform , pyversion = sys .version )
414414
415415 def get_host_settings (self ):
Original file line number Diff line number Diff line change 11projectName : bandwidth-sdk
22packageName : bandwidth
3- packageVersion : 15.0.0
43packageUrl : ' https://dev.bandwidth.com/sdks/python'
54disallowAdditionalPropertiesIfNotPresent : false
65templateDir : custom_templates
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " bandwidth"
3- version = " 1.0.0-dev "
3+ version = " 1.0.0"
44description = " Bandwidth"
55authors = [
" Bandwidth <[email protected] >" ]
66license = " NoLicense"
You can’t perform that action at this time.
0 commit comments