Skip to content

Commit 3b2454e

Browse files
authored
Release/2.14.4 (#423)
* SDK-2648 updated version of protobuf * Update version to 2.14.4 * SDK-2648: Update protobuf to 4.21.12+ * Remove accidentally committed virtual environment files from Flask example * Update doc_scan example requirements for protobuf 4.21.12 and SDK v2.14.4 * Update Flask example requirements for protobuf 4.21.12 and SDK v2.14.4 * updated versions in examples * Fix GitHub Actions workflow to install local SDK before example requirements
1 parent af34005 commit 3b2454e

File tree

89 files changed

+1536
-1300
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+1536
-1300
lines changed

.github/workflows/sonar.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
- run: pip install -r requirements.txt
1919

20-
- run: pip install -e .[dev]
20+
- run: pip install -e ".[dev]"
2121

2222
- run: pytest --cov=yoti_python_sdk yoti_python_sdk/tests --cov-report=xml:coverage-reports/coverage-new.xml
2323

.github/workflows/tests.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838

3939
- run: pip install --upgrade setuptools
4040

41+
- run: pip install -e .
42+
4143
- run: pushd examples/aml && pip install -r requirements.txt && popd
4244

4345
- run: pushd examples/yoti_example_django && pip install --upgrade pip && pip install -r requirements.txt && popd

examples/doc_scan/app.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ def create_session():
4747
.with_preset_issuing_country("GBR")
4848
.with_success_url("{url}/success".format(url=YOTI_APP_BASE_URL))
4949
.with_error_url("{url}/error".format(url=YOTI_APP_BASE_URL))
50-
.with_privacy_policy_url("{url}/privacy-policy".format(url=YOTI_APP_BASE_URL))
5150
.build()
5251
)
5352

examples/doc_scan/requirements.in

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
11
# Core requirements
22
flask>=2.2.0
33
python-dotenv>=0.21.0
4-
yoti==2.14.0
4+
# yoti will be installed separately in CI from local source
55
filetype>=1.0.7
6-
pyopenssl==23.2.0
7-
click >=8.0
6+
pyopenssl>=24.0.0
7+
click>=8.0
8+
future>=1.0.0
89

910
# Required for yoti compatibility
10-
deprecated==1.2.10
11-
iso8601==0.1.13
12-
pytz==2020.4
11+
deprecated>=1.2.14
12+
iso8601>=1.1.0
13+
pytz>=2025.2ements
14+
flask>=2.2.0
15+
python-dotenv>=0.21.0
16+
yoti>=2.14.0
17+
filetype>=1.0.7
18+
pyopenssl>=24.0.0
19+
click>=8.0
20+
future>=1.0.0
21+
22+
# Required for yoti compatibility
23+
deprecated>=1.2.14
24+
iso8601>=1.1.0
25+
pytz>=2025.2
1326

examples/doc_scan/requirements.txt

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@ cryptography==41.0.7
2424
# via
2525
# pyopenssl
2626
# yoti
27-
deprecated==1.2.10
28-
27+
deprecated>=1.2.14
2928
# via
3029
# -r requirements.in
3130
# yoti
3231
filetype==1.0.7
3332
# via -r requirements.in
34-
flask==3.1.0
33+
flask>=2.2.0
3534
# via -r requirements.in
36-
future==1.0.0
37-
# via yoti
35+
future>=1.0.0
36+
# via
37+
# -r requirements.in
38+
# yoti
3839
idna==2.9
3940
# via requests
40-
iso8601==0.1.13
41-
41+
iso8601>=1.1.0
4242
# via
4343
# -r requirements.in
4444
# yoti
@@ -51,34 +51,31 @@ markupsafe==3.0.2
5151
# jinja2
5252
# werkzeug
5353

54-
protobuf==3.11.3
54+
protobuf==4.21.12
5555
# via yoti
56-
pycparser==2.20
56+
pycparser==2.22
5757
# via cffi
58-
59-
pyopenssl==23.2.0
58+
pyopenssl>=24.0.0
6059
# via
6160
# -r requirements.in
6261
# yoti
6362
python-dotenv==1.1.0
6463
# via -r requirements.in
65-
pytz==2020.4
64+
pytz>=2025.2
6665
# via
6766
# -r requirements.in
6867
# yoti
69-
requests==2.23.0
68+
requests>=2.31.0
7069
# via yoti
71-
six==1.14.0
70+
six>=1.16.0
7271
# via protobuf
7372
urllib3==1.25.9
7473
# via requests
7574
werkzeug==3.1.3
7675
# via flask
7776
wrapt==1.17.2
78-
7977
# via deprecated
80-
yoti==2.14.0
81-
# via -r requirements.in
78+
# yoti will be installed separately in CI from local source
8279

8380
# The following packages are considered to be unsafe in a requirements file:
8481
# setuptools
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
click>=7
22
cffi>=1.15.0
3+
cryptography>=42.0.0
34
flask>=1.0.4
5+
future>=1.0.0
46
jinja2>=3.0.3
5-
pyopenssl>=19.0.0
7+
pyopenssl>=24.0.0
68
python-dotenv>=0.7.1
7-
requests>=2.20.0
9+
requests>=2.31.0
810
urllib3>=1.24.2
9-
yoti>=2.14.0
11+
# yoti will be installed separately in CI from local source
1012
werkzeug>=1.0.1
11-
six==1.16.0
13+
six==1.16.0

