From aa40aa966325403d7a64df2b7d4b2886c62876c6 Mon Sep 17 00:00:00 2001 From: Artem Ustinov Date: Wed, 20 Sep 2023 16:23:55 -0700 Subject: [PATCH] Prepare Release v2.202.2 Prepare Release and Upgrade to Trusted Publishers. --- .github/workflows/publish_on_merge.yml | 4 +++- .github/workflows/publish_on_release.yml | 5 +++-- .swagger-codegen/config.jsone | 2 +- README.md | 2 +- setup.py | 2 +- wavefront_api_client/api_client.py | 2 +- wavefront_api_client/configuration.py | 2 +- 7 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish_on_merge.yml b/.github/workflows/publish_on_merge.yml index 2314d55..9c8c6e8 100644 --- a/.github/workflows/publish_on_merge.yml +++ b/.github/workflows/publish_on_merge.yml @@ -9,12 +9,14 @@ jobs: prepare: uses: ./.github/workflows/package.yml publish: + environment: test needs: prepare + permissions: + id-token: write runs-on: ubuntu-latest steps: - uses: actions/download-artifact@v3 - name: Publish the Package on TestPyPI uses: pypa/gh-action-pypi-publish@release/v1 with: - password: ${{ secrets.TEST_PYPI_API_TOKEN }} repository-url: https://test.pypi.org/legacy/ diff --git a/.github/workflows/publish_on_release.yml b/.github/workflows/publish_on_release.yml index 091c46e..64ba146 100644 --- a/.github/workflows/publish_on_release.yml +++ b/.github/workflows/publish_on_release.yml @@ -9,12 +9,13 @@ jobs: prepare: uses: ./.github/workflows/package.yml publish: + environment: release needs: prepare + permissions: + id-token: write runs-on: ubuntu-latest steps: - uses: actions/download-artifact@v3 - name: Publish the Package if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@release/v1 - with: - password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.swagger-codegen/config.jsone b/.swagger-codegen/config.jsone index ef5cf88..9d1014b 100644 --- a/.swagger-codegen/config.jsone +++ b/.swagger-codegen/config.jsone @@ -3,5 +3,5 @@ "gitUserId": "wavefrontHQ", "packageName": "wavefront_api_client", "packageUrl": "https://github.com/wavefrontHQ/python-client", - "packageVersion": "2.202.2" + "packageVersion": "2.201.1" } diff --git a/README.md b/README.md index 7bff20f..9b24411 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: v2 -- Package version: 2.202.0 +- Package version: 2.202.2 - Build package: io.swagger.codegen.languages.PythonClientCodegen ## Requirements. diff --git a/setup.py b/setup.py index 434f924..399bde7 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "wavefront-api-client" -VERSION = "2.202.0" +VERSION = "2.202.2" # To install the library, run the following # # python setup.py install diff --git a/wavefront_api_client/api_client.py b/wavefront_api_client/api_client.py index e9685a7..fc081fc 100644 --- a/wavefront_api_client/api_client.py +++ b/wavefront_api_client/api_client.py @@ -74,7 +74,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/2.202.0/python' + self.user_agent = 'Swagger-Codegen/2.202.2/python' self.client_side_validation = configuration.client_side_validation def __del__(self): diff --git a/wavefront_api_client/configuration.py b/wavefront_api_client/configuration.py index d1d9cbc..e1912da 100644 --- a/wavefront_api_client/configuration.py +++ b/wavefront_api_client/configuration.py @@ -251,5 +251,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v2\n"\ - "SDK Package Version: 2.202.0".\ + "SDK Package Version: 2.202.2".\ format(env=sys.platform, pyversion=sys.version)