Skip to content

Commit 2f0c418

Browse files
authored
Release 24.2 (#71)
* Update github checkout version from v3 to v4 * Update Package version to 24.2.0 * Add 'types' field to recognition tests
1 parent 1ef6b1d commit 2f0c418

14 files changed

Lines changed: 23 additions & 28 deletions

.github/workflows/check-badges.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515

1616
- name: Check badges in README.md
1717
run: ./scripts/check-badges.bash "README.md"

.github/workflows/python-latest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
continue-on-error: true
3030

3131
steps:
32-
- uses: actions/checkout@v3
32+
- uses: actions/checkout@v4
3333
- name: Set up Python on ${{ matrix.operating-system }}
3434
uses: actions/setup-python@v4
3535
with:

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
python-version: [ '3.5', '3.12' ]
2121

2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
- name: Set up Python ${{ matrix.python-version }}
2525
uses: actions/setup-python@v4
2626
with:

.github/workflows/twine-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
- name: Set up Python
1616
uses: actions/setup-python@v4
1717
with:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![PyPI](https://img.shields.io/pypi/v/aspose-barcode-cloud)](https://pypi.org/project/aspose-barcode-cloud/)
66

77
- API version: 3.0
8-
- Package version: 24.1.0
8+
- Package version: 24.2.0
99

1010
## Demo applications
1111

@@ -31,7 +31,7 @@ The complete source code is available in this repository folder. You can either
3131

3232
## Prerequisites
3333

34-
To use Aspose.BarCode Cloud SDK for Python you need to register an account with [Aspose Cloud](https://www.aspose.cloud) and lookup/create Client Secret and Client Id at [Cloud Dashboard](https://dashboard.aspose.cloud/applications). There is free quota available. For more details, see [Aspose Cloud Pricing](https://purchase.aspose.cloud/pricing).
34+
To use Aspose.BarCode Cloud SDK for Python you need to register an account with [Aspose Cloud](https://www.aspose.cloud) and lookup/create Client Secret and Client Id at [Cloud Dashboard](https://dashboard.aspose.cloud/applications). There is free quota available. For more details, see [Aspose Cloud Pricing](https://purchase.aspose.cloud/).
3535

3636
## Installation
3737

aspose_barcode_cloud/api_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ def __init__(self, configuration=None, header_name=None, header_value=None, cook
9090
self.rest_client = RESTClientObject(configuration)
9191
self.default_headers = {
9292
"x-aspose-client": "python sdk",
93-
"x-aspose-client-version": "24.1.0",
93+
"x-aspose-client-version": "24.2.0",
9494
}
9595
if header_name is not None:
9696
self.default_headers[header_name] = header_value
9797
self.cookie = cookie
9898
# Set default User-Agent.
99-
self.user_agent = "Aspose-Barcode-SDK/24.1.0/python"
99+
self.user_agent = "Aspose-Barcode-SDK/24.2.0/python"
100100

101101
def __del__(self):
102102
self.rest_client.close()

aspose_barcode_cloud/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def to_debug_report(self):
286286
"OS: {env}\n"
287287
"Python Version: {pyversion}\n"
288288
"Version of the API: 3.0\n"
289-
"SDK Package Version: 24.1.0".format(env=sys.platform, pyversion=sys.version)
289+
"SDK Package Version: 24.2.0".format(env=sys.platform, pyversion=sys.version)
290290
)
291291

292292
@staticmethod

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from setuptools import setup, find_packages
3030

3131
NAME = "aspose-barcode-cloud"
32-
VERSION = "24.1.0"
32+
VERSION = "24.2.0"
3333
# To install the library, run the following
3434
#
3535
# python setup.py install

tests/test_barcode_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def test_post_barcode_recognize_from_url_or_content(self):
7474
"""
7575

7676
response = self.api.post_barcode_recognize_from_url_or_content(
77-
type=DecodeBarcodeType.PDF417,
77+
types=[DecodeBarcodeType.PDF417],
7878
preset=PresetType.HIGHPERFORMANCE,
7979
image=self.test_filename,
8080
)

tests/test_generate_and_recognize.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515

1616

1717
class TestGenerateAndRecognize(unittest.TestCase):
18+
api_client = None
19+
api = None
20+
1821
@classmethod
1922
def setUpClass(cls):
2023
cls.api_client = ApiClient(TEST_CONFIGURATION)
@@ -31,7 +34,7 @@ def test_generate_and_recognize(self):
3134
f.write(generated.data)
3235

3336
recognized = self.api.post_barcode_recognize_from_url_or_content(
34-
image=temp_filename, preset=PresetType.HIGHPERFORMANCE
37+
image=temp_filename, preset=PresetType.HIGHPERFORMANCE, types=[DecodeBarcodeType.QR]
3538
)
3639
finally:
3740
os.remove(temp_filename)

0 commit comments

Comments
 (0)