Skip to content

Commit af34005

Browse files
authored
Release/2.14.3 (#420)
Python library updates
1 parent 6fe15da commit af34005

Some content is hidden

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

41 files changed

+868
-146
lines changed

.github/workflows/sonar.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
name: Sonar Scan
2-
on: [push, pull_request_target]
2+
on: [push, pull_request]
33

44
jobs:
55
sonar:
66
name: Sonar Scan
7-
runs-on: ubuntu-latest
8-
# always run on push events
9-
# only run on pull_request_target event when pull request pulls from fork repository
10-
if: >
11-
github.event_name == 'push' ||
12-
github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository
7+
runs-on: ubuntu-latest
138

149
steps:
1510
- uses: actions/checkout@v2

.github/workflows/tests.yaml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
name: Unit Tests
2-
on: [push, pull_request_target]
2+
on: [push, pull_request]
33

44
jobs:
55
test:
66
name: Test (Python ${{ matrix.python-version }})
77
runs-on: ubuntu-latest
8-
# always run on push events
9-
# only run on pull_request_target event when pull request pulls from fork repository
10-
if: >
11-
github.event_name == 'push' ||
12-
github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository
138
strategy:
149
fail-fast: false
1510
matrix:
16-
python-version: [3.7, 3.8, 3.9, "3.10"]
11+
python-version: [3.9, "3.10","3.11","3.12"]
1712

1813
steps:
1914
- uses: actions/checkout@v2
@@ -32,10 +27,7 @@ jobs:
3227

3328
examples:
3429
name: Check Examples
35-
runs-on: ubuntu-latest
36-
if: >
37-
github.event_name == 'push' ||
38-
github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository
30+
runs-on: ubuntu-latest
3931

4032
steps:
4133
- uses: actions/checkout@v2

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ timestamp = activity_details.timestamp
140140
base64_selfie_uri = activity_details.base64_selfie_uri
141141
```
142142

143+
143144
You can retrieve the anchors, sources and verifiers for each attribute as follows:
144145
```python
145146
given_names_attribute = profile.given_names
@@ -238,3 +239,4 @@ set LIB=C:\OpenSSL-Win64\lib;%LIB%
238239
set INCLUDE=C:\OpenSSL-Win64\include;%INCLUDE%
239240
```
240241
Where `OpenSSL-Win64` is the location that you have installed OpenSSL to. See [here](https://cryptography.io/en/latest/installation/#building-cryptography-on-windows) for more information.
242+

examples/aml/requirements.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
yoti>=2.14.0
2+
python-dotenv>=0.7.1

examples/aml/requirements.txt

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,46 @@
1-
yoti>=2.13.0
2-
python-dotenv>=0.7.1
1+
#
2+
# This file is autogenerated by pip-compile with python 3.10
3+
# To update, run:
4+
#
5+
# pip-compile --output-file=requirements.txt requirements.in
6+
#
7+
asn1==2.2.0
8+
# via yoti
9+
certifi==2021.10.8
10+
# via requests
11+
cffi==1.15.0
12+
# via cryptography
13+
charset-normalizer==2.0.10
14+
# via requests
15+
cryptography==36.0.1
16+
# via
17+
# pyopenssl
18+
# yoti
19+
deprecated==1.2.10
20+
# via yoti
21+
future==0.18.2
22+
# via yoti
23+
idna==3.3
24+
# via requests
25+
iso8601==0.1.13
26+
# via yoti
27+
protobuf==3.19.3
28+
# via yoti
29+
pycparser==2.21
30+
# via cffi
31+
pyopenssl==21.0.0
32+
# via yoti
33+
python-dotenv==0.19.2
34+
# via -r requirements.in
35+
pytz==2020.4
36+
# via yoti
37+
requests==2.27.1
38+
# via yoti
39+
six==1.16.0
40+
# via pyopenssl
41+
urllib3==1.26.8
42+
# via requests
43+
wrapt==1.13.3
44+
# via deprecated
45+
yoti==2.14.0
46+
# via -r requirements.in

examples/doc_scan/app.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ 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))
5051
.build()
5152
)
5253

@@ -173,5 +174,10 @@ def media():
173174
)
174175

175176

177+
@app.route("/privacy-policy")
178+
def privacy_policy():
179+
return render_template("privacy.html")
180+
181+
176182
if __name__ == "__main__":
177183
app.run()

examples/doc_scan/requirements.in

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1-
flask>=1.1.2
2-
python-dotenv>=0.13.0
3-
yoti>=2.13.0
1+
# Core requirements
2+
flask>=2.2.0
3+
python-dotenv>=0.21.0
4+
yoti==2.14.0
45
filetype>=1.0.7
5-
pyopenssl>=19.1.0
6+
pyopenssl==23.2.0
7+
click >=8.0
8+
9+
# Required for yoti compatibility
10+
deprecated==1.2.10
11+
iso8601==0.1.13
12+
pytz==2020.4
13+

examples/doc_scan/requirements.txt

Lines changed: 77 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,84 @@
11
#
2-
# This file is autogenerated by pip-compile
3-
# To update, run:
2+
# This file is autogenerated by pip-compile with Python 3.12
3+
# by the following command:
44
#
55
# pip-compile --output-file=requirements.txt requirements.in
66
#
7-
asn1==2.2.0 # via yoti
8-
certifi==2020.4.5.1 # via requests
9-
cffi==1.14.0 # via cryptography
10-
chardet==3.0.4 # via requests
11-
click==7.1.2 # via flask
12-
cryptography==3.2 # via pyopenssl, yoti
13-
deprecated==1.2.10 # via yoti
14-
filetype==1.0.7 # via -r requirements.in
15-
flask==1.1.2 # via -r requirements.in
16-
future==0.18.2 # via yoti
17-
idna==2.9 # via requests
18-
iso8601==0.1.13 # via yoti
19-
itsdangerous==1.1.0 # via flask
20-
jinja2==2.11.2 # via flask
21-
markupsafe==1.1.1 # via jinja2
22-
protobuf==3.11.3 # via yoti
23-
pycparser==2.20 # via cffi
24-
pyopenssl==19.1.0 # via -r requirements.in, yoti
25-
python-dotenv==0.13.0 # via -r requirements.in
26-
requests==2.23.0 # via yoti
27-
six==1.14.0 # via cryptography, protobuf, pyopenssl
28-
urllib3==1.25.9 # via requests
29-
werkzeug==1.0.1 # via flask
30-
wrapt==1.12.1 # via deprecated
31-
yoti==2.13.0 # via -r requirements.in
7+
asn1==2.2.0
8+
# via yoti
9+
10+
blinker==1.9.0
11+
# via flask
12+
certifi==2020.4.5.1
13+
# via requests
14+
cffi==1.17.1
15+
# via cryptography
16+
chardet==3.0.4
17+
# via requests
18+
click==8.1.8
19+
# via
20+
# -r requirements.in
21+
# flask
22+
cryptography==41.0.7
23+
24+
# via
25+
# pyopenssl
26+
# yoti
27+
deprecated==1.2.10
28+
29+
# via
30+
# -r requirements.in
31+
# yoti
32+
filetype==1.0.7
33+
# via -r requirements.in
34+
flask==3.1.0
35+
# via -r requirements.in
36+
future==1.0.0
37+
# via yoti
38+
idna==2.9
39+
# via requests
40+
iso8601==0.1.13
41+
42+
# via
43+
# -r requirements.in
44+
# yoti
45+
itsdangerous==2.2.0
46+
# via flask
47+
jinja2==3.1.6
48+
# via flask
49+
markupsafe==3.0.2
50+
# via
51+
# jinja2
52+
# werkzeug
53+
54+
protobuf==3.11.3
55+
# via yoti
56+
pycparser==2.20
57+
# via cffi
58+
59+
pyopenssl==23.2.0
60+
# via
61+
# -r requirements.in
62+
# yoti
63+
python-dotenv==1.1.0
64+
# via -r requirements.in
65+
pytz==2020.4
66+
# via
67+
# -r requirements.in
68+
# yoti
69+
requests==2.23.0
70+
# via yoti
71+
six==1.14.0
72+
# via protobuf
73+
urllib3==1.25.9
74+
# via requests
75+
werkzeug==3.1.3
76+
# via flask
77+
wrapt==1.17.2
78+
79+
# via deprecated
80+
yoti==2.14.0
81+
# via -r requirements.in
3282

3383
# The following packages are considered to be unsafe in a requirements file:
3484
# setuptools
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{% include "layout/header.html" %}
2+
<div class="container">
3+
<div class="row pt-4">
4+
<div class="col">
5+
<h1>Privacy Policy</h1>
6+
<p>Demo privacy policy</p>
7+
</div>
8+
</div>
9+
</div>
10+
{% include "layout/footer.html" %}
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
django>=3.0.7
1+
django>=4.0.1
22
django-sslserver>=0.22.0
33
python-dotenv>=0.7.1
44
requests>=2.20.0
55
urllib3>=1.24.2
6-
yoti>=2.13.0
6+
yoti>=2.14.0
7+
six>=1.16.0
8+
cffi>=1.15.0

0 commit comments

Comments
 (0)