Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions .github/workflows/python-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +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) }}

continue-on-error: true

steps:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
4 changes: 2 additions & 2 deletions aspose_barcode_cloud/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion aspose_barcode_cloud/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down