From 93bf25c5ffc6cf8e104344049961604cfebb8900 Mon Sep 17 00:00:00 2001 From: Paul Cothenet Date: Fri, 7 Nov 2025 22:03:09 -0800 Subject: [PATCH 1/2] Use trusted publisher --- .github/workflows/publish.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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() From cdc27592854f830fb82d2ab0dda6a6e190cc4d15 Mon Sep 17 00:00:00 2001 From: Paul Cothenet Date: Fri, 7 Nov 2025 22:05:03 -0800 Subject: [PATCH 2/2] Bump version --- patch_api/__init__.py | 2 +- patch_api/api_client.py | 2 +- patch_api/configuration.py | 2 +- setup.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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