diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3b4e9a1b..7f3523f5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -47,10 +47,16 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Set OpenAPI Generator Version + run: | + OPENAPI_VERSION=$(jq .[\"generator-cli\"].version openapitools.json) + echo "OPENAPI_GENERATOR_VERSION=$OPENAPI_VERSION" >> $GITHUB_ENV + shell: bash + - name: Generate SDK with Updated Version uses: Bandwidth/generate-sdk-action@v4.0.0 with: - openapi-generator-version: 7.7.0 + openapi-generator-version: ${{ env.OPENAPI_GENERATOR_VERSION }} language: python additional-properties: --additional-properties=packageVersion=$RELEASE_VERSION diff --git a/README.md b/README.md index e51dac5c..86061ad4 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Bandwidth's Communication APIs This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 1.0.0 -- Package version: 1.0.0-dev +- Package version: 1.0.0 - Generator version: 7.7.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://dev.bandwidth.com](https://dev.bandwidth.com) diff --git a/bandwidth/__init__.py b/bandwidth/__init__.py index fd36416d..6ad4b33f 100644 --- a/bandwidth/__init__.py +++ b/bandwidth/__init__.py @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "1.0.0-dev" +__version__ = "1.0.0" # import apis into sdk package from bandwidth.api.calls_api import CallsApi diff --git a/bandwidth/api_client.py b/bandwidth/api_client.py index e7adb6db..dc19cc58 100644 --- a/bandwidth/api_client.py +++ b/bandwidth/api_client.py @@ -89,7 +89,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.0.0-dev/python' + self.user_agent = 'OpenAPI-Generator/1.0.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/bandwidth/configuration.py b/bandwidth/configuration.py index 07a20412..3c835433 100644 --- a/bandwidth/configuration.py +++ b/bandwidth/configuration.py @@ -409,7 +409,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 1.0.0\n"\ - "SDK Package Version: 1.0.0-dev".\ + "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/openapi-config.yml b/openapi-config.yml index e856b860..c8cebd92 100644 --- a/openapi-config.yml +++ b/openapi-config.yml @@ -1,6 +1,5 @@ projectName: bandwidth-sdk packageName: bandwidth -packageVersion: 15.0.0 packageUrl: 'https://dev.bandwidth.com/sdks/python' disallowAdditionalPropertiesIfNotPresent: false templateDir: custom_templates diff --git a/pyproject.toml b/pyproject.toml index d4c04d59..f3b4ac0b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "bandwidth" -version = "1.0.0-dev" +version = "1.0.0" description = "Bandwidth" authors = ["Bandwidth "] license = "NoLicense"