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
4 changes: 2 additions & 2 deletions .github/workflows/check-badges.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Check badges in README.md

on:
push:
branches: [ main ]
branches: [ v3 ]
pull_request:
branches: [ main ]
branches: [ v3 ]

jobs:
build-and-test:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/python-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Latest Python Support

on:
push:
branches: [ main ]
branches: [ v3 ]
pull_request:
branches: [ main ]
branches: [ v3 ]

jobs:
# Define the job to run before your matrix job
Expand All @@ -16,7 +16,7 @@ jobs:
- uses: snok/latest-python-versions@v1
id: get-python-versions-action
with:
min-version: '3.12'
min-version: '3.13'

test:
needs: [get-python-versions]
Expand All @@ -42,7 +42,7 @@ jobs:
- name: Lint
run: |
python -m black --line-length=120 --check .
python -m check_python_versions --expect 3.6- --only setup.py
python -m check_python_versions --expect 3.8- --only setup.py
- name: Test
env:
TEST_CONFIGURATION_ACCESS_TOKEN: ${{ secrets.TEST_CONFIGURATION_ACCESS_TOKEN }}
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,28 @@ name: Test

on:
push:
branches: [ main ]
branches: [ v3 ]
pull_request:
branches: [ main ]
branches: [ v3 ]

jobs:
build:
# See https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
# for awailable Python versions on ubuntu
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
# see https://www.python.org/downloads/
python-version: [ '3.6', '3.12' ]
# see https://www.python.org/downloads/
python-version: [ '3.8', '3.13', '3.x' ]
continue-on-error: true

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
check-latest: true
cache: 'pip' # caching pip dependencies

- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/twine-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Check Python package

on:
push:
branches: [ main ]
branches: [ v3 ]
pull_request:
branches: [ main ]
branches: [ v3 ]

jobs:
twine-check:
Expand Down
4 changes: 2 additions & 2 deletions 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: 3.0
- Package version: 24.12.0
- Package version: 24.13.0

## Demo applications

Expand All @@ -21,7 +21,7 @@ This repository contains Aspose.BarCode Cloud SDK for Python source code. This S

Supported Python versions:

- Python 3.6+
- Python 3.8+

To use these SDKs, you will need Client Id and Client Secret which can be looked up at [Aspose Cloud Dashboard](https://dashboard.aspose.cloud/applications) (free registration in Aspose Cloud is required for this).

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": "24.12.0",
"x-aspose-client-version": "24.13.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/24.12.0/python"
self.user_agent = "Aspose-Barcode-SDK/24.13.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: 3.0\n"
"SDK Package Version: 24.12.0".format(env=sys.platform, pyversion=sys.version)
"SDK Package Version: 24.13.0".format(env=sys.platform, pyversion=sys.version)
)

@staticmethod
Expand Down
4 changes: 1 addition & 3 deletions 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 = "24.12.0"
VERSION = "24.13.0"
# To install the library, run the following
#
# python setup.py install
Expand Down Expand Up @@ -35,8 +35,6 @@
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
; Use tox version 3.x
; Run particular env:
; python -m tox -e 3.6
; python -m tox -e 3.8
[tox]
envlist = 3.6, 3.12
envlist = 3.8, 3.13

[testenv]
passenv = TEST_CONFIGURATION_ACCESS_TOKEN
Expand Down