examples/yoti_example_flask/requirements.txt

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,41 +18,43 @@ click==8.1.2
1818
# via
1919
# -r requirements.in
2020
# flask
21-
cryptography==3.2
21+
cryptography>=42.0.0
2222
# via
2323
# pyopenssl
2424
# yoti
25-
deprecated==1.2.10
25+
deprecated==1.2.18
2626
# via yoti
2727
flask==1.1.1
2828
# via -r requirements.in
29-
future==0.16.0
30-
# via yoti
29+
future==1.0.0
30+
# via
31+
# -r requirements.in
32+
# yoti
3133
idna==2.7
3234
# via requests
33-
iso8601==0.1.13
35+
iso8601>=1.1.0
3436
# via yoti
35-
itsdangerous==0.24
37+
itsdangerous==1.1.0
3638
# via flask
3739
jinja2==3.0.3
3840
# via
3941
# -r requirements.in
4042
# flask
4143
markupsafe==2.0.1
4244
# via jinja2
43-
protobuf==3.6.0
45+
protobuf==4.21.12
4446
# via yoti
4547
pycparser==2.18
4648
# via cffi
47-
pyopenssl==19.0.0
49+
pyopenssl>=24.0.0
4850
# via
4951
# -r requirements.in
5052
# yoti
51-
python-dotenv==0.8.2
53+
python-dotenv>=0.7.1
5254
# via -r requirements.in
53-
pytz==2020.4
55+
pytz>=2025.2
5456
# via yoti
55-
requests==2.21.0
57+
requests>=2.31.0
5658
# via
5759
# -r requirements.in
5860
# yoti
@@ -72,8 +74,7 @@ werkzeug==1.0.1
7274
# flask
7375
wrapt==1.12.1
7476
# via deprecated
75-
yoti==2.14.0
76-
# via -r requirements.in
77+
# yoti will be installed separately in CI from local source
7778

7879
# The following packages are considered to be unsafe in a requirements file:
7980
# setuptools

requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cffi>=1.16.0
55
future>=0.18.3
66
itsdangerous>=2.1.2
77
pbr>=5.11.1
8-
protobuf==3.20.3
8+
protobuf>=4.21.12
99
pyopenssl>=24.0.0
1010
PyYAML>=6.0
1111
pytz>=2025.2

requirements.txt

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
#
2-
3-
# This file is autogenerated by pip-compile with Python 3.11
2+
# This file is autogenerated by pip-compile with Python 3.12
43
# by the following command:
5-
64
#
75
# pip-compile --output-file=requirements.txt requirements.in
86
#
97
asn1==2.2.0
108
# via -r requirements.in
119
certifi==2018.11.29
1210
# via requests
13-
1411
cffi==1.17.1
1512
# via
1613
# -r requirements.in
@@ -21,30 +18,25 @@ cryptography==44.0.2
2118
# via
2219
# -r requirements.in
2320
# pyopenssl
24-
2521
deprecated==1.2.18
2622
# via -r requirements.in
2723
future==1.0.0
2824
# via -r requirements.in
2925
idna==2.7
3026
# via requests
31-
3227
iso8601==2.1.0
3328
# via -r requirements.in
3429
itsdangerous==2.2.0
35-
3630
# via -r requirements.in
3731
pbr==6.1.1
3832
# via -r requirements.in
39-
protobuf==3.20.3
33+
protobuf==4.21.12
4034
# via -r requirements.in
4135
pycparser==2.18
4236
# via cffi
4337
pyopenssl==25.0.0
4438
# via -r requirements.in
45-
4639
pytz==2025.2
47-
4840
# via -r requirements.in
4941
pyyaml==6.0.2
5042
# via -r requirements.in
@@ -65,6 +57,3 @@ wrapt==1.17.2
6557

6658
# The following packages are considered to be unsafe in a requirements file:
6759
# setuptools
68-
69-
70-

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@
1717
url="https://github.com/getyoti/yoti-python-sdk",
1818
author="Yoti",
1919
author_email="[email protected]",
20+
python_requires=">=3.9",
2021
install_requires=[
2122

2223

2324
"asn1==2.2.0", # still pinned due to enum34 issue
2425
"cryptography>=42.0.0",
25-
"protobuf==3.20.3",
26+
"protobuf>=4.21.12",
2627
"requests>=2.31.0",
2728
"pyopenssl>=24.0.0",
2829
"pytz>=2025.2",
@@ -58,7 +59,6 @@
5859
"Operating System :: OS Independent",
5960
"Intended Audience :: Developers",
6061
"Programming Language :: Python",
61-
6262
"Programming Language :: Python :: 3.9",
6363
"Programming Language :: Python :: 3.10",
6464
"Programming Language :: Python :: 3.11",

0 commit comments

Comments
 (0)