Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 24.5 #74

Merged
merged 4 commits into from
May 28, 2024
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/python-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: snok/latest-python-versions@v1
id: get-python-versions-action
with:
min-version: '3.11'
min-version: '3.12'

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 2.7,3.5- --only setup.py
python -m check_python_versions --expect 2.7,3.6- --only setup.py
- name: Test
env:
TEST_CONFIGURATION_ACCESS_TOKEN: ${{ secrets.TEST_CONFIGURATION_ACCESS_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
# see https://www.python.org/downloads/
python-version: [ '3.5', '3.12' ]
python-version: [ '3.6', '3.12' ]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ publish-docker: init-docker unittest dist

.PHONY: test
test:
python -Werror -m pytest --cov=aspose_barcode_cloud tests/
python -m pytest --cov=aspose_barcode_cloud tests/

.PHONY: cover
cover:
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.4.0
- Package version: 24.5.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.5+
- Python 3.6+

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
6 changes: 3 additions & 3 deletions aspose_barcode_cloud/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,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.4.0",
"x-aspose-client-version": "24.5.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.4.0/python"
self.user_agent = "Aspose-Barcode-SDK/24.5.0/python"

def __del__(self):
self.rest_client.close()
Expand Down Expand Up @@ -258,7 +258,7 @@ def __deserialize(self, data, klass):
if data is None:
return None

if type(klass) == str:
if isinstance(klass, str):
if klass.startswith("list["):
sub_kls = re.match(r"list\[(.*)]", klass).group(1)
return [self.__deserialize(sub_data, sub_kls) for sub_data in data]
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 @@ -262,7 +262,7 @@ def to_debug_report(self):
"OS: {env}\n"
"Python Version: {pyversion}\n"
"Version of the API: 3.0\n"
"SDK Package Version: 24.4.0".format(env=sys.platform, pyversion=sys.version)
"SDK Package Version: 24.5.0".format(env=sys.platform, pyversion=sys.version)
)

@staticmethod
Expand Down
2 changes: 0 additions & 2 deletions aspose_barcode_cloud/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def getheader(self, name, default=None):


class RESTClientObject(object):

def __init__(self, configuration, pools_size=4, maxsize=None):
# urllib3.PoolManager will pass all kw parameters to connectionpool
# https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501
Expand Down Expand Up @@ -361,7 +360,6 @@ def close(self):


class ApiException(Exception):

def __init__(self, status=0, reason=None, http_resp=None):
# type: (int, str, RESTResponse) -> None
if http_resp:
Expand Down
4 changes: 0 additions & 4 deletions pyproject.toml

This file was deleted.

3 changes: 1 addition & 2 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.4.0"
VERSION = "24.5.0"
# To install the library, run the following
#
# python setup.py install
Expand Down Expand Up @@ -37,7 +37,6 @@
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
Expand Down
14 changes: 8 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
; Use tox version 3.x
; Run particular env:
; python -m tox -e 3.6
[tox]
envlist = 2.7, 3.5, 3.12
envlist = 2.7, 3.6, 3.12

[testenv]
passenv = TEST_CONFIGURATION_ACCESS_TOKEN
skip_install=True
whitelist_externals = docker
echo
commands_pre=
docker run --name test-py{envname} -ti -d -v {toxinidir}:/submodules/python -e TEST_CONFIGURATION_ACCESS_TOKEN python:{envname}-buster
docker exec --workdir /submodules/python test-py{envname} python -m pip install -r requirements.txt -r lint-requirements.txt -r test-requirements.txt
docker run --name test-py{envname} -ti -d -v {toxinidir}:/src -e TEST_CONFIGURATION_ACCESS_TOKEN python:{envname}
docker exec --workdir /src test-py{envname} python -m pip install -r requirements.txt -r lint-requirements.txt -r test-requirements.txt
commands=
docker exec -t --workdir /src test-py{envname} python -m pytest --cov=aspose_barcode_cloud tests/
docker exec -t --workdir /src test-py{envname} python -Werror example.py
commands_post=
docker stop test-py{envname}
docker rm test-py{envname}
commands=
docker exec -t --workdir /submodules/python test-py{envname} python -Werror -m pytest --cov=aspose_barcode_cloud tests/
docker exec -t --workdir /submodules/python test-py{envname} python -Werror example.py
Loading