From 2ebda2211decb0a5b6cf241bb4d4229bbfdb2874 Mon Sep 17 00:00:00 2001 From: Ivan Kamkin <234-Ivan.Kamkin@users.noreply.git.saltov.dynabic.com> Date: Tue, 24 Jun 2025 13:16:14 +0500 Subject: [PATCH 1/3] Version updated --- README.md | 2 +- aspose_barcode_cloud/api_client.py | 4 ++-- aspose_barcode_cloud/configuration.py | 2 +- setup.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7a51c41..ce0af34 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [![PyPI](https://img.shields.io/pypi/v/aspose-barcode-cloud)](https://pypi.org/project/aspose-barcode-cloud/) - API version: 4.0 -- Package version: 25.5.0 +- Package version: 25.6.0 ## SDK and API Version Compatibility: diff --git a/aspose_barcode_cloud/api_client.py b/aspose_barcode_cloud/api_client.py index 400603b..8823962 100644 --- a/aspose_barcode_cloud/api_client.py +++ b/aspose_barcode_cloud/api_client.py @@ -60,13 +60,13 @@ def __init__(self, configuration=None, header_name=None, header_value=None, cook self.rest_client = RESTClientObject(configuration) self.default_headers = { "x-aspose-client": "python sdk", - "x-aspose-client-version": "25.5.0", + "x-aspose-client-version": "25.6.0", } if header_name is not None: self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = "Aspose-Barcode-SDK/25.5.0/python" + self.user_agent = "Aspose-Barcode-SDK/25.6.0/python" def __del__(self): self.rest_client.close() diff --git a/aspose_barcode_cloud/configuration.py b/aspose_barcode_cloud/configuration.py index 6a1c536..e4cb0d8 100644 --- a/aspose_barcode_cloud/configuration.py +++ b/aspose_barcode_cloud/configuration.py @@ -258,7 +258,7 @@ def to_debug_report(self): "OS: {env}\n" "Python Version: {pyversion}\n" "Version of the API: 4.0\n" - "SDK Package Version: 25.5.0".format(env=sys.platform, pyversion=sys.version) + "SDK Package Version: 25.6.0".format(env=sys.platform, pyversion=sys.version) ) @staticmethod diff --git a/setup.py b/setup.py index c72ccc7..ca16bac 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ from setuptools import setup, find_packages NAME = "aspose-barcode-cloud" -VERSION = "25.5.0" +VERSION = "25.6.0" # To install the library, run the following # # python setup.py install From 3b9f30cda2ac0342e81381e80ca78032babee1a8 Mon Sep 17 00:00:00 2001 From: Ivan Kamkin <234-Ivan.Kamkin@users.noreply.git.saltov.dynabic.com> Date: Tue, 24 Jun 2025 13:45:22 +0500 Subject: [PATCH 2/3] Temporarily pin python 3.12.10 version cause 3.12.11 is not presented in macOs and Windows --- .github/workflows/python-latest.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-latest.yml b/.github/workflows/python-latest.yml index 90677ae..9cd4202 100644 --- a/.github/workflows/python-latest.yml +++ b/.github/workflows/python-latest.yml @@ -24,7 +24,8 @@ jobs: strategy: matrix: operating-system: [ ubuntu-latest, windows-latest, macOS-latest ] - python-version: ${{ fromJson(needs.get-python-versions.outputs.python-matrix) }} + # python-version: ${{ fromJson(needs.get-python-versions.outputs.python-matrix) }} + python-version: [3.13.5, 3.12.10] continue-on-error: true From 17f1fe6610573eb7e07280206eaaa41b982ceaf1 Mon Sep 17 00:00:00 2001 From: Denis Averin Date: Tue, 24 Jun 2025 18:33:17 +0700 Subject: [PATCH 3/3] Fixing Python versions in GH action --- .github/workflows/python-latest.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-latest.yml b/.github/workflows/python-latest.yml index 9cd4202..4277c97 100644 --- a/.github/workflows/python-latest.yml +++ b/.github/workflows/python-latest.yml @@ -7,26 +7,36 @@ on: branches: [ main ] jobs: - # Define the job to run before your matrix job + # Collect available Python versions get-python-versions: runs-on: ubuntu-latest outputs: - python-matrix: ${{ steps.get-python-versions-action.outputs.latest-python-versions }} + python-matrix: ${{ steps.trim.outputs.matrix }} steps: - uses: snok/latest-python-versions@v1 id: get-python-versions-action with: min-version: '3.12' + # keep only major.minor and remove duplicates + - name: Keep only major.minor + id: trim + shell: bash + run: | + versions='${{ steps.get-python-versions-action.outputs.latest-python-versions }}' + # → ["3.13.5","3.12.11", ...] + matrix=$(echo "$versions" \ + | jq -c 'map(split(".")[:2] | join(".")) | unique') + echo "matrix=$matrix" >> "$GITHUB_OUTPUT" + + # Use the trimmed versions list in matrix test: needs: [get-python-versions] runs-on: ${{ matrix.operating-system }} strategy: matrix: operating-system: [ ubuntu-latest, windows-latest, macOS-latest ] - # python-version: ${{ fromJson(needs.get-python-versions.outputs.python-matrix) }} - python-version: [3.13.5, 3.12.10] - + python-version: ${{ fromJson(needs.get-python-versions.outputs.python-matrix) }} continue-on-error: true steps: