Skip to content

Release 2.15.0 #348

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

Open
wants to merge 96 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
597b730
Update demo SDK version
davidgrayston Nov 16, 2020
412820e
Bump minor version
davidgrayston Nov 16, 2020
d4eebfb
Merge pull request #273 from getyoti/master-1.14.0
davidgrayston Nov 16, 2020
4102733
SDK-1825: Add support for custom privacy policy URL
davidgrayston Nov 12, 2020
85b0cc8
Bump protobuf from 3.13.0 to 3.14.0
dependabot[bot] Nov 16, 2020
24471eb
Merge pull request #276 from getyoti/master
echarrod Dec 1, 2020
f41f583
Bump cffi from 1.14.3 to 1.14.4
dependabot[bot] Dec 1, 2020
5468a72
Bump virtualenv from 20.1.0 to 20.2.1
dependabot[bot] Dec 1, 2020
7f8b1ed
Merge pull request #288 from getyoti/master
echarrod Mar 17, 2021
219b410
Bump virtualenv from 20.2.1 to 20.4.3
dependabot[bot] Mar 17, 2021
2a51312
Bump pytz from 2020.4 to 2021.1
dependabot[bot] Mar 17, 2021
7e04b10
Bump iso8601 from 0.1.13 to 0.1.14
dependabot[bot] Mar 17, 2021
fac56f2
Bump deprecated from 1.2.10 to 1.2.12
dependabot[bot] Mar 17, 2021
cb493e9
Bump protobuf from 3.14.0 to 3.15.8
dependabot[bot] Apr 13, 2021
9d7b92b
Bump cffi from 1.14.4 to 1.14.5
dependabot[bot] Apr 15, 2021
9b27c92
Bump protobuf from 3.15.8 to 3.17.1
dependabot[bot] Jun 1, 2021
ae48f84
Bump werkzeug from 1.0.1 to 2.0.1
dependabot[bot] Jun 1, 2021
1d21b3b
Bump virtualenv from 20.4.3 to 20.4.7
dependabot[bot] Jun 1, 2021
c1d7f9c
Bump protobuf from 3.17.1 to 3.17.3
dependabot[bot] Jul 1, 2021
8ed1890
Merge branch 'master' into development
echarrod Jul 6, 2021
885c7c6
adding myself to dependabot
MichalMilewiczYoti Jul 9, 2021
0691db9
Apply suggestions from code review
echarrod Aug 4, 2021
6cab71f
Bump virtualenv from 20.4.7 to 20.7.2
dependabot[bot] Sep 1, 2021
22907cb
Bump cffi from 1.14.5 to 1.14.6
dependabot[bot] Sep 3, 2021
3edba3f
Bump iso8601 from 0.1.14 to 0.1.16
dependabot[bot] Sep 24, 2021
afedb39
Bump virtualenv from 20.7.2 to 20.8.1
dependabot[bot] Oct 1, 2021
7950d4b
Bump deprecated from 1.2.12 to 1.2.13
dependabot[bot] Oct 1, 2021
c0bfbdb
Update supported Python versions: add later versions and remove 2.7
echarrod Oct 21, 2021
91bb167
Update pre-commit, use specific versions rather than floating branch
echarrod Oct 21, 2021
aa9e162
Remove travis, update references to point to Github workflow
echarrod Oct 21, 2021
2335e35
Update itsdangerous after incompatibility
echarrod Oct 21, 2021
6bd37fd
Fix pre-commit violations
echarrod Oct 21, 2021
818e073
Use Python 3.9 for examples, install distutils
echarrod Oct 21, 2021
bf7d59c
Bump protobuf from 3.17.3 to 3.19.0
dependabot[bot] Oct 21, 2021
a0887d8
Bump werkzeug from 2.0.1 to 2.0.2
dependabot[bot] Nov 1, 2021
767a8ad
Bump pytz from 2021.1 to 2021.3
dependabot[bot] Nov 1, 2021
fcf93bb
Bump protobuf from 3.19.0 to 3.19.1
dependabot[bot] Nov 1, 2021
1a7a0a0
Bump cffi from 1.14.6 to 1.15.0
dependabot[bot] Nov 1, 2021
c8562d7
[SDK-1998] adding handoff flag
MichalMilewiczYoti Oct 29, 2021
2f88484
[SDK-1998] code review fixies
MichalMilewiczYoti Nov 5, 2021
3838647
fixing test
MichalMilewiczYoti Nov 5, 2021
172b07d
Merge pull request #332 from getyoti/feature/handoff_flag
MichalMilewiczYoti Nov 5, 2021
d2d159d
Bump virtualenv from 20.8.1 to 20.10.0
dependabot[bot] Nov 1, 2021
07bb943
[SDK-2004] Add support for issuing authority sub check
MichalMilewiczYoti Nov 30, 2021
e3e31e9
Bump iso8601 from 0.1.16 to 1.0.2
dependabot[bot] Dec 1, 2021
5d46ab8
changes after CR
MichalMilewiczYoti Dec 1, 2021
8ca2f92
[SDK-1980] Add support for Session Deadline
MichalMilewiczYoti Dec 8, 2021
c5b6065
Merge pull request #344 from getyoti/feat/session_deadline
MichalMilewiczYoti Dec 17, 2021
25c3a7e
Merge pull request #341 from getyoti/feat/idv
MichalMilewiczYoti Dec 17, 2021
d408479
SDK-1901 adding WATCHLIST_SCREENING check
MichalMilewiczYoti Aug 30, 2021
e3be90a
Bump virtualenv from 20.10.0 to 20.12.0
dependabot[bot] Jan 1, 2022
0a4fce7
SDK-1838 auth_type for doc_scan session
MichalMilewiczYoti Sep 23, 2021
247b43d
Don't fix version of setuptools for "check examples"
echarrod Jan 12, 2022
81988d7
Revert "Don't fix version of setuptools for "check examples""
echarrod Jan 12, 2022
34acc24
Upgrade "six" package
echarrod Jan 12, 2022
bb391e3
Revert "Install python3.10-distutils"
echarrod Jan 12, 2022
6fe1937
Use actions/setup-python v2.3.1
echarrod Jan 12, 2022
d491b4e
Upgrade pip
echarrod Jan 12, 2022
3983747
Revert "Upgrade pip": already up to date
echarrod Jan 12, 2022
f6617ad
Use Python 3.10.0 until packages have been fixed by maintainers
echarrod Jan 12, 2022
259c1f6
Add 'sudo apt-get install python3-distutils'
echarrod Jan 12, 2022
1ca237c
Revert "Use Python 3.10.0 until packages have been fixed by maintainers"
echarrod Jan 12, 2022
adcce3e
Revert "Add 'sudo apt-get install python3-distutils'"
echarrod Jan 12, 2022
b59ddb7
Use .version instead of distutils (distuils is deprecated)
echarrod Jan 12, 2022
a00399f
Update packages: `future` causing a problem:
echarrod Jan 12, 2022
7e1dbec
Use requirements.in for aml example: need to fix the future version (…
echarrod Jan 12, 2022
829b5a5
Update wheel package
echarrod Jan 12, 2022
052066d
Add wheel to setup.py
echarrod Jan 12, 2022
af033f0
pip install wheel
echarrod Jan 12, 2022
7bffc05
Update django
echarrod Jan 12, 2022
c4cd552
Remove django check (for now)
echarrod Jan 12, 2022
d685ba9
Remove doc_scan check: problem with cffi & Python 3.10
echarrod Jan 12, 2022
b269b24
Update requirements.txt
echarrod Jan 12, 2022
fad2ce8
SDK-2027: adding non-latin support for session and supported documents
MichalMilewiczYoti Jan 18, 2022
9af34b3
Merge pull request #347 from getyoti/feat/non_latin_documents
MichalMilewiczYoti Jan 21, 2022
20c7c02
Merge pull request #321 from getyoti/feature/watchlist
MichalMilewiczYoti Jan 25, 2022
11224fc
Merge pull request #324 from getyoti/feature/extend_auth_type
MichalMilewiczYoti Jan 25, 2022
4c73bce
Update dependabot assignees
echarrod Jan 28, 2022
88f1461
Revert adding of strictly_latin to source constraints builder
echarrod Jan 28, 2022
5ba6408
Reinstate missing Github actions linting step
echarrod Jan 28, 2022
4c0658b
Update "check examples" steps
echarrod Jan 28, 2022
39e323d
&& pip install --upgrade pip
echarrod Jan 28, 2022
99d7650
Run on Python 3.9
echarrod Jan 28, 2022
0298997
Update jinja package (from Flask)
echarrod Jan 28, 2022
66a167c
Remove tests after removing associated code
echarrod Jan 28, 2022
9b2eff2
Bump pytz from 2021.1 to 2021.3
dependabot[bot] Feb 1, 2022
2daf3fc
Bump virtualenv from 20.12.0 to 20.13.0
dependabot[bot] Feb 1, 2022
8e89f01
Merge release/2.15.0 -> development
echarrod Feb 24, 2022
3094dd4
Bump protobuf from 3.19.3 to 3.19.4
dependabot[bot] Feb 24, 2022
46dde9d
Update pre-commit hooks, apply
echarrod Apr 26, 2022
137fc6c
Update dev dependencies
echarrod Apr 26, 2022
4c2fc04
Update pytz dependency
echarrod Apr 26, 2022
cf1adb7
Update Flask dependencies, and run command
echarrod Apr 26, 2022
0b1e723
Remove Python 3.6 from tests, EOL on 23 Dec 2021
echarrod Apr 26, 2022
efd48c2
Update Dockerfile Python versions
echarrod Apr 27, 2022
bca0750
Merge branch 'development' into release/2.15.0
echarrod Apr 27, 2022
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
2 changes: 1 addition & 1 deletion .github/workflows/sonar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

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

- run: sed -i 's+<source>.*</source>+<source>/home/travis/build/getyoti/yoti-python-sdk/yoti_python_sdk</source>+g' coverage-reports/coverage-new.xml
- run: sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' coverage-reports/coverage-new.xml

- uses: sonarsource/sonarcloud-github-action@master
env:
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [2.7, 3.6, 3.7, 3.8, 3.9, "3.10-dev"]
python-version: [3.7, 3.8, 3.9, "3.10"]

steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2.1.4
- uses: actions/setup-python@v2.3.1
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -40,14 +40,16 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-version: 3.9

- run: pip install -U setuptools==45
- run: pip install --upgrade setuptools

- run: pushd examples/aml && pip install -r requirements.txt && popd

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

- run: pushd examples/yoti_example_flask && pip install -r requirements.txt && popd

- run: pushd examples/doc_scan && pip install -r requirements.txt && popd
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,4 @@ examples/yoti_example_django/*.pem
examples/yoti_example_flask/*.pem

.scannerwork
.venv/
9 changes: 5 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
exclude: protobuf/
repos:
- repo: https://github.com/ambv/black
rev: stable
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.2.3

- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
args:
- --ignore=E501,W5
- --ignore=E501,W5
77 changes: 0 additions & 77 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
## Adding Features

Any features added must be fully tested and documented, with examples supplied in the pull request.
The feature must support the lowest Python version that the SDK supports (see [the travis file](.travis.yml) for all supported versions). The feature
The feature must support the lowest Python version that the SDK supports (see [the GitHub workflow tests file](./.github/workflows/tests.yaml) for all supported versions). The feature
must not introduce any unnecessary dependencies (although introducing a new third party library
is open for discussion if absolutely required).

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Yoti also allows you to enable user details verification from your mobile app by

## Requirements

To see the versions of Python this SDK is compatible with, see the [.travis.yml](/.travis.yml) file.
To see the versions of Python this SDK is compatible with, see the [the GitHub workflow tests file](./.github/workflows/tests.yaml) file.

## Installing the SDK

Expand Down
2 changes: 2 additions & 0 deletions examples/aml/requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
yoti>=2.14.0
python-dotenv>=0.7.1
48 changes: 46 additions & 2 deletions examples/aml/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,46 @@
yoti>=2.13.0
python-dotenv>=0.7.1
#
# This file is autogenerated by pip-compile with python 3.10
# To update, run:
#
# pip-compile --output-file=requirements.txt requirements.in
#
asn1==2.2.0
# via yoti
certifi==2021.10.8
# via requests
cffi==1.15.0
# via cryptography
charset-normalizer==2.0.10
# via requests
cryptography==36.0.1
# via
# pyopenssl
# yoti
deprecated==1.2.10
# via yoti
future==0.18.2
# via yoti
idna==3.3
# via requests
iso8601==0.1.13
# via yoti
protobuf==3.19.3
# via yoti
pycparser==2.21
# via cffi
pyopenssl==21.0.0
# via yoti
python-dotenv==0.19.2
# via -r requirements.in
pytz==2020.4
# via yoti
requests==2.27.1
# via yoti
six==1.16.0
# via pyopenssl
urllib3==1.26.8
# via requests
wrapt==1.13.3
# via deprecated
yoti==2.14.0
# via -r requirements.in
6 changes: 6 additions & 0 deletions examples/doc_scan/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def create_session():
.with_preset_issuing_country("GBR")
.with_success_url("{url}/success".format(url=YOTI_APP_BASE_URL))
.with_error_url("{url}/error".format(url=YOTI_APP_BASE_URL))
.with_privacy_policy_url("{url}/privacy-policy".format(url=YOTI_APP_BASE_URL))
.build()
)

Expand Down Expand Up @@ -173,5 +174,10 @@ def media():
)


@app.route("/privacy-policy")
def privacy_policy():
return render_template("privacy.html")


if __name__ == "__main__":
app.run()
3 changes: 2 additions & 1 deletion examples/doc_scan/requirements.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
flask>=1.1.2
python-dotenv>=0.13.0
yoti>=2.13.0
yoti>=2.14.0
filetype>=1.0.7
pyopenssl>=19.1.0
six>=1.16.0
87 changes: 61 additions & 26 deletions examples/doc_scan/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,34 +1,69 @@
#
# This file is autogenerated by pip-compile
# This file is autogenerated by pip-compile with python 3.10
# To update, run:
#
# pip-compile --output-file=requirements.txt requirements.in
#
asn1==2.2.0 # via yoti
certifi==2020.4.5.1 # via requests
cffi==1.14.0 # via cryptography
chardet==3.0.4 # via requests
click==7.1.2 # via flask
cryptography==3.2 # via pyopenssl, yoti
deprecated==1.2.10 # via yoti
filetype==1.0.7 # via -r requirements.in
flask==1.1.2 # via -r requirements.in
future==0.18.2 # via yoti
idna==2.9 # via requests
iso8601==0.1.13 # via yoti
itsdangerous==1.1.0 # via flask
jinja2==2.11.2 # via flask
markupsafe==1.1.1 # via jinja2
protobuf==3.11.3 # via yoti
pycparser==2.20 # via cffi
pyopenssl==19.1.0 # via -r requirements.in, yoti
python-dotenv==0.13.0 # via -r requirements.in
requests==2.23.0 # via yoti
six==1.14.0 # via cryptography, protobuf, pyopenssl
urllib3==1.25.9 # via requests
werkzeug==1.0.1 # via flask
wrapt==1.12.1 # via deprecated
yoti==2.13.0 # via -r requirements.in
asn1==2.2.0
# via yoti
certifi==2020.4.5.1
# via requests
cffi==1.14.0
# via cryptography
chardet==3.0.4
# via requests
click==7.1.2
# via flask
cryptography==3.2
# via
# pyopenssl
# yoti
deprecated==1.2.10
# via yoti
filetype==1.0.7
# via -r requirements.in
flask==1.1.2
# via -r requirements.in
future==0.18.2
# via yoti
idna==2.9
# via requests
iso8601==0.1.13
# via yoti
itsdangerous==1.1.0
# via flask
jinja2==2.11.2
# via flask
markupsafe==1.1.1
# via jinja2
protobuf==3.11.3
# via yoti
pycparser==2.20
# via cffi
pyopenssl==19.1.0
# via
# -r requirements.in
# yoti
python-dotenv==0.13.0
# via -r requirements.in
pytz==2020.4
# via yoti
requests==2.23.0
# via yoti
six==1.16.0
# via
# -r requirements.in
# cryptography
# protobuf
# pyopenssl
urllib3==1.25.9
# via requests
werkzeug==1.0.1
# via flask
wrapt==1.12.1
# via deprecated
yoti==2.14.0
# via -r requirements.in

# The following packages are considered to be unsafe in a requirements file:
# setuptools
10 changes: 10 additions & 0 deletions examples/doc_scan/templates/privacy.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{% include "layout/header.html" %}
<div class="container">
<div class="row pt-4">
<div class="col">
<h1>Privacy Policy</h1>
<p>Demo privacy policy</p>
</div>
</div>
</div>
{% include "layout/footer.html" %}
2 changes: 1 addition & 1 deletion examples/yoti_example_django/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.7-slim
FROM python:3.9-slim
ARG YOTI_SCENARIO_ID
ARG YOTI_CLIENT_SDK_ID
ARG YOTI_KEY_FILE_PATH
Expand Down
6 changes: 4 additions & 2 deletions examples/yoti_example_django/requirements.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
django>=3.0.7
django>=4.0.1
django-sslserver>=0.22.0
python-dotenv>=0.7.1
requests>=2.20.0
urllib3>=1.24.2
yoti>=2.13.0
yoti>=2.14.0
six>=1.16.0
cffi>=1.15.0
Loading