Skip to content

Commit 655cc18

Browse files
Release 5.2.2
1 parent 60c8adb commit 655cc18

4 files changed

Lines changed: 16 additions & 8 deletions

File tree

.github/workflows/python-publish.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
matrix:
2424
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ]
25-
runs-on: ubuntu-20.04
25+
runs-on: ubuntu-22.04
2626

2727
steps:
2828
- uses: actions/checkout@v3
@@ -33,7 +33,15 @@ jobs:
3333

3434
- name: Install dependencies with ${{ matrix.python-version }}
3535
run: |
36-
wget https://bootstrap.pypa.io/get-pip.py && python3 get-pip.py
36+
# Use legacy get-pip.py for older Python versions
37+
if [[ $(python -c 'import sys; print(sys.version_info[:2])') == "(3, 7)" ]]; then
38+
wget https://bootstrap.pypa.io/pip/3.7/get-pip.py
39+
elif [[ $(python -c 'import sys; print(sys.version_info[:2])') == "(3, 8)" ]]; then
40+
wget https://bootstrap.pypa.io/pip/3.8/get-pip.py
41+
else
42+
wget https://bootstrap.pypa.io/get-pip.py
43+
fi
44+
python get-pip.py
3745
python -m pip install --upgrade pip
3846
pip install -r requirements.txt
3947
pip install -r test-requirements.txt

postfinancecheckout/api_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
Python SDK
66
7-
OpenAPI spec version: 5.2.0
7+
OpenAPI spec version: 5.2.2
88
99
"""
1010

@@ -68,7 +68,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
6868
self.default_headers[header_name] = header_value
6969
self.cookie = cookie
7070
# Set default User-Agent.
71-
self.user_agent = 'postfinancecheckout/5.2.0/python'
71+
self.user_agent = 'postfinancecheckout/5.2.2/python'
7272

7373
def __del__(self):
7474
if self._pool is not None:
@@ -107,7 +107,7 @@ def __call_api(
107107

108108
# predefined default headers
109109
default_headers = {
110-
'x-meta-sdk-version': '5.2.0',
110+
'x-meta-sdk-version': '5.2.2',
111111
'x-meta-sdk-language': 'python',
112112
'x-meta-sdk-provider': 'PostFinance Checkout',
113113
'x-meta-sdk-language-version': platform.python_version()

postfinancecheckout/configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,6 @@ def to_debug_report(self):
262262
return "Python SDK Debug Report:\n"\
263263
"OS: {env}\n"\
264264
"Python Version: {pyversion}\n"\
265-
"Version of the API: 5.2.0\n"\
266-
"SDK Package Version: 5.2.0".\
265+
"Version of the API: 5.2.2\n"\
266+
"SDK Package Version: 5.2.2".\
267267
format(env=sys.platform, pyversion=sys.version)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
long_description = fh.read()
77

88
NAME = "postfinancecheckout"
9-
VERSION = "5.2.0"
9+
VERSION = "5.2.2"
1010

1111
REQUIRES = [
1212
"certifi >= 14.05.14",

0 commit comments

Comments
 (0)