diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5109f01..6aa6ca0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,9 +3,15 @@ on: release: types: [created] +permissions: + id-token: write # Required for OIDC + deployments: write + contents: read + jobs: publish: name: Publish + environment: production runs-on: ubuntu-latest env: TARGET_URL: https://pypi.org/project/patch-api/ @@ -49,9 +55,6 @@ jobs: - name: Publish a Python distribution to PyPI uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} - name: Update deployment status (success) if: success() diff --git a/patch_api/__init__.py b/patch_api/__init__.py index 3e39257..b14fa49 100644 --- a/patch_api/__init__.py +++ b/patch_api/__init__.py @@ -15,7 +15,7 @@ from __future__ import absolute_import -__version__ = "2.6.0" +__version__ = "2.6.1" # import ApiClient from patch_api.api_client import ApiClient diff --git a/patch_api/api_client.py b/patch_api/api_client.py index da24558..0413f67 100644 --- a/patch_api/api_client.py +++ b/patch_api/api_client.py @@ -91,7 +91,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = "patch-python/2.6.0" + self.user_agent = "patch-python/2.6.1" # Set default Patch-Version self.patch_version = 2 diff --git a/patch_api/configuration.py b/patch_api/configuration.py index b3a2058..01196bd 100644 --- a/patch_api/configuration.py +++ b/patch_api/configuration.py @@ -341,7 +341,7 @@ def to_debug_report(self): "OS: {env}\n" "Python Version: {pyversion}\n" "Version of the API: 2\n" - "SDK Package Version: 2.6.0".format(env=sys.platform, pyversion=sys.version) + "SDK Package Version: 2.6.1".format(env=sys.platform, pyversion=sys.version) ) def get_host_settings(self): diff --git a/setup.py b/setup.py index 47cb181..a08c1a0 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "patch-api" -VERSION = "2.6.0" +VERSION = "2.6.1" # To install the library, run the following # # python setup.py install